[mobile/iot][messaging][TWDAPI-292 module deprecated from 8.0] 23/299723/2
authorchen <chen89.chen@samsung.com>
Sun, 8 Oct 2023 09:20:22 +0000 (17:20 +0800)
committerchen <chen89.chen@samsung.com>
Sun, 8 Oct 2023 09:42:47 +0000 (17:42 +0800)
Change-Id: I4f517ca490b1a5744837e9647c0571dfbb17bc44
Signed-off-by: chen <chen89.chen@samsung.com>
1943 files changed:
common/tct-messaging-email-tizen-tests/COPYING [deleted file]
common/tct-messaging-email-tizen-tests/LICENSE.Apache-2.0 [deleted file]
common/tct-messaging-email-tizen-tests/LICENSE.CC-BY-3.0 [deleted file]
common/tct-messaging-email-tizen-tests/NOTICE [deleted file]
common/tct-messaging-email-tizen-tests/README [deleted file]
common/tct-messaging-email-tizen-tests/askpolicy.sh [deleted file]
common/tct-messaging-email-tizen-tests/config.xml [deleted file]
common/tct-messaging-email-tizen-tests/icon.png [deleted file]
common/tct-messaging-email-tizen-tests/inst.apk.py [deleted file]
common/tct-messaging-email-tizen-tests/inst.wgt.py [deleted file]
common/tct-messaging-email-tizen-tests/inst.xpk.py [deleted file]
common/tct-messaging-email-tizen-tests/manifest.json [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_email_onsuccess.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor_minargs.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_extend.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_filePath_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_id_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_messageId_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_mimeType_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_email_onsuccess.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_onsuccess.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_extend.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_htmlBody_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_inlineAttachments_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_loaded_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_messageId_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_plainBody_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageBody_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_bcc_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_cc_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_extend.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_from_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_id_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_isRead_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_lastMessageId_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_messageCount_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_preview_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_subject_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_timestamp_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_to_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_type_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversation_unreadMessages_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsremoved.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsupdated.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_email_onsuccess.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolder_contentType_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_contentType_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_extend.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_id_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_name_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_parentId_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_path_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_serviceId_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_synchronizable_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_type_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolder_id_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolder_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolder_path_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFolder_type_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersadded.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersremoved.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersupdated.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_email.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_messaging.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_email_onsuccess.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_email_onsuccess.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_onsuccess.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_extend.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_id_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_invalid_obj.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg_message.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_messageStorage_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_name_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_invalid_obj.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_opId_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_syncFolder_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sync_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_email_type_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithBcc.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithPriority.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_sync.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_syncFolder.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_sync.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_folder_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_successCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_emailwithoutparam.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_foremail.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_limit.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_successCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_with_filter.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutcb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_invalid_obj.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_updatedata.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_with_filter.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_with_filter.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_without_filter.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_extend.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_from.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_invalid_obj.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_to.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_type.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_invalid_obj.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_offset.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort_time_desc.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_without_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findFolders_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_and_loadMessageBody.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_bcc_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_cc_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_invalid_obj.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_folderId_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_id_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isRead_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_plainBody_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_serviceId_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_invalid_obj.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_timestamp_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_to_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_type_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_with_offset.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeChangeListener_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeConversations_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeMessages_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_messages_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_successCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_serviceId.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations_email.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder_email.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_conversations_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_foremail.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessage_emailwithouterrcb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_messages_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_successCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_addUpdateRemove.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_attachments_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_attachments_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_bcc_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_body_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_cc_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_constructor.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_function.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_object.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_minargs.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_conversationId_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_folderId_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_from_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_hasAttachment_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_id_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_inResponseTo_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_isHighPriority_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_isRead_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_messageStatus_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_subject_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_timestamp_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_to_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Message_hasAttachment_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_with_filter.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_without_filter.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_with_filter.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_without_filter.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_with_filter.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_without_filter.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Messaging_extend.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_exist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_messageServiceType_TypeMismatch.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_missarg.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/Messaging_notexist.html [deleted file]
common/tct-messaging-email-tizen-tests/messaging/support/getJsonConf.js [deleted file]
common/tct-messaging-email-tizen-tests/messaging/support/messaging_common.js [deleted file]
common/tct-messaging-email-tizen-tests/messaging/support/unitcommon.js [deleted file]
common/tct-messaging-email-tizen-tests/pack.py [deleted file]
common/tct-messaging-email-tizen-tests/resources/COPYING [deleted file]
common/tct-messaging-email-tizen-tests/resources/testharness.css [deleted file]
common/tct-messaging-email-tizen-tests/resources/testharness.js [deleted file]
common/tct-messaging-email-tizen-tests/resources/testharnessreport.js [deleted file]
common/tct-messaging-email-tizen-tests/suite.json [deleted file]
common/tct-messaging-email-tizen-tests/testcase.xsl [deleted file]
common/tct-messaging-email-tizen-tests/testresult.xsl [deleted file]
common/tct-messaging-email-tizen-tests/tests.css [deleted file]
common/tct-messaging-email-tizen-tests/tests.full.xml [deleted file]
common/tct-messaging-email-tizen-tests/tests.xml [deleted file]
common/tct-messaging-email-tizen-tests/webapi-tizen-messaging-test_image.jpg [deleted file]
common/tct-messaging-email-tizen-tests/webapi-tizen-messaging-test_noise.mp3 [deleted file]
common/tct-messaging-email-tizen-tests/webrunner/index.html [deleted file]
common/tct-messaging-email-tizen-tests/webrunner/jquery-1.10.2.min.js [deleted file]
common/tct-messaging-email-tizen-tests/webrunner/testrunner.js [deleted file]
common/tct-messaging-mms-tizen-tests/COPYING [deleted file]
common/tct-messaging-mms-tizen-tests/LICENSE.Apache-2.0 [deleted file]
common/tct-messaging-mms-tizen-tests/LICENSE.CC-BY-3.0 [deleted file]
common/tct-messaging-mms-tizen-tests/NOTICE [deleted file]
common/tct-messaging-mms-tizen-tests/README [deleted file]
common/tct-messaging-mms-tizen-tests/askpolicy.sh [deleted file]
common/tct-messaging-mms-tizen-tests/config.xml [deleted file]
common/tct-messaging-mms-tizen-tests/icon.png [deleted file]
common/tct-messaging-mms-tizen-tests/inst.apk.py [deleted file]
common/tct-messaging-mms-tizen-tests/inst.wgt.py [deleted file]
common/tct-messaging-mms-tizen-tests/inst.xpk.py [deleted file]
common/tct-messaging-mms-tizen-tests/manifest.json [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_extend.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_loaded_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_messageId_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_plainBody_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsremoved.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsupdated.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_mms.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageServiceArraySuccessCallback_mms_onsuccess.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_extend.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageAttachment_exist.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_exist.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_missarg_message.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_messageStorage_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_exist.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_TypeMismatch.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_invalid_obj.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_missarg.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_type_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageService_sendMessage_mms_without_callbacks.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_body_valid.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_folderId_valid.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_from_valid.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_hasAttachment_valid.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_isRead_valid.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_mms_valid.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_subject_valid.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_timestamp_valid.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_to_valid.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_exist.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_exist.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_invalid_obj.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_missarg.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_errorCallback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_successCallback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_exist.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_exist.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_missarg.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_with_filter.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_without_filter.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_extend.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_exist.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_from.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_id.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_messageCount.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_preview.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_type.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_unreadMessages.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findFolders_exist.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_exist.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_folderId_with_errorCallback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_from_with_errorCallback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_id_with_errorCallback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_isRead_with_errorCallback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_to_with_errorCallback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_type_with_errorCallback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeChangeListener_exist.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeConversations_exist.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeMessages_exist.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_exist.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_messages_TypeMismatch.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_missarg.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_errorCallback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_successCallback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_removeConversations_formms.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_attachments_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_body_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_function.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_object.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_minargs.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_conversationId_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_extend.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_folderId_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_from_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_hasAttachment_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_id_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_inResponseTo_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_isRead_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_messageStatus_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_subject_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_timestamp_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_to_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Message_mms_type_attribute.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_with_filter.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_without_filter.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_with_filter.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_without_filter.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_with_filter.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_without_filter.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Messaging_getMessageServices_without_error_callback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_with_errorCallback.html [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/support/getJsonConf.js [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/support/messaging_common.js [deleted file]
common/tct-messaging-mms-tizen-tests/messaging/support/unitcommon.js [deleted file]
common/tct-messaging-mms-tizen-tests/pack.py [deleted file]
common/tct-messaging-mms-tizen-tests/resources/COPYING [deleted file]
common/tct-messaging-mms-tizen-tests/resources/testharness.css [deleted file]
common/tct-messaging-mms-tizen-tests/resources/testharness.js [deleted file]
common/tct-messaging-mms-tizen-tests/resources/testharnessreport.js [deleted file]
common/tct-messaging-mms-tizen-tests/suite.json [deleted file]
common/tct-messaging-mms-tizen-tests/testcase.xsl [deleted file]
common/tct-messaging-mms-tizen-tests/testresult.xsl [deleted file]
common/tct-messaging-mms-tizen-tests/tests.css [deleted file]
common/tct-messaging-mms-tizen-tests/tests.full.xml [deleted file]
common/tct-messaging-mms-tizen-tests/tests.xml [deleted file]
common/tct-messaging-mms-tizen-tests/webapi-tizen-messaging-test_image.jpg [deleted file]
common/tct-messaging-mms-tizen-tests/webapi-tizen-messaging-test_noise.mp3 [deleted file]
common/tct-messaging-mms-tizen-tests/webrunner/index.html [deleted file]
common/tct-messaging-mms-tizen-tests/webrunner/jquery-1.10.2.min.js [deleted file]
common/tct-messaging-mms-tizen-tests/webrunner/testrunner.js [deleted file]
common/tct-messaging-sms-tizen-tests/COPYING [deleted file]
common/tct-messaging-sms-tizen-tests/LICENSE.Apache-2.0 [deleted file]
common/tct-messaging-sms-tizen-tests/NOTICE [deleted file]
common/tct-messaging-sms-tizen-tests/README [deleted file]
common/tct-messaging-sms-tizen-tests/askpolicy.sh [deleted file]
common/tct-messaging-sms-tizen-tests/config.xml [deleted file]
common/tct-messaging-sms-tizen-tests/icon.png [deleted file]
common/tct-messaging-sms-tizen-tests/inst.apk.py [deleted file]
common/tct-messaging-sms-tizen-tests/inst.wgt.py [deleted file]
common/tct-messaging-sms-tizen-tests/inst.xpk.py [deleted file]
common/tct-messaging-sms-tizen-tests/manifest.json [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/ConversationArraySuccessCallback_onsuccess_checking.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/FolderArraySuccessCallback_onsuccess_checking.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess_checking.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_extend.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_loaded_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_messageId_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_plainBody_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageConversation_sendFindRemove.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withfilter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withfilter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withfilter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_sms.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageServiceArraySuccessCallback_sms_onsuccess.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_id_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_loadBodySMS.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_name_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_invalid_argument.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_valid_argument.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_extend.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_invalid_obj.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_missarg_message.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_messageStorage_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_invalid_obj.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_missarg.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_without_errorCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_type_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageService_type_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addCCLAddMRemoveCRemoveCCL.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutfilter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMCLaddM.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withfilter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_null.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_filter_sms_valid.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_limit_valid.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_missarg.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_noarg.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_offset_valid.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_formessages.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_valid_argument.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_with_watchId.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_null.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_undefined.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_conversations_number.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_forsms.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_invalid_arg.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_missarg_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_sms.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_number.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_invalid_obj.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_missarg.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_errorCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_successCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_missarg.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_with_filter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_without_filter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_extend.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_id.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_invalid_obj.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_endswith.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_startswith.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_type.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_missarg.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_invalid_obj.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_limit.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_offset.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_sort_to.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_filter_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_folderId_with_errorCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_from_with_errorCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_id_with_errorCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_isRead_with_errorCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_missarg.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_invalid_obj.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_to_with_errorCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_type_with_errorCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_limit.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_offset.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_sort.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeChangeListener_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeConversations_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeMessages_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_exist.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_messages_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_missarg.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_errorCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_successCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_updateMessages.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_body_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_function.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_object.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_minargs.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_conversationId_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_extend.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_folderId_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_from_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_id_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_inResponseTo_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_isRead_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_messageStatus_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_timestamp_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_to_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Message_sms_type_attribute.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withfilter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withoutfilter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withfilter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withoutfilter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_with_filter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_without_filter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_with_filter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_without_filter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_with_filter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_without_filter.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_invalid_cb.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_with_errorCallback.html [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/support/getJsonConf.js [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/support/messaging_common.js [deleted file]
common/tct-messaging-sms-tizen-tests/messaging/support/unitcommon.js [deleted file]
common/tct-messaging-sms-tizen-tests/pack.py [deleted file]
common/tct-messaging-sms-tizen-tests/resources/COPYING [deleted file]
common/tct-messaging-sms-tizen-tests/resources/testharness.css [deleted file]
common/tct-messaging-sms-tizen-tests/resources/testharness.js [deleted file]
common/tct-messaging-sms-tizen-tests/resources/testharnessreport.js [deleted file]
common/tct-messaging-sms-tizen-tests/suite.json [deleted file]
common/tct-messaging-sms-tizen-tests/testcase.xsl [deleted file]
common/tct-messaging-sms-tizen-tests/testresult.xsl [deleted file]
common/tct-messaging-sms-tizen-tests/tests.css [deleted file]
common/tct-messaging-sms-tizen-tests/tests.full.xml [deleted file]
common/tct-messaging-sms-tizen-tests/tests.xml [deleted file]
common/tct-messaging-sms-tizen-tests/webrunner/index.html [deleted file]
common/tct-messaging-sms-tizen-tests/webrunner/jquery-1.10.2.min.js [deleted file]
common/tct-messaging-sms-tizen-tests/webrunner/testrunner.js [deleted file]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/ConversationArraySuccessCallback_onsuccess_checking.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/FolderArraySuccessCallback_onsuccess_checking.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_onsuccess.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_onsuccess_checking.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachmentSuccessCallback_email_onsuccess.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachmentSuccessCallback_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_constructor.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_constructor_minargs.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_filePath_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_id_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_messageId_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_mimeType_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_email_onsuccess.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_onsuccess.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_htmlBody_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_inlineAttachments_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_loaded_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_messageId_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_plainBody_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_loaded_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_messageId_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_plainBody_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_loaded_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_messageId_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_plainBody_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_onsuccess.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_onsuccess_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_bcc_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_cc_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_from_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_id_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_isRead_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_lastMessageId_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_messageCount_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_preview_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_sendFindRemove.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_subject_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_timestamp_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_to_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_type_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_unreadMessages_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withfilter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withfilter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withfilter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_email_conversationsremoved.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_email_conversationsupdated.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_mms_conversationsremoved.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_mms_conversationsupdated.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolderArraySuccessCallback_email_onsuccess.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolderArraySuccessCallback_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_contentType_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_contentType_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_id_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_name_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_parentId_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_path_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_serviceId_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_synchronizable_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_type_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_id_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_path_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_type_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersadded.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersremoved.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersupdated.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_email.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_mms.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_sms.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageManagerObject_messaging.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageManagerObject_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageRecipientsCallback_email_onsuccess.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageRecipientsCallback_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_email_onsuccess.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_mms_onsuccess.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_onsuccess.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_sms_onsuccess.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_id_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_without_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_message_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_message_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_missarg_message.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_messageStorage_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_name_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_message_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_message_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_without_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_without_successCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_opId_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_syncFolder_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sync_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_type_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_id_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_loadBodySMS.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageAttachment_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageBody_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageBody_missarg_message.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_messageStorage_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_message_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_message_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_type_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_name_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_emailWithBcc.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_emailWithPriority.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_email_without_callbacks.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_invalid_argument.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_mms_without_callbacks.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_valid_argument.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_missarg_message.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_messageStorage_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_without_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_type_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_stopSync_sync.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_stopSync_syncFolder.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_folder_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_limit.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_successCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_emailwithoutparam.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_foremail.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_limit.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_successCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_type_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addCCLAddMRemoveCRemoveCCL.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_with_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_withoutcb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_withoutfilter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMCLaddM.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withfilter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withoutfilter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_message_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_message_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_without_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_without_successCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_updatedata.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_with_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_with_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_without_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_from.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_to.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_type.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_sort_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_sort_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_offset.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_sort.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_sort_time_desc.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_without_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findFolders_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_and_loadMessageBody.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_bcc_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_cc_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_filter_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_filter_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_folderId_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_from_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_id_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_isRead_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_plainBody_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_serviceId_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_sort_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_sort_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_timestamp_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_to_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_type_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_with_offset.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeChangeListener_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeConversations_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeMessages_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_messages_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_without_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_without_successCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_filter_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_filter_serviceId.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessage_emailFilterWithoutErrorCb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_null.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_body_valid.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_folderId_valid.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_from_valid.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_hasAttachment_valid.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_isRead_valid.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_mms_valid.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_sms_valid.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_subject_valid.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_timestamp_valid.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_to_valid.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_limit_valid.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_noarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_offset_valid.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_sort_valid.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_message_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_without_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_without_successCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addFoldersChangeListener_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_with_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_without_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_from.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_id.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_messageCount.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_preview.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_timestamp.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_to.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_type.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_unreadMessages.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findFolders_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_folderId_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_from_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_id_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_isRead_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_to_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_type_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeChangeListener_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeConversations_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeMessages_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_messages_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_without_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_without_successCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forconversations.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forconversations_email.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forfolder.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forfolder_email.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_formessages.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_valid_argument.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_with_watchId.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_null.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_undefined.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_conversations_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_conversations_number.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_foremail.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_formms.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_forsms.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_invalid_arg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_missarg_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_sms.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_number.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_with_successCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessage_emailwithouterrcb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_messages_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_with_successCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_successCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_with_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_without_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_id.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_endswith.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_startswith.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_type.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_limit.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_offset.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_sort_to.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_filter_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_folderId_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_from_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_id_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_isRead_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_invalid_obj.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_to_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_type_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_limit.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_offset.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_sort.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeChangeListener_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeConversations_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeMessages_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_messages_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_successCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_updateMessages.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_addUpdateRemove.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_attachments_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_attachments_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_bcc_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_body_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_cc_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_messageInitDict_function.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_messageInitDict_object.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_minargs.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_conversationId_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_folderId_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_from_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_hasAttachment_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_id_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_inResponseTo_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_isHighPriority_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_isRead_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_messageStatus_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_subject_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_timestamp_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_to_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_type_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_hasAttachment_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_attachments_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_body_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_messageInitDict_function.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_messageInitDict_object.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_minargs.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_conversationId_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_folderId_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_from_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_hasAttachment_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_id_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_inResponseTo_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_isRead_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_messageStatus_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_subject_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_timestamp_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_to_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_type_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_body_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_function.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_object.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_minargs.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_conversationId_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_folderId_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_from_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_id_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_inResponseTo_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_isRead_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_messageStatus_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_timestamp_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_to_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_type_attribute.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesadded_with_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesadded_without_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesremoved_with_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesremoved_without_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesupdated_with_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesupdated_without_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withfilter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withoutfilter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withfilter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withoutfilter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesadded_with_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesadded_without_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesremoved_with_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesremoved_without_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesupdated_with_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesupdated_without_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_with_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_without_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_with_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_without_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_with_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_without_filter.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_extend.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_exist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_messageServiceType_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_missarg.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_without_error_callback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_notexist.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_invalid_cb.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_with_errorCallback.html [new file with mode: 0755]
iot/tct-deprecatedapi-tizen-tests/tests.full.xml
iot/tct-deprecatedapi-tizen-tests/tests.xml
mobile/tct-deprecatedapi-tizen-tests/config.xml
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/ConversationArraySuccessCallback_onsuccess_checking.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/FolderArraySuccessCallback_onsuccess_checking.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_onsuccess.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_onsuccess_checking.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachmentSuccessCallback_email_onsuccess.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachmentSuccessCallback_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_constructor.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_constructor_minargs.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_filePath_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_id_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_messageId_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_mimeType_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_email_onsuccess.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_onsuccess.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_htmlBody_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_inlineAttachments_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_loaded_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_messageId_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_plainBody_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_loaded_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_messageId_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_plainBody_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_loaded_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_messageId_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_plainBody_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_onsuccess.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_onsuccess_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_bcc_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_cc_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_from_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_id_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_isRead_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_lastMessageId_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_messageCount_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_preview_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_sendFindRemove.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_subject_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_timestamp_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_to_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_type_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_unreadMessages_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withfilter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withfilter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withfilter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_email_conversationsremoved.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_email_conversationsupdated.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_mms_conversationsremoved.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_mms_conversationsupdated.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolderArraySuccessCallback_email_onsuccess.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolderArraySuccessCallback_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_contentType_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_contentType_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_id_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_name_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_parentId_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_path_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_serviceId_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_synchronizable_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_type_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_id_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_path_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_type_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersadded.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersremoved.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersupdated.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_email.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_mms.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_sms.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageManagerObject_messaging.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageManagerObject_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageRecipientsCallback_email_onsuccess.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageRecipientsCallback_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_email_onsuccess.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_mms_onsuccess.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_onsuccess.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_sms_onsuccess.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_id_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_without_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_message_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_message_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_missarg_message.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_messageStorage_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_name_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_message_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_message_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_without_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_without_successCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_opId_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_syncFolder_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sync_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_type_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_id_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_loadBodySMS.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageAttachment_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageBody_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageBody_missarg_message.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_messageStorage_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_message_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_message_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_type_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_name_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_emailWithBcc.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_emailWithPriority.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_email_without_callbacks.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_invalid_argument.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_mms_without_callbacks.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_valid_argument.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_missarg_message.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_messageStorage_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_without_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_type_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_stopSync_sync.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_stopSync_syncFolder.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_folder_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_limit.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_successCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_emailwithoutparam.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_foremail.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_limit.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_successCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_type_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addCCLAddMRemoveCRemoveCCL.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_with_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_withoutcb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_withoutfilter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMCLaddM.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withfilter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withoutfilter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_message_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_message_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_without_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_without_successCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_updatedata.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_with_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_with_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_without_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_from.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_to.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_type.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_sort_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_sort_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_offset.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_sort.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_sort_time_desc.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_without_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findFolders_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_and_loadMessageBody.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_bcc_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_cc_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_filter_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_filter_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_folderId_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_from_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_id_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_isRead_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_plainBody_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_serviceId_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_sort_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_sort_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_timestamp_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_to_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_type_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_with_offset.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeConversations_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeMessages_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_messages_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_without_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_without_successCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_filter_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_filter_serviceId.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessage_emailFilterWithoutErrorCb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_null.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_body_valid.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_folderId_valid.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_from_valid.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_hasAttachment_valid.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_isRead_valid.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_mms_valid.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_sms_valid.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_subject_valid.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_timestamp_valid.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_to_valid.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_limit_valid.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_noarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_offset_valid.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_sort_valid.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_message_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_without_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_without_successCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addFoldersChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_with_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_without_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_from.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_id.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_messageCount.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_preview.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_timestamp.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_to.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_type.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_unreadMessages.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findFolders_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_folderId_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_from_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_id_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_isRead_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_to_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_type_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeConversations_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeMessages_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_messages_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_without_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_without_successCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forconversations.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forconversations_email.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forfolder.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forfolder_email.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_formessages.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_valid_argument.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_with_watchId.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_null.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_undefined.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_conversations_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_conversations_number.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_foremail.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_formms.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_forsms.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_invalid_arg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_missarg_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_sms.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_number.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_with_successCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessage_emailwithouterrcb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_messages_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_with_successCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_successCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_with_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_without_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_id.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_endswith.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_startswith.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_type.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_limit.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_offset.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_sort_to.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_filter_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_folderId_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_from_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_id_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_isRead_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_invalid_obj.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_to_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_type_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_limit.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_offset.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_sort.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeChangeListener_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeConversations_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeMessages_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_messages_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_successCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_updateMessages.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_addUpdateRemove.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_attachments_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_attachments_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_bcc_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_body_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_cc_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_messageInitDict_function.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_messageInitDict_object.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_minargs.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_conversationId_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_folderId_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_from_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_hasAttachment_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_id_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_inResponseTo_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_isHighPriority_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_isRead_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_messageStatus_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_subject_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_timestamp_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_to_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_type_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_hasAttachment_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_attachments_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_body_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_messageInitDict_function.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_messageInitDict_object.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_minargs.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_conversationId_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_folderId_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_from_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_hasAttachment_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_id_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_inResponseTo_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_isRead_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_messageStatus_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_subject_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_timestamp_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_to_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_type_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_body_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_function.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_object.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_minargs.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_conversationId_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_folderId_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_from_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_id_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_inResponseTo_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_isRead_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_messageStatus_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_timestamp_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_to_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_type_attribute.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesadded_with_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesadded_without_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesremoved_with_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesremoved_without_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesupdated_with_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesupdated_without_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withfilter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withoutfilter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withfilter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withoutfilter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesadded_with_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesadded_without_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesremoved_with_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesremoved_without_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesupdated_with_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesupdated_without_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_with_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_without_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_with_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_without_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_with_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_without_filter.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_extend.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_exist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_messageServiceType_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_missarg.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_without_error_callback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_notexist.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_invalid_cb.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_with_errorCallback.html [new file with mode: 0755]
mobile/tct-deprecatedapi-tizen-tests/tests.full.xml
mobile/tct-deprecatedapi-tizen-tests/tests.xml

diff --git a/common/tct-messaging-email-tizen-tests/COPYING b/common/tct-messaging-email-tizen-tests/COPYING
deleted file mode 100755 (executable)
index 7d06b32..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/common/tct-messaging-email-tizen-tests/LICENSE.Apache-2.0 b/common/tct-messaging-email-tizen-tests/LICENSE.Apache-2.0
deleted file mode 100755 (executable)
index d645695..0000000
+++ /dev/null
@@ -1,202 +0,0 @@
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
diff --git a/common/tct-messaging-email-tizen-tests/LICENSE.CC-BY-3.0 b/common/tct-messaging-email-tizen-tests/LICENSE.CC-BY-3.0
deleted file mode 100755 (executable)
index 67323bd..0000000
+++ /dev/null
@@ -1,295 +0,0 @@
-CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES.
-DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP.
-CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS
-MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR
-DAMAGES RESULTING FROM ITS USE.
-
-License
-THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS
-PUBLIC LICENSE("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR
-OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE
-OR COPYRIGHT LAW IS PROHIBITED.
-
-BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND
-BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED
-TO BE A CONTRACT,
-THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR
-ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
-
-1. Definitions
-
-a."Adaptation" means a work based upon the Work, or upon the Work and
-other pre-existing works, such as a translation, adaptation, derivative work,
-arrangement of music or other alterations of a literary or artistic work,
-or phonogram or performance and includes cinematographic adaptations
-or any other form in which the Work may be recast,
-transformed, or adapted including in any form recognizably derived from
-the original,
-except that a work that constitutes a Collection will not be considered
-an Adaptation for the purpose of this License.
-For the avoidance of doubt, where the Work is a musical work, performance
-or phonogram, the synchronization of the Work in timed-relation with a moving
-image ("synching") will be considered an Adaptation for the purpose of this License.
-b."Collection" means a collection of literary or artistic works,
-such as encyclopedias and anthologies, or performances,
-phonograms or broadcasts, or other works or subject matter other than
-works listed in Section 1(f) below, which, by reason of the selection
-and arrangement of their contents, constitute intellectual creations,
-in which the Work is included in its entirety in unmodified form
-along with one or more other contributions, each constituting separate
-and independent works in themselves, which together are assembled into
-a collective whole.
-A work that constitutes a Collection will not be considered an Adaptation
-(as defined above) for the purposes of this License.
-c."Distribute" means to make available to the public the original and
-copies of the Work or Adaptation, as appropriate, through sale or
-other transfer of ownership.
-d."Licensor" means the individual, individuals, entity or entities that offer(s)
-the Work under the terms of this License.
-e."Original Author" means, in the case of a literary or artistic work,
-the individual, individuals,
-entity or entities who created the Work or if no individual or entity can be identified,
-the publisher; and in addition
-(i) in the case of a performance the actors, singers, musicians, dancers,
-and other persons who act, sing, deliver, declaim, play in, interpret or
-otherwise perform literary or artistic works or expressions of folklore;
-(ii) in the case of a phonogram the producer being the person or legal entity
-who first fixes the sounds of a performance or other sounds; and,
-(iii) in the case of broadcasts, the organization that transmits the broadcast.
-f."Work" means the literary and/or artistic work offered under the terms
-of this License including without limitation any production in the literary,
-scientific and artistic domain, whatever may be the mode or form of its expression
-including digital form, such as a book, pamphlet and other writing; a lecture,
-address, sermon or other work of the same nature; a dramatic or dramatico-musical work;
-a choreographic work or entertainment in dumb show;
-a musical composition with or without words; a cinematographic work to which
-are assimilated works expressed by a process analogous to cinematography;
-a work of drawing, painting, architecture, sculpture, engraving or lithography;
-a photographic work to which are assimilated works expressed by a process analogous
-to photography; a work of applied art; an illustration, map, plan, sketch or
-three-dimensional work relative to geography, topography, architecture or science;
-a performance; a broadcast; a phonogram; a compilation of data to the extent it
-is protected as a copyrightable work; or a work performed by a variety or
-circus performer to the extent it is not otherwise considered a literary or artistic work.
-g."You" means an individual or entity exercising rights under this License
-who has not previously violated the terms of this License with respect to the Work,
-or who has received express permission from the Licensor to exercise rights
-under this License despite a previous violation.
-h."Publicly Perform" means to perform public recitations of the Work and to
-communicate to the public those public recitations, by any means or process,
-including by wire or wireless means or public digital performances;
-to make available to the public Works in such a way that members of the public
-may access these Works from a place and at a place individually chosen by them;
-to perform the Work to the public by any means or process and the communication
-to the public of the performances of the Work, including by public digital performance;
-to broadcast and rebroadcast the Work by any means including signs, sounds or images.
-i."Reproduce" means to make copies of the Work by any means including without
-limitation by sound or visual recordings and the right of fixation and
-reproducing fixations of the Work, including storage of a protected performance
-or phonogram in digital form or other electronic medium.
-
-2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit,
-or restrict any uses free from copyright or rights arising from limitations or
-exceptions that are provided for in connection with the copyright protection
-under copyright law or other applicable laws.
-
-3. License Grant. Subject to the terms and conditions of this License,
-Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual
-(for the duration of the applicable copyright) license to exercise the rights
-in the Work as stated below:
-
-a.to Reproduce the Work, to incorporate the Work into one or more Collections,
-and to Reproduce the Work as incorporated in the Collections;
-b.to create and Reproduce Adaptations provided that any such Adaptation,
-including any translation in any medium, takes reasonable steps to clearly label,
-demarcate or otherwise identify that changes were made to the original Work.
-For example, a translation could be marked "The original work was translated
-from English to Spanish," or a modification could indicate
-"The original work has been modified.";
-c.to Distribute and Publicly Perform the Work including as incorporated
-in Collections; and,
-d.to Distribute and Publicly Perform Adaptations.
-e.For the avoidance of doubt:
-
-i.Non-waivable Compulsory License Schemes. In those jurisdictions in which
-the right to collect royalties through any statutory or compulsory licensing
-scheme cannot be waived, the Licensor reserves the exclusive right to collect
-such royalties for any exercise by You of the rights granted under this License;
-ii.Waivable Compulsory License Schemes. In those jurisdictions in which the right
-to collect royalties through any statutory or compulsory licensing scheme can be waived,
-the Licensor waives the exclusive right to collect such royalties for any exercise
-by You of the rights granted under this License; and,
-iii.Voluntary License Schemes. The Licensor waives the right to collect royalties,
-whether individually or, in the event that the Licensor is a member of a collecting
-society that administers voluntary licensing schemes, via that society,
-from any exercise by You of the rights granted under this License.
-The above rights may be exercised in all media and formats whether now known
-or hereafter devised. The above rights include the right to make such modifications
-as are technically necessary to exercise the rights in other media and formats.
-Subject to Section 8(f), all rights not expressly granted by Licensor
-are hereby reserved.
-
-4. Restrictions. The license granted in Section 3 above is expressly made
-subject to and limited by the following restrictions:
-
-a.You may Distribute or Publicly Perform the Work only under the terms of
-this License. You must include a copy of, or the Uniform Resource Identifier (URI)
-for, this License with every copy of the Work You Distribute or Publicly Perform.
-You may not offer or impose any terms on the Work that restrict the terms of
-this License or the ability of the recipient of the Work to exercise
-the rights granted to that recipient under the terms of the License.
-You may not sublicense the Work. You must keep intact all notices that refer
-to this License and to the disclaimer of warranties with every copy of
-the Work You Distribute or Publicly Perform.
-When You Distribute or Publicly Perform the Work,
-You may not impose any effective technological measures on the Work
-that restrict the ability of a recipient of the Work from You to exercise
-the rights granted to that recipient under the terms of the License.
-This Section 4(a) applies to the Work as incorporated in a Collection,
-but this does not require the Collection apart from the Work itself
-to be made subject to the terms of this License.
-If You create a Collection, upon notice from any Licensor You must,
-to the extent practicable, remove from the Collection any credit
-as required by Section 4(b), as requested. If You create an Adaptation,
-upon notice from any Licensor You must, to the extent practicable,
-remove from the Adaptation any credit as required by Section 4(b),
-as requested. b.If You Distribute, or Publicly Perform the Work or
-any Adaptations or Collections, You must, unless a request has been made
-pursuant to Section 4(a), keep intact all copyright notices for the Work
-and provide, reasonable to the medium or means You are utilizing:
-(i) the name of the Original Author (or pseudonym, if applicable)
-if supplied, and/or if the Original Author and/or Licensor designate
-another party or parties (e.g., a sponsor institute, publishing entity, journal)
-for attribution ("Attribution Parties") in Licensor's copyright notice,
-terms of service or by other reasonable means,
-the name of such party or parties; (ii) the title of the Work if supplied;
-(iii) to the extent reasonably practicable, the URI, if any,
-that Licensor specifies to be associated with the Work,
-unless such URI does not refer to the copyright notice or licensing information
-for the Work; and (iv) , consistent with Section 3(b),
-in the case of an Adaptation,
-a credit identifying the use of the Work in the Adaptation
-(e.g., "French translation of the Work by Original Author," or
-"Screenplay based on original Work by Original Author").
-The credit required by this Section 4(b) may be implemented
-in any reasonable manner; provided, however, that in the case of
-a Adaptation or Collection, at a minimum such credit will appear,
-if a credit for all contributing authors of the Adaptation or Collection appears,
-then as part of these credits and in a manner at least as prominent
-as the credits for the other contributing authors.
-For the avoidance of doubt, You may only use the credit required by this Section
-for the purpose of attribution in the manner set out above and,
-by exercising Your rights under this License, You may not implicitly
-or explicitly assert or imply any connection with, sponsorship or
-endorsement by the Original Author, Licensor and/or Attribution Parties,
-as appropriate, of You or Your use of the Work, without the separate,
-express prior written permission of the Original Author,
-Licensor and/or Attribution Parties.
-c.Except as otherwise agreed in writing by the Licensor or as may be otherwise
-permitted by applicable law, if You Reproduce, Distribute or Publicly Perform
-the Work either by itself or as part of any Adaptations or Collections,
-You must not distort, mutilate, modify or take other derogatory action
-in relation to the Work which would be prejudicial to the Original Author's honor
-or reputation. Licensor agrees that in those jurisdictions (e.g. Japan),
-in which any exercise of the right granted in Section 3(b) of this License
-(the right to make Adaptations) would be deemed to be a distortion,
-mutilation, modification or other derogatory action prejudicial to
-the Original Author's honor and reputation, the Licensor will waive or
-not assert, as appropriate, this Section, to the fullest extent permitted
-by the applicable national law, to enable You to reasonably exercise
-Your right under Section 3(b) of this License (right to make Adaptations)
-but not otherwise.
-
-5. Representations, Warranties and Disclaimer
-
-UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING,
-LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES
-OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE,
-INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY,
-FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT
-OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS,
-WHETHER OR NOT DISCOVERABLE.
-SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES,
-SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
-
-6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW,
-IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY
-FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES
-ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK,
-EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-7. Termination
-
-a.This License and the rights granted hereunder will terminate automatically
-upon any breach by You of the terms of this License.
-Individuals or entities who have received Adaptations or Collections
-from You under this License, however,
-will not have their licenses terminated provided such individuals or entities
-remain in full compliance with those licenses.
-Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
-b.Subject to the above terms and conditions, the license granted here is
-perpetual (for the duration of the applicable copyright in the Work).
-Notwithstanding the above, Licensor reserves the right to release the Work
-under different license terms or to stop distributing the Work at any time;
-provided, however that any such election will not serve to withdraw
-this License (or any other license that has been, or is required to be,
-granted under the terms of this License),
-and this License will continue in full force and effect unless terminated
-as stated above.
-
-8. Miscellaneous
-
-a.Each time You Distribute or Publicly Perform the Work or a Collection,
-the Licensor offers to the recipient a license to the Work on the same terms
-and conditions as the license granted to You under this License.
-b.Each time You Distribute or Publicly Perform an Adaptation,
-Licensor offers to the recipient a license to the original Work on the same terms
-and conditions as the license granted to You under this License.
-c.If any provision of this License is invalid or unenforceable
-under applicable law, it shall not affect the validity or enforceability
-of the remainder of the terms of this License, and without further action
-by the parties to this agreement, such provision shall be reformed
-to the minimum extent necessary to make such provision valid and enforceable.
-d.No term or provision of this License shall be deemed waived and
-no breach consented to unless such waiver or consent shall be in writing
-and signed by the party to be charged with such waiver or consent.
-e.This License constitutes the entire agreement between the parties
-with respect to the Work licensed here. There are no understandings,
-agreements or representations with respect to the Work not specified here.
-Licensor shall not be bound by any additional provisions that may appear
-in any communication from You. This License may not be modified
-without the mutual written agreement of the Licensor and You.
-f.The rights granted under, and the subject matter referenced,
-in this License were drafted utilizing the terminology of the Berne Convention
-for the Protection of Literary and Artistic Works (as amended on September 28, 1979),
-the Rome Convention of 1961, the WIPO Copyright Treaty of 1996,
-the WIPO Performances and Phonograms Treaty of 1996
-and the Universal Copyright Convention (as revised on July 24, 1971).
-These rights and subject matter take effect in the relevant jurisdiction
-in which the License terms are sought to be enforced according to
-the corresponding provisions of the implementation of those treaty provisions
-in the applicable national law. If the standard suite of rights granted
-under applicable copyright law includes additional rights not granted
-under this License, such additional rights are deemed to be included in the License;
-this License is not intended to restrict the license of any rights under applicable law.
-Creative Commons Notice
-Creative Commons is not a party to this License, and makes no warranty
-whatsoever in connection with the Work. Creative Commons will not be liable to
-You or any party on any legal theory for any damages whatsoever,
-including without limitation any general, special, incidental
-or consequential damages arising in connection to this license.
-Notwithstanding the foregoing two (2) sentences,
-if Creative Commons has expressly identified itself as the Licensor hereunder,
-it shall have all rights and obligations of Licensor.
-
-Except for the limited purpose of indicating to the public
-that the Work is licensed under the CCPL, Creative Commons does not authorize
-the use by either party of the trademark "Creative Commons" or any related trademark
-or logo of Creative Commons without the prior written consent of Creative Commons.
-Any permitted use will be in compliance with Creative Commons'
-then-current trademark usage guidelines, as may be published on its website
-or otherwise made available upon request from time to time.
-For the avoidance of doubt, this trademark restriction does not form part
-of this License.
-
-Creative Commons may be contacted at http://creativecommons.org/.
diff --git a/common/tct-messaging-email-tizen-tests/NOTICE b/common/tct-messaging-email-tizen-tests/NOTICE
deleted file mode 100755 (executable)
index 0d8f6a9..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
-Copyright (c) 2012 Intel Corporation.
-Except as noted, this software is licensed under Apache License, Version 2 or BSD-3-Clause License.
-Please, see the LICENSE.Apache-2.0 file for Apache License, Version 2 terms and conditions
-or the COPYING file for BSD-3-Clause License.
-
-Following resources are licensed under its own license.
-
-webapi-tizen-messaging-test_image.jpg,
-webapi-tizen-messaging-test_noise.mp3:
-Copyright (c) 2012 Samsung Electronics Co., Ltd. All right reserved.
-The above resource files are licensed under Creative Commons Attribution 3.0.
-Please see the LICENSE.CC-BY-3.0 for Creative Commons Attribution 3.0 terms and conditions.
diff --git a/common/tct-messaging-email-tizen-tests/README b/common/tct-messaging-email-tizen-tests/README
deleted file mode 100755 (executable)
index 2da4164..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-----------------------------------------------
-License
-----------------------------------------------
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Zou, Zoe <yananx.xu@intel.com>
-
-
-
-----------------------------------------------
-Introduction
-----------------------------------------------
-This test suite is for testing Tizen Messaging API, which covers the following specifications (only e-mail part):
-https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-
-
-----------------------------------------------
-Test Environment
-----------------------------------------------
-1. Testkit-stub must be installed on target device.
-2. Testkit-lite must be installed on test machine.
-
-
-----------------------------------------------
-Pre-condition
-----------------------------------------------
-
-1. There MUST be established Network connection for sending and receiving email tests
-   (preferably through WiFi as it has smaller delays on connection)
-
-2. Add an account through Settings application.
-   (Settings -> Personal / Accounts)
-    2.1. Click "Add"
-    2.1. Select type of account: Email
-    2.2. Enter e-mail address and password (preferably Gmail account)
-    2.3. Click "Next" - configuration will be verified and stored
-
-3. There MUST be several email messages in your mailbox
-   to be used for searching and removing messages tests
-
-4. Before testing, you MUST change some variables defined in
-   Messaging/support/messaging_common.js for message recipients.
-   Assign proper values to following variables:
-
-TEST_EMAIL_RECIPIENT_1      MUST be set to email address of the account configured on the device on which the tests will be run
-TEST_EMAIL_RECIPIENT_2      MUST be set to email address
-                            (different from TEST_EMAIL_RECIPIENT_1)
-
-5. There MUST be exactly one email service configured on the device.
-
-
-----------------------------------------------
-Build and Run
-----------------------------------------------
-(Suppose you only get the source code and testkit-lite has been setup on your test machine
- if you have got tct-messaging-email-tizen-tests ZIP packages, you can directly go to step 3 on testing machine;
- if you have not installed the testkit-lite, you need to install the latest version)
-
-Steps:
-1. Prepare for building by running the following command:
-   cd tct-messaging-email-tizen-tests
-
-2. Build ZIP package by running the following command:
-   ./pack.sh
-
-3. Unzip the package on the test machine by running the following command:
-   unzip -o tct-messaging-email-tizen-tests-<version>.zip -d /home/owner/share/tct
-
-4. Install the package on the test machine by running the following command:
-   /home/owner/share/tct/opt/tct-messaging-email-tizen-tests/inst.sh
-
-5. Run test cases by running the following command on host:
-   testkit-lite -f device:/home/owner/share/tct/opt/tct-messaging-email-tizen-tests/tests.xml -e "WRTLauncher" -o tct-messaging-email-tizen-tests.results.xml
diff --git a/common/tct-messaging-email-tizen-tests/askpolicy.sh b/common/tct-messaging-email-tizen-tests/askpolicy.sh
deleted file mode 100755 (executable)
index 1c39bdd..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-for i in `grep -r "0xA" /var/cynara/db/_ | grep $1`
-do
-    CLIENT=`echo $i | cut -d ";" -f1`
-    USER=`echo $i | cut -d ";" -f2`
-    PRIVILEGE=`echo $i | cut -d ";" -f3`
-    #echo "cyad --erase=\"\" -r=no -c $CLIENT -u $USER -p $PRIVILEGE"
-    cyad --erase="" -r=no -c $CLIENT -u $USER -p $PRIVILEGE
-done
diff --git a/common/tct-messaging-email-tizen-tests/config.xml b/common/tct-messaging-email-tizen-tests/config.xml
deleted file mode 100755 (executable)
index 40dac69..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<widget id='http://tizen.org/test/tct-messaging-email-tizen-tests' xmlns='http://www.w3.org/ns/widgets' xmlns:tizen='http://tizen.org/ns/widgets' version='8.0'>
-  <access origin="*"/>
-  <name>tct-messaging-email-tizen-tests</name>
-  <tizen:privilege name="http://tizen.org/privilege/messaging.read"/>
-  <tizen:privilege name="http://tizen.org/privilege/messaging.write"/>
-  <tizen:privilege name="http://tizen.org/privilege/filesystem.read"/>
-  <tizen:privilege name="http://tizen.org/privilege/filesystem.write"/>
-  <tizen:privilege name="http://tizen.org/privilege/mediastorage"/>
-  <tizen:privilege name="http://tizen.org/privilege/externalstorage"/>
-  <icon src="icon.png" height="117" width="117"/>
-  <tizen:application id="api1msg003.WebAPITizenMessagingEmailTests" package="api1msg003" required_version="8.0"/>
-  <tizen:setting screen-orientation="landscape" />
-  <tizen:setting background-support="enable"/>
-  <tizen:setting pointing-device-support="enable"/>
-</widget>
diff --git a/common/tct-messaging-email-tizen-tests/icon.png b/common/tct-messaging-email-tizen-tests/icon.png
deleted file mode 100755 (executable)
index aa50240..0000000
Binary files a/common/tct-messaging-email-tizen-tests/icon.png and /dev/null differ
diff --git a/common/tct-messaging-email-tizen-tests/inst.apk.py b/common/tct-messaging-email-tizen-tests/inst.apk.py
deleted file mode 100755 (executable)
index d636bee..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import shutil
-import glob
-import time
-import sys
-import subprocess
-from optparse import OptionParser, make_option
-import configparser
-
-
-SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
-PARAMETERS = None
-ADB_CMD = "adb"
-
-
-def doCMD(cmd):
-    # Do not need handle timeout in this short script, let tool do it
-    print ("-->> \"%s\"" % cmd)
-    output = []
-    cmd_return_code = 1
-    cmd_proc = subprocess.Popen(
-        cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
-
-    while True:
-        output_line = cmd_proc.stdout.readline().decode("UTF-8").strip("\r\n")
-        cmd_return_code = cmd_proc.poll()
-        if output_line == '' and cmd_return_code != None:
-            break
-        sys.stdout.write("%s\n" % output_line)
-        sys.stdout.flush()
-        output.append(output_line)
-
-    return (cmd_return_code, output)
-
-
-def uninstPKGs():
-    action_status = True
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        for file in files:
-            if file.endswith(".apk"):
-                cmd = "%s -s %s uninstall org.xwalk.%s" % (
-                    ADB_CMD, PARAMETERS.device, os.path.basename(os.path.splitext(file)[0]))
-                (return_code, output) = doCMD(cmd)
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-    return action_status
-
-
-def instPKGs():
-    action_status = True
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        for file in files:
-            if file.endswith(".apk"):
-                cmd = "%s -s %s install %s" % (ADB_CMD,
-                                               PARAMETERS.device, os.path.join(root, file))
-                (return_code, output) = doCMD(cmd)
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-    return action_status
-
-
-def main():
-    try:
-        usage = "usage: inst.py -i"
-        opts_parser = OptionParser(usage=usage)
-        opts_parser.add_option(
-            "-s", dest="device", action="store", help="Specify device")
-        opts_parser.add_option(
-            "-i", dest="binstpkg", action="store_true", help="Install package")
-        opts_parser.add_option(
-            "-u", dest="buninstpkg", action="store_true", help="Uninstall package")
-        global PARAMETERS
-        (PARAMETERS, args) = opts_parser.parse_args()
-    except Exception as e:
-        print ("Got wrong option: %s, exit ..." % e)
-        sys.exit(1)
-
-    if not PARAMETERS.device:
-        (return_code, output) = doCMD("adb devices")
-        for line in output:
-            if str.find(line, "\tdevice") != -1:
-                PARAMETERS.device = line.split("\t")[0]
-                break
-
-    if not PARAMETERS.device:
-        print ("No device found")
-        sys.exit(1)
-
-    if PARAMETERS.binstpkg and PARAMETERS.buninstpkg:
-        print ("-i and -u are conflict")
-        sys.exit(1)
-
-    if PARAMETERS.buninstpkg:
-        if not uninstPKGs():
-            sys.exit(1)
-    else:
-        if not instPKGs():
-            sys.exit(1)
-
-if __name__ == "__main__":
-    main()
-    sys.exit(0)
diff --git a/common/tct-messaging-email-tizen-tests/inst.wgt.py b/common/tct-messaging-email-tizen-tests/inst.wgt.py
deleted file mode 100755 (executable)
index ec51f52..0000000
+++ /dev/null
@@ -1,258 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import shutil
-import glob
-import time
-import sys
-import subprocess
-import string
-from optparse import OptionParser, make_option
-import configparser
-
-
-SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
-PKG_NAME = os.path.basename(SCRIPT_DIR)
-PARAMETERS = None
-#XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5000/dbus/user_bus_socket"
-TCT_CONFIG_FILE = "/opt/tools/TCT_CONFIG"
-tct_parser = configparser.ConfigParser()
-tct_parser.read(TCT_CONFIG_FILE)
-SRC_DIR = tct_parser.get('DEVICE', 'DEVICE_SUITE_TARGET_30')
-PKG_SRC_DIR = "%s/tct/opt/%s" % (SRC_DIR, PKG_NAME)
-EXECUTION_MODE_30 = tct_parser.get('DEVICE', 'DEVICE_EXECUTION_MODE_30')
-ADMIN_USER_30 = tct_parser.get('DEVICE', 'DEVICE_ADMIN_USER_30')
-
-def userCheck():
-    global GLOVAL_OPT
-    if ADMIN_USER_30 == EXECUTION_MODE_30:
-        GLOVAL_OPT="--global"
-    else:
-        GLOVAL_OPT=""
-
-
-def askpolicyremoving():
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        for file in files:
-            if file.endswith(".wgt"):
-                pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
-   
-    print (pkg_id)
-    print (os.getcwd())
-    print (os.path.dirname(os.path.realpath(__file__)) )
-    if not doRemoteCopy("%s/askpolicy.sh" % SCRIPT_DIR, "%s" % (SRC_DIR)):
-        action_status = False
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell .%s/askpolicy.sh %s" % (PARAMETERS.device, 
-        SRC_DIR, pkg_id)
-    return doCMD(cmd)
-       
-def doCMD(cmd):
-    # Do not need handle timeout in this short script, let tool do it
-    print ("-->> \"%s\"" % cmd)
-    output = []
-    cmd_return_code = 1
-    cmd_proc = subprocess.Popen(
-        cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
-
-    while True:
-        output_line = cmd_proc.stdout.readline().decode("UTF-8").strip("\r\n")
-        cmd_return_code = cmd_proc.poll()
-        if output_line == '' and cmd_return_code != None:
-            break
-        sys.stdout.write("%s\n" % output_line)
-        sys.stdout.flush()
-        output.append(output_line)
-
-    return (cmd_return_code, output)
-
-def updateCMD(cmd=None):
-    if "pkgcmd" in cmd:
-        cmd = "su - %s -c '%s;%s'" % (PARAMETERS.user, XW_ENV, cmd)
-    return cmd
-def getUSERID():
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell id -u %s" % (
-            PARAMETERS.device, PARAMETERS.user)
-    else:
-        cmd = "ssh %s \"id -u %s\"" % (
-            PARAMETERS.device, PARAMETERS.user )
-    return doCMD(cmd)
-
-
-def getPKGID(pkg_name=None):
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell %s" % (
-            PARAMETERS.device, updateCMD('pkgcmd -l'))
-    else:
-        cmd = "ssh %s \"%s\"" % (
-            PARAMETERS.device, updateCMD('pkgcmd -l'))
-
-    (return_code, output) = doCMD(cmd)
-    if return_code != 0:
-        return None
-
-    test_pkg_id = None
-    for line in output:
-        if line.find("[" + pkg_name + "]") != -1:
-            pkgidIndex = line.split().index("pkgid")
-            test_pkg_id = line.split()[pkgidIndex+1].strip("[]")
-            break
-    return test_pkg_id
-
-
-def doRemoteCMD(cmd=None):
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell %s" % (PARAMETERS.device, updateCMD(cmd))
-    else:
-        cmd = "ssh %s \"%s\"" % (PARAMETERS.device, updateCMD(cmd))
-
-    return doCMD(cmd)
-
-
-def doRemoteCopy(src=None, dest=None):
-    if PARAMETERS.mode == "SDB":
-        cmd_prefix = "sdb -s %s push" % PARAMETERS.device
-        cmd = "%s %s %s" % (cmd_prefix, src, dest)
-    else:
-        cmd = "scp -r %s %s:/%s" % (src, PARAMETERS.device, dest)
-
-    (return_code, output) = doCMD(cmd)
-    doRemoteCMD("sync")
-
-    if return_code != 0:
-        return True
-    else:
-        return False
-
-
-def uninstPKGs():
-    action_status = True
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        if root.endswith("mediasrc"):
-            continue
-
-        for file in files:
-            if file.endswith(".wgt"):
-                pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
-                if not pkg_id:
-                    action_status = False
-                    continue
-                (return_code, output) = doRemoteCMD(
-                    "pkgcmd %s -q -u -n %s" % (GLOVAL_OPT, pkg_id))
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-
-    (return_code, output) = doRemoteCMD(
-        "rm -rf %s" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-
-    (return_code, output) = doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, PKG_NAME))
-    if return_code != 0:
-        action_status = False
-
-    return action_status
-
-
-def instPKGs():
-    action_status = True
-    (return_code, output) = doRemoteCMD(
-        "mkdir -p %s" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        if root.endswith("mediasrc"):
-            continue
-
-        for file in files:
-            if file.endswith(".wgt"):
-                if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
-                    action_status = False
-                (return_code, output) = doRemoteCMD(
-                    "pkgcmd %s -i -t wgt -q -p %s/%s" % (GLOVAL_OPT, SRC_DIR, file))
-                doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, file))
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-
-    (return_code, output) = doRemoteCMD("mkdir -p %s/%s" % (SRC_DIR, PKG_NAME))
-    if return_code != 0:
-        action_status = False
-
-    for item in os.listdir(SCRIPT_DIR):
-        if item.find("webapi-tizen-messaging-test_") != -1:
-            if not doRemoteCopy("%s/%s" % (SCRIPT_DIR, item), "%s/%s/%s" % (SRC_DIR, PKG_NAME, item)):
-                action_status = False
-
-    return action_status
-
-
-def main():
-    try:
-        usage = "usage: inst.py -i"
-        opts_parser = OptionParser(usage=usage)
-        opts_parser.add_option(
-            "-m", dest="mode", action="store", help="Specify mode")
-        opts_parser.add_option(
-            "-s", dest="device", action="store", help="Specify device")
-        opts_parser.add_option(
-            "-i", dest="binstpkg", action="store_true", help="Install package")
-        opts_parser.add_option(
-            "-u", dest="buninstpkg", action="store_true", help="Uninstall package")
-        opts_parser.add_option(
-            "-a", dest="user", action="store", help="User name")
-        global PARAMETERS
-        (PARAMETERS, args) = opts_parser.parse_args()
-    except Exception as e:
-        print ("Got wrong option: %s, exit ..." % e)
-        sys.exit(1)
-
-    if not PARAMETERS.user:
-        PARAMETERS.user = EXECUTION_MODE_30
-    if not PARAMETERS.mode:
-        PARAMETERS.mode = "SDB"
-
-    if PARAMETERS.mode == "SDB":
-        if not PARAMETERS.device:
-            (return_code, output) = doCMD("sdb devices")
-            for line in output:
-                if str.find(line, "\tdevice") != -1:
-                    PARAMETERS.device = line.split("\t")[0]
-                    break
-    else:
-        PARAMETERS.mode = "SSH"
-
-    if not PARAMETERS.device:
-        print ("No device provided")
-        sys.exit(1)
-
-    userCheck()
-
-    user_info = getUSERID()
-    re_code = user_info[0]
-    if re_code == 0 :
-        global XW_ENV
-        userid = user_info[1][0]
-        XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%s/dbus/user_bus_socket"%str(userid)
-    else:
-        print ("[Error] cmd commands error : %s" % str(user_info[1]))
-        sys.exit(1)
-    if PARAMETERS.binstpkg and PARAMETERS.buninstpkg:
-        print ("-i and -u are conflict")
-        sys.exit(1)
-
-    if PARAMETERS.buninstpkg:
-        if not uninstPKGs():
-            sys.exit(1)
-    else:
-        if not instPKGs():
-            #askpolicyremoving()
-            sys.exit(1)
-
-if __name__ == "__main__":
-    main()
-    sys.exit(0)
diff --git a/common/tct-messaging-email-tizen-tests/inst.xpk.py b/common/tct-messaging-email-tizen-tests/inst.xpk.py
deleted file mode 100755 (executable)
index 4cd2306..0000000
+++ /dev/null
@@ -1,227 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import shutil
-import glob
-import time
-import sys
-import subprocess
-import string
-from optparse import OptionParser, make_option
-import configparser
-
-
-SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
-PKG_NAME = os.path.basename(SCRIPT_DIR)
-PARAMETERS = None
-#XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5000/dbus/user_bus_socket"
-TCT_CONFIG_FILE = "/opt/tools/TCT_CONFIG"
-tct_parser = configparser.ConfigParser()
-tct_parser.read(TCT_CONFIG_FILE)
-SRC_DIR = tct_parser.get('DEVICE', 'DEVICE_SUITE_TARGET_30')
-PKG_SRC_DIR = "%s/tct/opt/%s" % (SRC_DIR, PKG_NAME)
-
-
-def doCMD(cmd):
-    # Do not need handle timeout in this short script, let tool do it
-    print ("-->> \"%s\"" % cmd)
-    output = []
-    cmd_return_code = 1
-    cmd_proc = subprocess.Popen(
-        cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
-
-    while True:
-        output_line = cmd_proc.stdout.readline().decode("UTF-8").strip("\r\n")
-        cmd_return_code = cmd_proc.poll()
-        if output_line == '' and cmd_return_code != None:
-            break
-        sys.stdout.write("%s\n" % output_line)
-        sys.stdout.flush()
-        output.append(output_line)
-
-    return (cmd_return_code, output)
-
-
-def updateCMD(cmd=None):
-    if "pkgcmd" in cmd:
-        cmd = "su - %s -c '%s;%s'" % (PARAMETERS.user, XW_ENV, cmd)
-    return cmd
-def getUSERID():
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell id -u %s" % (
-            PARAMETERS.device, PARAMETERS.user)
-    else:
-        cmd = "ssh %s \"id -u %s\"" % (
-            PARAMETERS.device, PARAMETERS.user )
-    return doCMD(cmd)
-
-
-
-
-def getPKGID(pkg_name=None):
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell %s" % (
-            PARAMETERS.device, updateCMD('pkgcmd -l'))
-    else:
-        cmd = "ssh %s \"%s\"" % (
-            PARAMETERS.device, updateCMD('pkgcmd -l'))
-
-    (return_code, output) = doCMD(cmd)
-    if return_code != 0:
-        return None
-
-    test_pkg_id = None
-    for line in output:
-        if line.find("[" + pkg_name + "]") != -1:
-            pkgidIndex = line.split().index("pkgid")
-            test_pkg_id = line.split()[pkgidIndex+1].strip("[]")
-            break
-    return test_pkg_id
-
-
-def doRemoteCMD(cmd=None):
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell %s" % (PARAMETERS.device, updateCMD(cmd))
-    else:
-        cmd = "ssh %s \"%s\"" % (PARAMETERS.device, updateCMD(cmd))
-
-    return doCMD(cmd)
-
-
-def doRemoteCopy(src=None, dest=None):
-    if PARAMETERS.mode == "SDB":
-        cmd_prefix = "sdb -s %s push" % PARAMETERS.device
-        cmd = "%s %s %s" % (cmd_prefix, src, dest)
-    else:
-        cmd = "scp -r %s %s:/%s" % (src, PARAMETERS.device, dest)
-
-    (return_code, output) = doCMD(cmd)
-    doRemoteCMD("sync")
-
-    if return_code != 0:
-        return True
-    else:
-        return False
-
-
-def uninstPKGs():
-    action_status = True
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        for file in files:
-            if file.endswith(".xpk"):
-                pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
-                if not pkg_id:
-                    action_status = False
-                    continue
-                (return_code, output) = doRemoteCMD(
-                    "pkgcmd -u -t xpk -q -n %s" % pkg_id)
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-
-    (return_code, output) = doRemoteCMD(
-        "rm -rf %s" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-
-    (return_code, output) = doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, PKG_NAME))
-    if return_code != 0:
-        action_status = False
-
-    return action_status
-
-
-def instPKGs():
-    action_status = True
-    (return_code, output) = doRemoteCMD(
-        "mkdir -p %s" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        for file in files:
-            if file.endswith(".xpk"):
-                if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
-                    action_status = False
-                (return_code, output) = doRemoteCMD(
-                    "pkgcmd -i -t xpk -q -p %s/%s" % (SRC_DIR, file))
-                doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, file))
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-
-    (return_code, output) = doRemoteCMD("mkdir -p %s/%s" % (SRC_DIR, PKG_NAME))
-    if return_code != 0:
-        action_status = False
-
-    for item in os.listdir(SCRIPT_DIR):
-        if item.find("webapi-tizen-appcontrol-test_") != -1:
-            if not doRemoteCopy("%s/%s" % (SCRIPT_DIR, item), "%s/%s/%s" % (SRC_DIR, PKG_NAME, item)):
-                action_status = False
-
-    return action_status
-
-
-def main():
-    try:
-        usage = "usage: inst.py -i"
-        opts_parser = OptionParser(usage=usage)
-        opts_parser.add_option(
-            "-m", dest="mode", action="store", help="Specify mode")
-        opts_parser.add_option(
-            "-s", dest="device", action="store", help="Specify device")
-        opts_parser.add_option(
-            "-i", dest="binstpkg", action="store_true", help="Install package")
-        opts_parser.add_option(
-            "-u", dest="buninstpkg", action="store_true", help="Uninstall package")
-        opts_parser.add_option(
-            "-a", dest="user", action="store", help="User name")
-        global PARAMETERS
-        (PARAMETERS, args) = opts_parser.parse_args()
-    except Exception as e:
-        print ("Got wrong option: %s, exit ..." % e)
-        sys.exit(1)
-
-    if not PARAMETERS.user:
-        PARAMETERS.user = "owner"
-    if not PARAMETERS.mode:
-        PARAMETERS.mode = "SDB"
-
-    if PARAMETERS.mode == "SDB":
-        if not PARAMETERS.device:
-            (return_code, output) = doCMD("sdb devices")
-            for line in output:
-                if str.find(line, "\tdevice") != -1:
-                    PARAMETERS.device = line.split("\t")[0]
-                    break
-    else:
-        PARAMETERS.mode = "SSH"
-
-    if not PARAMETERS.device:
-        print ("No device provided")
-        sys.exit(1)
-
-    user_info = getUSERID()
-    re_code = user_info[0]
-    if re_code == 0 :
-        global XW_ENV
-        userid = user_info[1][0]
-        XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%s/dbus/user_bus_socket"%str(userid)
-    else:
-        print ("[Error] cmd commands error : %s" % str(user_info[1]))
-        sys.exit(1)
-    if PARAMETERS.binstpkg and PARAMETERS.buninstpkg:
-        print ("-i and -u are conflict")
-        sys.exit(1)
-
-    if PARAMETERS.buninstpkg:
-        if not uninstPKGs():
-            sys.exit(1)
-    else:
-        if not instPKGs():
-            sys.exit(1)
-
-if __name__ == "__main__":
-    main()
-    sys.exit(0)
diff --git a/common/tct-messaging-email-tizen-tests/manifest.json b/common/tct-messaging-email-tizen-tests/manifest.json
deleted file mode 100755 (executable)
index e3ff79d..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-{
-    "version": "8.0",
-    "name": "tct-messaging-email-tizen-tests",
-    "permissions": ["tabs", "unlimited_storage", "notifications", "http://*/*", "https://*/*"],
-    "description": "tct-messaging-email-tizen-tests",
-    "webapimanager": true,
-    "file_name": "manifest.json",
-    "app": {
-        "launch": {
-            "local_path": "index.html"
-        }
-    }
-}
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_notexist.html
deleted file mode 100755 (executable)
index 6523c19..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageArraySuccessCallback_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageArraySuccessCallback_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageArraySuccessCallback exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessageArraySuccessCallback:MessageArraySuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBNIO
-
-test(function () {
-    check_no_interface_object("MessageArraySuccessCallback");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess.html b/common/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess.html
deleted file mode 100755 (executable)
index 8062c5e..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageArraySuccessCallback_onsuccess</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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageArraySuccessCallback_onsuccess
-//==== LABEL Check if method onsuccess of MessageArraySuccessCallback works
-//==== SPEC Tizen Web API:Communication:Messaging:MessageArraySuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA CBT
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message,
-    addDraftSuccess, addDraftError, findFilter, findMessagesSuccess, findMessagesError;
-
-t.step(function () {
-
-    findMessagesSuccess = t.step_func(function (messages) {
-        assert_draft_message_equals(t, messages, message);
-        t.done();
-    });
-
-    findMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        findFilter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(findFilter, findMessagesSuccess, findMessagesError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_email_onsuccess.html b/common/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_email_onsuccess.html
deleted file mode 100755 (executable)
index e0ca731..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageAttachmentSuccessCallback_email_onsuccess</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageAttachmentSuccessCallback_email_onsuccess
-//==== PRIORITY P1
-//==== LABEL Check if callback is called and if its arguments have proper type - MessageAttachmentSuccessCallback, onsuccess, email
-//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachmentSuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBT CBOA
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, inboxFolder,
-    message, attachment, sendSuccess, sendError, syncSuccess, syncError,
-    findSuccess, findError, foundMessage, returnedValue = null,
-    loadAttachmentSuccess, loadAttachmentError, loadBodySuccess, loadBodyError, loadMessage,
-    folderSuccess, folderError;
-
-t.step(function () {
-
-    loadAttachmentSuccess = t.step_func(function (fattachment) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value from loadMessageAttachment");
-        assert_true(fattachment instanceof tizen.MessageAttachment, "Not a tizen.MessageAttachment.");
-
-        assert_type(fattachment.id, "string", "attachment.id incorrect type.");
-        assert_not_equals(fattachment.id, "", "attachment.id is empty.");
-
-        assert_type(fattachment.messageId, "string", "attachment.messageId incorrect type.");
-        assert_equals(fattachment.messageId, foundMessage.attachments[0].messageId, "attachment.messageId");
-
-        assert_equals(fattachment.mimeType, attachment.mimeType, "attachment.mimeType");
-
-        assert_type(fattachment.filePath, "string", "attachment.filePath incorrect type.");
-        assert_not_equals(fattachment.filePath, "", "attachment.filePath is empty.");
-        t.done();
-    });
-
-    loadAttachmentError = t.step_func(function (error) {
-        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    loadBodySuccess = t.step_func(function (message) {
-        loadMessage = message;
-        assert_equals(loadMessage.attachments.length, 1, "Incorrect number of found attachments");
-        returnedValue = service.loadMessageAttachment(loadMessage.attachments[0], loadAttachmentSuccess, loadAttachmentError);
-    });
-
-    loadBodyError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccess = t.step_func(function (messages) {
-        if (messages.length > 0) {
-            assert_inbox_message_equals(t, messages, message, inboxFolder);
-            foundMessage = messages[0];
-
-            if (foundMessage.attachments.length === 0) {
-                service.loadMessageBody(foundMessage, loadBodySuccess, loadBodyError);
-            } else {
-                returnedValue = service.loadMessageAttachment(foundMessage.attachments[0], loadAttachmentSuccess, loadAttachmentError);
-            }
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    folderSuccess = t.step_func(function (folders) {
-        inboxFolder = getInboxFolder(t, folders);
-        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncSuccess = t.step_func(function () {
-        findFolders(t, service, folderSuccess, folderError);
-    });
-
-    syncError = t.step_func(function (error) {
-        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        sync(t, service, syncSuccess, syncError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE);
-        message.attachments = [attachment];
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_notexist.html
deleted file mode 100755 (executable)
index ce32ec9..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageAttachmentSuccessCallback_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageAttachmentSuccessCallback_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageAttachmentSuccessCallback exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachmentSuccessCallback:MessageAttachmentSuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBNIO
-
-test(function () {
-    check_no_interface_object("MessageAttachmentSuccessCallback");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor.html b/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor.html
deleted file mode 100755 (executable)
index 323f3b0..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageAttachment_constructor</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageAttachment_constructor
-//==== LABEL Check if MessageAttachment's constructor works
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:constructor C
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CONSTRA CONSTRM
-
-test(function () {
-    var attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE);
-
-    assert_true(attachment instanceof tizen.MessageAttachment, "InstanceOf.");
-
-    assert_equals(attachment.id, null, "'attachment.id' should be null");
-    assert_equals(attachment.messageId, null, "'attachment.messageId' should be null");
-    assert_equals(attachment.mimeType, MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE, "'attachment.mimeType' should be "+MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE);
-    assert_equals(attachment.filePath, TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "'attachment.filePath' should be \""+TEST_DIR + "webapi-tizen-messaging-test_image.jpg"+"\"");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor_minargs.html b/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor_minargs.html
deleted file mode 100755 (executable)
index b2aec1e..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageAttachment_constructor_minargs</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageAttachment_constructor_minargs
-//==== LABEL Check if MessageAttachment's constructor works with minimum arguments
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:constructor C
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CONSTRM
-
-test(function () {
-    var attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");
-
-    assert_true(attachment instanceof tizen.MessageAttachment, "InstanceOf.");
-
-    assert_equals(attachment.id, null, "'attachment.id' should be null by default");
-    assert_equals(attachment.messageId, null, "'attachment.messageId' should be null by default");
-    assert_equals(attachment.mimeType, null, "'attachment.mimeType' null by default");
-    assert_equals(attachment.filePath, TEST_DIR + "webapi-tizen-messaging-test_image.jpg",
-        "'attachment.filePath' should be \""+TEST_DIR + "webapi-tizen-messaging-test_image.jpg"+"\" by default");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_exist.html
deleted file mode 100755 (executable)
index a980e30..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageAttachment_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageAttachment_exist
-//==== LABEL Check if MessageAttachment exists
-//==== PRIORITY P0
-//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:constructor C
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CONSTRF
-
-test(function () {
-    check_constructor("MessageAttachment");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_extend.html b/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_extend.html
deleted file mode 100755 (executable)
index 2ded46b..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageAttachment_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageAttachment_extend
-//==== PRIORITY P3
-//==== LABEL Check if instance of interface MessageAttachment can be extended with new property
-//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:MessageAttachment U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA OBX
-
-test(function () {
-    var attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");
-
-    check_extensibility(attachment);
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_filePath_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_filePath_attribute.html
deleted file mode 100755 (executable)
index 4bcfbfa..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageAttachment_filePath_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageAttachment_filePath_attribute
-//==== LABEL Check if attribute filePath of MessageAttachment exists, has type DOMString and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:filePath A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO AT ADV
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), attachment, message,
-    service, serviceSuccess, serviceError, sendSuccess, sendError, syncSuccess, syncError,
-    findFoldersError, findFoldersSuccess,
-    inboxFolder, findMessageError,
-    findMessageSuccess, foundMessage, loadBodyError, loadBodySuccess;
-
-t.step(function () {
-    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");
-
-    assert_own_property(attachment, "filePath", "MessageAttachment does not own filePath property.");
-    check_readonly(attachment, "filePath", TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "string", "sampleValue");
-
-    loadBodySuccess = t.step_func(function (loadedMessage) {
-        assert_true(loadedMessage.hasAttachment, "Message does not have any attachments.");
-        assert_equals(loadedMessage.attachments[0].filePath, null, "filePath is incorrect");
-
-        t.done();
-    });
-
-    loadBodyError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findMessageSuccess = t.step_func(function (messages) {
-        if (messages.length > 0) {
-            assert_inbox_message_equals(t, messages, message, inboxFolder);
-
-            foundMessage = messages[0];
-
-            service.loadMessageBody(foundMessage, loadBodySuccess, loadBodyError);
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findMessageError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findFoldersSuccess = t.step_func(function (folders) {
-        assert_greater_than(folders.length, 0, "Received empty folders array");
-
-        inboxFolder = getInboxFolder(t, folders);
-
-        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncSuccess = t.step_func(function () {
-        findFolders(t, service, findFoldersSuccess, findFoldersError);
-    });
-
-    syncError = t.step_func(function (error) {
-        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        sync(t, service, syncSuccess, syncError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-        message.attachments = [attachment];
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_id_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_id_attribute.html
deleted file mode 100755 (executable)
index f4caac7..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageAttachment_id_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageAttachment_id_attribute
-//==== LABEL Check if attribute id of MessageAttachment exists, has type MessageAttachmentId and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:id A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO ADV AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message, attachment,
-    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;
-t.step(function () {
-    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");
-
-    assert_own_property(attachment, "id", "MessageAttachment does not own id property.");
-    assert_equals(attachment.id, null, "Incorrect default value");
-    check_readonly(attachment, "id", null, "object", "12345");
-
-    addDraftSuccess = t.step_func(function () {
-        assert_type(attachment.id, "string", "Id is not a string");
-        assert_not_equals(attachment.id, "", "Id is empty");
-
-        check_readonly(attachment, "id", attachment.id, "string", "54321");
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        message.attachments = [attachment];
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_messageId_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_messageId_attribute.html
deleted file mode 100755 (executable)
index b36a0b1..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageAttachment_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageAttachment_messageId_attribute
-//==== LABEL Check if attribute messageId of MessageAttachment exists, has type MessageId and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:messageId A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO ADV AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message, attachment,
-    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;
-t.step(function () {
-    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");
-
-    assert_own_property(attachment, "messageId", "MessageAttachment does not own messageId property.");
-    assert_equals(attachment.messageId, null, "Incorrect default value");
-    check_readonly(attachment, "messageId", null, "object", "12345");
-
-
-    addDraftSuccess = t.step_func(function () {
-        assert_type(attachment.messageId, "string", "messageId is not a string");
-        assert_not_equals(attachment.id, "", "messageId is empty");
-
-        check_readonly(attachment, "messageId", message.id, "string", "54321");
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        message.attachments = [attachment];
-
-        check_readonly(attachment, "messageId", message.id, "string", "22222");
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_mimeType_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageAttachment_mimeType_attribute.html
deleted file mode 100755 (executable)
index b3d6a9f..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageAttachment_mimeType_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageAttachment_mimeType_attribute
-//==== LABEL Check if attribute mimeType of MessageAttachment exists, has type DOMString and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:mimeType A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE ADV ARO AT
-
-test(function () {
-    var attachment;
-
-    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE);
-    assert_own_property(attachment, "mimeType", "MessageAttachment does not own mimeType property.");
-    check_readonly(attachment, "mimeType", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE, "string", "audio/mp3");
-
-    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");
-    assert_equals(attachment.mimeType, null, "Incorrect default value");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_email_onsuccess.html b/common/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_email_onsuccess.html
deleted file mode 100755 (executable)
index 5e41e4d..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageBodySuccessCallback_email_onsuccess</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBodySuccessCallback_email_onsuccess
-//==== PRIORITY P1
-//==== LABEL Check if callback is called and if its arguments have proper type (email message)
-//==== SPEC Tizen Web API:Communication:Messaging:MessageBodySuccessCallback:onsuccess U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBT CBOA
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), filter,
-    service, message, inboxFolder, serviceSuccess, serviceError, sendSuccess, sendError,
-    syncSuccess, syncError, folderSuccess, folderError, findSuccess, findError, bodySuccess, bodyError;
-
-t.step(function () {
-    bodySuccess = t.step_func(function (messageLoaded) {
-        assert_not_equals(messageLoaded, null, "message is null");
-        assert_true(messageLoaded instanceof tizen.Message, "message type is not Message");
-
-        assert_not_equals(messageLoaded.body, null, "message body is null");
-        assert_equals(messageLoaded.subject, message.subject, "subject does not match");
-        assert_equals(messageLoaded.body.htmlBody.replace(/\s+$/g, ""), MESSAGE_BODY_HTML, "body does not match");
-        assert_equals(messageLoaded.hasAttachment, false, "hasAttachment is not false");
-        assert_equals(messageLoaded.attachments.length, 0, "message should have no attachments");
-
-        t.done();
-    });
-
-    bodyError = t.step_func(function (error) {
-        assert_unreached("failed to load message body: name: " + error.name + " msg: " + error.message);
-    });
-
-    findSuccess = t.step_func(function (messages) {
-        if (messages.length > 0) {
-            assert_inbox_message_equals(t, messages, message, inboxFolder);
-            service.loadMessageBody(messages[0], bodySuccess, bodyError);
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("failed to find message: name: " + error.name + " msg: " + error.message);
-    });
-
-    folderSuccess = t.step_func(function (folders) {
-        inboxFolder = getInboxFolder(t, folders);
-        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-        service.messageStorage.findFolders(filter, folderSuccess, folderError);
-    });
-
-    syncError = t.step_func(function (error) {
-        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        sync(t, service, syncSuccess, syncError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = new tizen.Message("messaging.email", {
-            subject: generateSubject(),
-            to: [ TEST_EMAIL_RECIPIENT_1 ],
-            htmlBody: MESSAGE_BODY_HTML
-        });
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_notexist.html
deleted file mode 100755 (executable)
index d75ec91..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageBodySuccessCallback_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBodySuccessCallback_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageBodySuccessCallback exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessageBodySuccessCallback:MessageBodySuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBNIO
-
-test(function () {
-    check_no_interface_object("MessageBodySuccessCallback");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_onsuccess.html b/common/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_onsuccess.html
deleted file mode 100755 (executable)
index e94a203..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageBodySuccessCallback_onsuccess</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageBodySuccessCallback_onsuccess
-//==== PRIORITY P1
-//==== LABEL Check if callback is called and if its arguments have proper type
-//==== SPEC Tizen Web API:Communication:Messaging:MessageBodySuccessCallback:onsuccess U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    message, service, inboxFolder,
-    serviceSuccess, serviceError, sendSuccess, sendError, syncSuccess, syncError,
-    folderSuccess, folderError, findSuccess, findError, bodySuccess, bodyError;
-
-t.step(function () {
-    bodySuccess = t.step_func(function (messageLoaded) {
-        assert_not_equals(messageLoaded, null, "message is null");
-        assert_not_equals(messageLoaded.body, null, "message body is null");
-        assert_equals(messageLoaded.body.plainBody.replace(/\s+$/g, ""), message.body.plainBody, "body does not match");
-
-        t.done();
-    });
-
-    bodyError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccess = t.step_func(function (messages) {
-        if (messages.length > 0) {
-            assert_inbox_message_equals(t, messages, message, inboxFolder);
-            service.loadMessageBody(messages[0], bodySuccess, bodyError);
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    folderSuccess = t.step_func(function (folders) {
-        inboxFolder = getInboxFolder(t, folders);
-        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncSuccess = t.step_func(function () {
-        findFolders(t, service, folderSuccess, folderError);
-    });
-
-    syncError = t.step_func(function (error) {
-        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        sync(t, service, syncSuccess, syncError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_extend.html b/common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_extend.html
deleted file mode 100755 (executable)
index 3970f87..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<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>
-<div id="log"></div>
-<script>
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, messageBody;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        message = new tizen.Message("messaging.email");
-        messageBody = message.body;
-
-        check_extensibility(messageBody);
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_htmlBody_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_htmlBody_attribute.html
deleted file mode 100755 (executable)
index 006b0a2..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBody_email_htmlBody_attribute
-//==== LABEL Check if attribute htmlBody of MessageBody (email) exists, has type DOMString
-//==== PRIORITY P1
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, messageBody;
-
-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");
-
-        messageBody.htmlBody = null;
-        assert_equals(messageBody.htmlBody, "null", "htmlBody should not accept null as 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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_inlineAttachments_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_inlineAttachments_attribute.html
deleted file mode 100755 (executable)
index f0800e6..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageBody_email_inlineAttachments_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBody_email_inlineAttachments_attribute
-//==== LABEL Check if attribute inlineAttachments of MessageBody (email) exists, has type Array
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:inlineAttachments A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE AN AT ASG
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message, messageBody, oldValue,
-    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;
-
-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");
-        assert_equals(messageBody.inlineAttachments[0].messageId, message.id, "messageId is not a null");
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    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(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg")];
-        assert_type(messageBody.inlineAttachments, "array", "Not an array");
-        assert_equals(messageBody.inlineAttachments.length, 1, "Incorrrect length");
-
-        assert_own_property(messageBody.inlineAttachments[0], "id", "No id.");
-        assert_own_property(messageBody.inlineAttachments[0], "messageId", "No messageId.");
-        assert_own_property(messageBody.inlineAttachments[0], "mimeType", "No mimeType.");
-        assert_own_property(messageBody.inlineAttachments[0], "filePath", "No filePath.");
-
-        assert_equals(messageBody.inlineAttachments[0].id, null, "id is not a null");
-        assert_equals(messageBody.inlineAttachments[0].messageId, message.id, "messageId is not a null");
-        assert_equals(messageBody.inlineAttachments[0].mimeType, "image/jpg", "Incorrect mimeType");
-        assert_type(messageBody.inlineAttachments[0].filePath, "string", "filePath is not a string");
-        assert_not_equals(messageBody.inlineAttachments[0].filePath, "", "filePath is empty");
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_loaded_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_loaded_attribute.html
deleted file mode 100755 (executable)
index b100ca2..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBody_email_loaded_attribute
-//==== LABEL Check if attribute loaded of MessageBody (email) exists, has type Boolean and is readonly
-//==== PRIORITY P1
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, messageBody, oldValue;
-
-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);
-
-        oldValue = messageBody.loaded;
-        messageBody.loaded = null;
-        assert_equals(messageBody.loaded, oldValue, "loaded attribute shuld not accept null as 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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_messageId_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_messageId_attribute.html
deleted file mode 100755 (executable)
index 203d43b..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBody_email_messageId_attribute
-//==== LABEL Check if attribute messageId of MessageBody (email) exists, has type MessageId and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:messageId A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE AT ARO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message, messageBody,
-    serviceError, serviceSuccess, addDraftError, addDraftSuccess;
-
-t.step(function () {
-    addDraftSuccess = t.step_func(function () {
-        check_readonly(messageBody, "messageId", message.id, "string", "54321");
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    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.");
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_plainBody_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageBody_email_plainBody_attribute.html
deleted file mode 100755 (executable)
index 4d570a6..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBody_email_plainBody_attribute
-//==== LABEL Check if attribute plainBody of MessageBody (email) exists, has type DOMString
-//==== PRIORITY P1
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, messageBody;
-
-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");
-
-        messageBody.plainBody = null;
-        assert_equals(messageBody.plainBody, "null", "Incorrect plainBody after null assignment");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageBody_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageBody_notexist.html
deleted file mode 100755 (executable)
index 6a38993..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageBody_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBody_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageBody exists, it should not.
-//==== 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 NIO
-
-test(function () {
-    check_no_interface_object("MessageBody");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_notexist.html
deleted file mode 100755 (executable)
index 9b0cf22..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversationArraySuccessCallback_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageConversationArraySuccessCallback_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageConversationArraySuccessCallback exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationArraySuccessCallback:MessageConversationArraySuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBNIO
-
-test(function () {
-    check_no_interface_object("MessageConversationArraySuccessCallback");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess.html
deleted file mode 100755 (executable)
index b454b34..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-
-<head>
-<title>MessageConversationArraySuccessCallback_onsuccess</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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversationArraySuccessCallback_onsuccess
-//==== LABEL Check if method onsuccess of MessageConversationArraySuccessCallback works
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationArraySuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA CBT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), service, message,
-    serviceSuccess, serviceError, findConversationsSuccess, findConversationsError, filter,
-    addDraftSuccess, addDraftError;
-
-t.step(function () {
-    findConversationsError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findConversationsSuccess = t.step_func(function (conversations) {
-        assert_type(conversations, "array", "Incorrect type.");
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-
-        assert_own_property(conversations[0], "id", "id not present.");
-        assert_own_property(conversations[0], "type", "type not present.");
-        assert_own_property(conversations[0], "timestamp", "timestamp not present.");
-        assert_own_property(conversations[0], "messageCount", "messageCount not present.");
-        assert_own_property(conversations[0], "unreadMessages", "unreadMessages not present.");
-        assert_own_property(conversations[0], "preview", "preview not present.");
-        assert_own_property(conversations[0], "subject", "subject not present.");
-        assert_own_property(conversations[0], "isRead", "isRead not present.");
-        assert_own_property(conversations[0], "from", "from not present.");
-        assert_own_property(conversations[0], "to", "to not present.");
-        assert_own_property(conversations[0], "cc", "cc not present.");
-        assert_own_property(conversations[0], "bcc", "bcc not present.");
-        assert_own_property(conversations[0], "lastMessageId", "lastMessageId not present.");
-
-        t.done();
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.conversationId);
-        service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_bcc_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_bcc_attribute.html
deleted file mode 100755 (executable)
index 84b3533..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_bcc_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversation_bcc_attribute
-//==== LABEL Check attribute bcc of MessageConversation
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:bcc A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), tmp;
-
-message_conversation_test(t, function (service, message, conversation) {
-    assert_own_property(conversation, "bcc", "MessageConversation does not own bcc property.");
-
-    assert_type(conversation.bcc, "array", "Not an array");
-    assert_array_equals(conversation.bcc, message.bcc, "Incorrect 'bcc' attribute");
-
-    tmp = conversation.bcc;
-    conversation.bcc = [Math.random()];
-    assert_array_equals(conversation.bcc, tmp, "bcc can be modified.");
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_cc_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_cc_attribute.html
deleted file mode 100755 (executable)
index 9b1a356..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_cc_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversation_cc_attribute
-//==== LABEL Check attribute cc of MessageConversation
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:cc A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), tmp;
-
-message_conversation_test(t, function (service, message, conversation) {
-    assert_own_property(conversation, "cc", "MessageConversation does not own cc property.");
-
-    assert_type(conversation.cc, "array", "Not an array");
-    assert_array_equals(conversation.cc, message.cc, "Incorrect 'cc' attribute");
-
-    tmp = conversation.cc;
-    conversation.cc = [Math.random()];
-    assert_array_equals(tmp, conversation.cc, "cc can be modified.");
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_extend.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_extend.html
deleted file mode 100755 (executable)
index 5a4faba..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversation_extend
-//==== PRIORITY P3
-//==== LABEL Check if instance of interface MessageConversation can be extended with new property
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:MessageConversation U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA OBX
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000});
-
-message_conversation_test(t, function (service, message, conversation) {
-    check_extensibility(conversation);
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_from_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_from_attribute.html
deleted file mode 100755 (executable)
index 62c04ac..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_from_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversation_from_attribute
-//==== LABEL Check attribute from of MessageConversation
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:from A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, sendSuccess, sendError, syncSuccess, syncError,
-    filter, findSuccess, findError, i;
-
-t.step(function () {
-    findSuccess = t.step_func(function (conversations) {
-        if (conversations.length > 0) {
-            assert_type(conversations, "array", "Not an array");
-
-            for (i = 0; i < conversations.length; i++) {
-                assert_own_property(conversations[i], "from", "MessageConversation does not own from property.");
-                assert_equals(conversations[i].from, TEST_EMAIL_RECIPIENT_1, "returned from is not equal");
-                check_readonly(conversations[i], "from", conversations[i].from, "string", "dummyValue");
-            }
-
-            t.done();
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("from", "EXACTLY", TEST_EMAIL_RECIPIENT_1);
-        service.messageStorage.findConversations(filter, findSuccess, findError);
-    });
-
-    syncError = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        sync(t, service, syncSuccess, syncError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_id_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_id_attribute.html
deleted file mode 100755 (executable)
index 6d2a40b..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_id_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST MessageConversation_id_attribute
-//==== LABEL Check attribute id of MessageConversation
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:id A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000});
-
-message_conversation_test(t, function (service, message, conversation) {
-    assert_own_property(conversation, "id", "MessageConversation does not own id property.");
-
-    check_readonly(conversation, "id", conversation.id, "string", null);
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_isRead_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_isRead_attribute.html
deleted file mode 100755 (executable)
index e89c955..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_isRead_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversation_isRead_attribute
-//==== PRIORITY P1
-//==== LABEL Check attribute isRead of MessageConversation
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:isRead A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000});
-
-message_conversation_test(t, function (service, message, conversation) {
-    assert_own_property(conversation, "isRead", "MessageConversation does not own isRead property.");
-    check_readonly(conversation, "isRead", conversation.isRead, "boolean", null);
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_lastMessageId_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_lastMessageId_attribute.html
deleted file mode 100755 (executable)
index 3167c86..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_lastMessageId_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversation_lastMessageId_attribute
-//==== LABEL Check attribute lastMessageId of MessageConversation
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:lastMessageId A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000});
-
-message_conversation_test(t, function (service, message, conversation) {
-    assert_own_property(conversation, "lastMessageId", "MessageConversation does not own lastMessageId property.");
-
-    check_readonly(conversation, "lastMessageId", conversation.lastMessageId, "string", null);
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_messageCount_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_messageCount_attribute.html
deleted file mode 100755 (executable)
index a492c2e..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_messageCount_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversation_messageCount_attribute
-//==== LABEL Check attribute messageCount of MessageConversation
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:messageCount A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000});
-
-message_conversation_test(t, function (service, message, conversation) {
-    assert_own_property(conversation, "messageCount", "MessageConversation does not own messageCount property.");
-
-    check_readonly(conversation, "messageCount", conversation.messageCount, "number", null);
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_notexist.html
deleted file mode 100755 (executable)
index 1c2f62a..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageConversation_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageConversation exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:MessageConversation U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA NIO
-test(function () {
-    check_no_interface_object("MessageConversation");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_preview_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_preview_attribute.html
deleted file mode 100755 (executable)
index cdb703c..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_preview_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversation_preview_attribute
-//==== LABEL Check attribute preview of MessageConversation
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:preview A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000});
-
-message_conversation_test(t, function (service, message, conversation) {
-    assert_own_property(conversation, "preview", "MessageConversation does not own preview property.");
-
-    check_readonly(conversation, "preview", conversation.preview, "string", "aaa");
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_subject_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_subject_attribute.html
deleted file mode 100755 (executable)
index 9da77d0..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_subject_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversation_subject_attribute
-//==== LABEL Check attribute subject of MessageConversation
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:subject A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000});
-
-message_conversation_test(t, function (service, message, conversation) {
-    assert_own_property(conversation, "subject", "MessageConversation does not own subject property.");
-
-    check_readonly(conversation, "subject", conversation.subject, "string", null);
-
-    assert_true(conversation.subject !== "", "subject should be null or non empty string");
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_timestamp_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_timestamp_attribute.html
deleted file mode 100755 (executable)
index ec20e6a..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_timestamp_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversation_timestamp_attribute
-//==== LABEL Check attribute timestamp of MessageConversation
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:timestamp A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), tmp;
-
-message_conversation_test(t, function (service, message, conversation) {
-    assert_own_property(conversation, "timestamp", "MessageConversation does not own timestamp property.");
-
-    assert_type(conversation.timestamp, "Date", "Type of timestamp is different.");
-
-    tmp = conversation.timestamp;
-    conversation.timestamp = new Date();
-    assert_equals(tmp.getTime(), conversation.timestamp.getTime(), "timestamp  can be modified.");
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_to_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_to_attribute.html
deleted file mode 100755 (executable)
index 3bf8913..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_to_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversation_to_attribute
-//==== LABEL Check attribute to of MessageConversation
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:to A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), tmp;
-
-message_conversation_test(t, function (service, message, conversation) {
-    assert_own_property(conversation, "to", "MessageConversation does not own to property.");
-
-    assert_type(conversation.to, "array", "Not an array");
-    assert_array_equals(conversation.to, message.to, "Incorrect 'to' attribute");
-
-    tmp = conversation.to;
-    conversation.to = [Math.random()];
-    assert_array_equals(conversation.to, tmp, "to can be modified.");
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_type_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_type_attribute.html
deleted file mode 100755 (executable)
index 7978f79..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_type_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversation_type_attribute
-//==== LABEL Check attribute type of MessageConversation
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:type A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000});
-
-message_conversation_test(t, function (service, message, conversation) {
-    assert_own_property(conversation, "type", "MessageConversation does not own type property.");
-    check_readonly(conversation, "type", conversation.type, "string", null);
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_unreadMessages_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversation_unreadMessages_attribute.html
deleted file mode 100755 (executable)
index bf5438d..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Roman Frolow <r.frolow@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversation_unreadMessages_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversation_unreadMessages_attribute
-//==== LABEL Check attribute unreadMessages of MessageConversation
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:unreadMessages A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000});
-
-message_conversation_test(t, function (service, message, conversation) {
-    assert_own_property(conversation, "unreadMessages", "MessageConversation does not own unreadMessages property.");
-    check_readonly(conversation, "unreadMessages", conversation.unreadMessages, "number", conversation.unreadMessages + 1);
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded.html
deleted file mode 100755 (executable)
index 5524bb3..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Beata Koziarek <b.koziarek@samsung.com>
--->
-
-<html>
-<head>
-<title>MessageConversationsChangeCallback_conversationsadded</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversationsChangeCallback_conversationsadded
-//==== LABEL Check if conversationsadded callback was invoked with proper argument type.
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsadded M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA CBT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), service, i,
-    serviceSuccess, serviceError, messageService, addDraftError, message, conversationChangeCB, watchId;
-
-t.step(function () {
-    add_result_callback(function () {
-        try {
-            service.messageStorage.removeChangeListener(watchId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    conversationChangeCB = {
-        conversationsadded: t.step_func(function (conversations) {
-            assert_type(conversations, "array", "type check");
-            assert_greater_than(conversations.length, 0, "Received empty conversations array");
-
-            for (i = 0; i < conversations.length; i++) {
-                assert_own_property(conversations[i], "id", "id not present.");
-                assert_own_property(conversations[i], "type", "type not present.");
-                assert_own_property(conversations[i], "timestamp", "timestamp not present.");
-                assert_own_property(conversations[i], "messageCount", "messageCount not present.");
-                assert_own_property(conversations[i], "unreadMessages", "unreadMessages not present.");
-                assert_own_property(conversations[i], "preview", "preview not present.");
-                assert_own_property(conversations[i], "subject", "subject not present.");
-                assert_own_property(conversations[i], "isRead", "isRead not present.");
-                assert_own_property(conversations[i], "from", "from not present.");
-                assert_own_property(conversations[i], "to", "to not present.");
-                assert_own_property(conversations[i], "cc", "cc not present.");
-                assert_own_property(conversations[i], "bcc", "bcc not present.");
-                assert_own_property(conversations[i], "lastMessageId", "lastMessageId not present.");
-
-                if (conversations[i].id === message.conversationId) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        messageService = service;
-
-        watchId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        messageService.messageStorage.addDraftMessage(message, null, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsremoved.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsremoved.html
deleted file mode 100755 (executable)
index a51ad6c..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversationsChangeCallback_email_conversationsremoved</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageConversationsChangeCallback_email_conversationsremoved
-//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, email
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsremoved M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA CBT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,
-    conversationFilter, findConversationSuccess, findConversationError, foundConversation, removeConversationError,
-    changeCallback, listenerId;
-
-t.step(function () {
-    //cleanup after TC
-    add_result_callback(function () {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    changeCallback = {
-        conversationsremoved: t.step_func(function (removedConversations) {
-            assert_type(removedConversations, "array", "Not an array.");
-            assert_equals(removedConversations.length, 1, "Incorrect length of conversations.");
-            assert_equals(removedConversations[0].id, foundConversation.id, "Incorrect id of removed conversation.");
-
-            assert_own_property(removedConversations[0], "id", "id not present.");
-            assert_own_property(removedConversations[0], "type", "type not present.");
-            assert_own_property(removedConversations[0], "timestamp", "timestamp not present.");
-            assert_own_property(removedConversations[0], "messageCount", "messageCount not present.");
-            assert_own_property(removedConversations[0], "unreadMessages", "unreadMessages not present.");
-            assert_own_property(removedConversations[0], "preview", "preview not present.");
-            assert_own_property(removedConversations[0], "subject", "subject not present.");
-            assert_own_property(removedConversations[0], "isRead", "isRead not present.");
-            assert_own_property(removedConversations[0], "from", "from not present.");
-            assert_own_property(removedConversations[0], "to", "to not present.");
-            assert_own_property(removedConversations[0], "cc", "cc not present.");
-            assert_own_property(removedConversations[0], "bcc", "bcc not present.");
-            assert_own_property(removedConversations[0], "lastMessageId", "lastMessageId not present.");
-
-            t.done();
-        })
-    };
-
-    removeConversationError = t.step_func(function (error) {
-        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findConversationSuccess = t.step_func(function (conversations) {
-        assert_equals(conversations.length, 1, "Incorrect number of found conversations");
-        foundConversation = conversations[0];
-
-        listenerId = service.messageStorage.addConversationsChangeListener(changeCallback);
-        service.messageStorage.removeConversations([foundConversation], null, removeConversationError);
-    });
-
-    findConversationError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        conversationFilter = new tizen.AttributeFilter("id", "EXACTLY", message.conversationId);
-        service.messageStorage.findConversations(conversationFilter, findConversationSuccess, findConversationError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsupdated.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsupdated.html
deleted file mode 100755 (executable)
index 0e27fc2..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversationsChangeCallback_email_conversationsupdated</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageConversationsChangeCallback_email_conversationsupdated
-//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, email
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsupdated M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, messageService, messageStorage, message, i,
-    addDraftSuccess, addDraftError, updateError, oldTimestamp, changeCallback, listenerId;
-
-t.step(function () {
-
-    //cleanup after TC
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    changeCallback = {
-        conversationsupdated: t.step_func(function (updatedConversations) {
-            assert_type(updatedConversations, "array", "Not an array");
-            assert_greater_than(updatedConversations.length, 0, "Received empty conversations array");
-
-            for (i = 0; i < updatedConversations.length; i++) {
-                if (updatedConversations[i].id === message.conversationId) {
-                    check_readonly(updatedConversations[i], "id", updatedConversations[i].id, "string", "dummyValue");
-                    check_readonly(updatedConversations[i], "type", "messaging.email", "string", "dummyValue");
-                    assert_true(updatedConversations[i].timestamp instanceof Date, "Not a date");
-                    oldTimestamp = updatedConversations[i].timestamp;
-                    updatedConversations[i].timestamp = new Date();
-                    assert_equals(updatedConversations[i].timestamp.getTime(), oldTimestamp.getTime(), "timestamp modified");
-                    check_readonly(updatedConversations[i], "messageCount", updatedConversations[i].messageCount, "number", 123);
-                    check_readonly(updatedConversations[i], "unreadMessages", updatedConversations[i].unreadMessages, "number", 123);
-                    check_readonly(updatedConversations[i], "preview", updatedConversations[i].preview, "string", "dummyValue");
-                    check_readonly(updatedConversations[i], "subject", message.subject, "string", "dummyValue");
-                    check_readonly(updatedConversations[i], "isRead", updatedConversations[i].isRead, "boolean", "dummyValue");
-                    check_readonly(updatedConversations[i], "from", TEST_EMAIL_RECIPIENT_1, "string", "dummyValue");
-                    assert_array_equals(updatedConversations[i].to, message.to, "to incorrect");
-                    assert_array_equals(updatedConversations[i].cc, message.cc, "cc incorrect");
-                    assert_array_equals(updatedConversations[i].bcc, message.bcc, "bcc incorrect");
-                    check_readonly(updatedConversations[i], "lastMessageId", message.id, "string", "dummyValue");
-
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        listenerId = messageStorage.addConversationsChangeListener(changeCallback);
-
-        message.subject = generateSubject();
-        messageStorage.updateMessages([message], null, updateError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        messageService = service;
-        messageStorage = messageService.messageStorage;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_notexist.html
deleted file mode 100755 (executable)
index efb20d9..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversationsChangeCallback_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageConversationsChangeCallback_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageConversationsChangeCallback exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:MessageConversationsChangeCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBNIO
-
-test(function () {
-    check_no_interface_object("MessageConversationsChangeCallback");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_email_onsuccess.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_email_onsuccess.html
deleted file mode 100755 (executable)
index 845246f..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFolderArraySuccessCallback_email_onsuccess</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFolderArraySuccessCallback_email_onsuccess
-//==== LABEL Check if callback is called and if its arguments have proper type - MessageFolderArraySuccessCallback, email
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolderArraySuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA CBT
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), messageService,
-    messageStorage, filter, messageFolder, serviceSuccess, serviceError, folderSuccess, folderError, i;
-t.step(function () {
-
-    folderSuccess = t.step_func(function (folders) {
-        assert_greater_than(folders.length, 0, "Received empty folders array");
-        assert_type(folders, "array", "Not an array.");
-
-        for (i = 0; i < folders.length; i++) {
-            messageFolder = folders[i];
-            assert_own_property(messageFolder, "id", "MessageFolder does not own parentId property for index=" + i);
-            assert_own_property(messageFolder, "parentId", "MessageFolder does not own parentId property for index=" + i);
-            assert_own_property(messageFolder, "serviceId", "MessageFolder does not own serviceId property for index=" + i);
-            assert_own_property(messageFolder, "contentType", "MessageFolder does not own contentType property for index=" + i);
-            assert_own_property(messageFolder, "name", "MessageFolder does not own name property for index=" + i);
-            assert_own_property(messageFolder, "path", "MessageFolder does not own path property for index=" + i);
-            assert_own_property(messageFolder, "type", "MessageFolder does not own type property for index=" + i);
-            assert_own_property(messageFolder, "synchronizable", "MessageFolder does not own synchronizable property for index=" + i);
-        }
-        t.done();
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() 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;
-
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);
-        messageStorage.findFolders(filter, folderSuccess, folderError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_notexist.html
deleted file mode 100755 (executable)
index f4608f9..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFolderArraySuccessCallback_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFolderArraySuccessCallback_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageFolderArraySuccessCallback exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolderArraySuccessCallback:MessageFolderArraySuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBNIO
-
-test(function () {
-    check_no_interface_object("MessageFolderArraySuccessCallback");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_contentType_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_contentType_exist.html
deleted file mode 100755 (executable)
index f8cbb36..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Krzysztof Lachacz <k.lachacz@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageFolder_contentType_exist</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageFolder_contentType_exist
-//==== LABEL Check if the attribute contentType in MessageFolder
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:contentType A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    getMessageServicesSuccess, getMessageServicesError,
-    findFoldersSuccess, findFoldersError, filter;
-
-t.step(function () {
-    findFoldersSuccess = t.step_func(function (folders) {
-        assert_true(folders.length > 0, "there should be folders");
-        assert_true("contentType" in folders[0], "contentType is not exist");
-        t.done();
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    getMessageServicesSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "There shout be available a message service");
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services[0].id);
-        services[0].messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);
-    });
-
-    getMessageServicesError = t.step_func(function (error) {
-        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_contentType_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_contentType_attribute.html
deleted file mode 100755 (executable)
index a1af916..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFolder_email_contentType_attribute</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFolder_email_contentType_attribute
-//==== LABEL Check if attribute contentType of MessageFolder (email) exists, has type MessageServiceTag and is readonly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:contentType A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,
-    serviceSuccess, serviceError, folderSuccess, folderError;
-t.step(function () {
-
-    folderSuccess = t.step_func(function (folders) {
-        assert_true(folders.length > 0, "Received empty folders array");
-        messageFolder = folders[0];
-
-        assert_own_property(messageFolder, "contentType", "MessageFolder does not own contentType property.");
-        check_readonly(messageFolder, "contentType", "messaging.email", "string", messageFolder.contentType + "sampleValue");
-
-        t.done();
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);
-        messageStorage.findFolders(filter, folderSuccess, folderError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_extend.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_extend.html
deleted file mode 100755 (executable)
index 4722c2d..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFolder_email_extend</title>
-<script src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFolder_email_extend
-//==== PRIORITY P3
-//==== LABEL Check if instance of interface MessageFolder (email) can be extended with new property
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:MessageFolder U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA OBX
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, serviceSuccess,
-    serviceError, folderSuccess, folderError, messageFolder;
-t.step(function () {
-
-    folderSuccess = t.step_func(function (folders) {
-        assert_true(folders.length > 0, "Received empty folders array");
-        messageFolder = folders[0];
-
-        check_extensibility(messageFolder);
-        t.done();
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);
-        messageStorage.findFolders(filter, folderSuccess, folderError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_id_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_id_attribute.html
deleted file mode 100755 (executable)
index 320d4bb..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFolder_email_id_attribute</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFolder_email_id_attribute
-//==== LABEL Check if attribute id of MessageFolder (email) exists, has type MessageFolderId and is readonly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:id A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,
-    serviceSuccess, serviceError, folderSuccess, folderError;
-t.step(function () {
-
-    folderSuccess = t.step_func(function (folders) {
-        assert_true(folders.length > 0, "Received empty folders array");
-        messageFolder = folders[0];
-
-        assert_own_property(messageFolder, "id", "MessageFolder does not own id property.");
-        check_readonly(messageFolder, "id", messageFolder.id, "string", messageFolder.id + "_value");
-        assert_not_equals(messageFolder.id, "", "MessageFolder id contains an empty string");
-
-        t.done();
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);
-        messageStorage.findFolders(filter, folderSuccess, folderError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_name_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_name_attribute.html
deleted file mode 100755 (executable)
index f0b1296..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFolder_email_name_attribute</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFolder_email_name_attribute
-//==== LABEL Check if attribute name of MessageFolder (email) exists, has type DOMString
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:name A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE ASG AT AN
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,
-    serviceSuccess, serviceError, folderSuccess, folderError;
-t.step(function () {
-
-    folderSuccess = t.step_func(function (folders) {
-        assert_greater_than(folders.length, 0, "Received empty folders array");
-        messageFolder = folders[0];
-
-        assert_own_property(messageFolder, "name", "MessageFolder does not own name property.");
-
-        check_attribute(messageFolder, "name", messageFolder.name, "string", "newName");
-
-        check_not_nullable(messageFolder, "name");
-
-        t.done();
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() 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;
-
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);
-        messageStorage.findFolders(filter, folderSuccess, folderError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_parentId_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_parentId_attribute.html
deleted file mode 100755 (executable)
index ecf3d96..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFolder_email_parentId_attribute</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFolder_email_parentId_attribute
-//==== LABEL Check if attribute parentId of MessageFolder (email) exists, has type MessageFolderId and is readonly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:parentId A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE ARO AT ADV
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, i,
-    filter, messageFolder, serviceSuccess, serviceError, folderSuccess, folderError, rootFound = false;
-t.step(function () {
-    folderSuccess = t.step_func(function (folders) {
-        assert_greater_than(folders.length, 0, "Received empty folders array");
-        messageFolder = folders[0];
-
-        assert_own_property(messageFolder, "parentId", "MessageFolder does not own parentId property.");
-        check_readonly(messageFolder, "parentId", messageFolder.parentId, "string", messageFolder.parentId + "sampleValue");
-
-        for(i = 0; i < folders.length; i++) {
-            if (folders[i].parentId === null) {
-                rootFound = true;
-                break;
-            }
-        }
-        assert_true(rootFound, "Root folder not found.");
-
-        t.done();
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() 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;
-
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);
-        messageStorage.findFolders(filter, folderSuccess, folderError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_path_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_path_attribute.html
deleted file mode 100755 (executable)
index 4c228b7..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFolder_email_path_attribute</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFolder_email_path_attribute
-//==== LABEL Check if attribute path of MessageFolder (email) exists, has type DOMString and is readonly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:path A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,
-    serviceSuccess, serviceError, folderSuccess, folderError;
-t.step(function () {
-
-    folderSuccess = t.step_func(function (folders) {
-        assert_true(folders.length > 0, "Received empty folders array");
-        messageFolder = folders[0];
-
-        assert_own_property(messageFolder, "path", "MessageFolder does not own path property.");
-        check_readonly(messageFolder, "path", messageFolder.path, "string", messageFolder.path + "_value");
-
-        t.done();
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);
-        messageStorage.findFolders(filter, folderSuccess, folderError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_serviceId_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_serviceId_attribute.html
deleted file mode 100755 (executable)
index 081f20c..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFolder_email_serviceId_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFolder_email_serviceId_attribute
-//==== LABEL Check if attribute serviceId of MessageFolder (email) exists, has appropriate type and is readonly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:serviceId A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE AT ARO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesSuccess, getMessageServicesError,
-    findFoldersSuccess, findFoldersError, filter, folder, service;
-
-t.step(function () {
-    findFoldersSuccess = t.step_func(function (folders) {
-        assert_greater_than(folders.length, 0, "Received empty folders array");
-        folder = folders[0];
-
-        assert_own_property(folder, "serviceId", "serviceId not found.");
-
-        assert_type(folder.serviceId, "string", "serviceId is not a string");
-        assert_not_equals(folder.serviceId, "", "serviceId is empty");
-
-        check_readonly(folder, "serviceId", folder.serviceId, "string", folder.serviceId + "123");
-
-        t.done();
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    getMessageServicesSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-        service.messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);
-    });
-
-    getMessageServicesError = t.step_func(function (error) {
-        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_synchronizable_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_synchronizable_attribute.html
deleted file mode 100755 (executable)
index 5f17803..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFolder_email_synchronizable_attribute</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFolder_email_synchronizable_attribute
-//==== LABEL Check if attribute synchronizable of MessageFolder (email) exists, has type Boolean
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:synchronizable 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,
-    serviceSuccess, serviceError, folderSuccess, folderError;
-t.step(function () {
-
-    folderSuccess = t.step_func(function (folders) {
-        assert_true(folders.length > 0, "Received empty folders array");
-        messageFolder = folders[0];
-
-        assert_own_property(messageFolder, "synchronizable", "MessageFolder does not own synchronizable property.");
-        check_attribute(messageFolder, "synchronizable", messageFolder.synchronizable, "boolean", !messageFolder.synchronizable);
-
-        check_not_nullable(messageFolder, "synchronizable");
-
-        t.done();
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);
-        messageStorage.findFolders(filter, folderSuccess, folderError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_type_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_type_attribute.html
deleted file mode 100755 (executable)
index 72b4361..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFolder_email_type_attribute</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFolder_email_type_attribute
-//==== LABEL Check if attribute type of MessageFolder (email) exists, has type DOMString and is readonly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder: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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,
-    serviceSuccess, serviceError, folderSuccess, folderError;
-t.step(function () {
-
-    folderSuccess = t.step_func(function (folders) {
-        assert_true(folders.length > 0, "Received empty folders array");
-        messageFolder = folders[0];
-
-        assert_own_property(messageFolder, "type", "MessageFolder does not own type property.");
-        check_readonly(messageFolder, "type", messageFolder.type, "string", messageFolder.type + "_value");
-
-        t.done();
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);
-        messageStorage.findFolders(filter, folderSuccess, folderError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_id_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_id_exist.html
deleted file mode 100755 (executable)
index f47efe8..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Krzysztof Lachacz <k.lachacz@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageFolder_id_exist</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageFolder_id_exist
-//==== LABEL Check if the attribute id in MessageFolder
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:id A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    getMessageServicesSuccess, getMessageServicesError,
-    findFoldersSuccess, findFoldersError, filter;
-
-t.step(function () {
-    findFoldersSuccess = t.step_func(function (folders) {
-        assert_true(folders.length > 0, "there should be folders");
-        assert_true("id" in folders[0], "id is not exist");
-        t.done();
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    getMessageServicesSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "There shout be available a message service");
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services[0].id);
-        services[0].messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);
-    });
-
-    getMessageServicesError = t.step_func(function (error) {
-        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_notexist.html
deleted file mode 100755 (executable)
index 5e3cf11..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFolder_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFolder_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageFolder exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:MessageFolder U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA NIO
-
-test(function () {
-    check_no_interface_object("MessageFolder");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_path_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_path_exist.html
deleted file mode 100755 (executable)
index 7425420..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Krzysztof Lachacz <k.lachacz@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageFolder_path_exist</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageFolder_path_exist
-//==== LABEL Check if the attribute path in MessageFolder
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:path A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    getMessageServicesSuccess, getMessageServicesError,
-    findFoldersSuccess, findFoldersError, filter;
-
-t.step(function () {
-    findFoldersSuccess = t.step_func(function (folders) {
-        assert_true(folders.length > 0, "there should be folders");
-        assert_true("path" in folders[0], "path is not exist");
-        t.done();
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    getMessageServicesSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "There shout be available a message service");
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services[0].id);
-        services[0].messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);
-    });
-
-    getMessageServicesError = t.step_func(function (error) {
-        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_type_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFolder_type_exist.html
deleted file mode 100755 (executable)
index 0038187..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Krzysztof Lachacz <k.lachacz@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageFolder_type_exist</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageFolder_type_exist
-//==== LABEL Check if the attribute type in MessageFolder
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:type A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    getMessageServicesSuccess, getMessageServicesError,
-    findFoldersSuccess, findFoldersError, filter;
-
-t.step(function () {
-    findFoldersSuccess = t.step_func(function (folders) {
-        assert_true(folders.length > 0, "there should be folders");
-        assert_true("type" in folders[0], "type is not exist");
-        t.done();
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    getMessageServicesSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "There shout be available a message service");
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services[0].id);
-        services[0].messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);
-    });
-
-    getMessageServicesError = t.step_func(function (error) {
-        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersadded.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersadded.html
deleted file mode 100755 (executable)
index 8eb0dab..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Le Qi <le82.qi@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFoldersChangeCallback_foldersadded</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFoldersChangeCallback_foldersadded
-//==== LABEL Check if foldersadded callback was invoked with proper argument type.
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageFoldersChangeCallback:foldersadded M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA CBT
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter, addDraftError, i, message;
-t.step(function () {
-
-    foldersChangeCallback = {
-        foldersupdated: t.step_func(function (updatedFolders) {
-        }),
-        foldersadded: t.step_func(function (addedFolders) {
-            assert_type(addedFolders, "array", "type check");
-            assert_greater_than(addedFolders.length, 0, "Received empty folders array");
-            for (i = 0; i < addedFolders.length; i++) {
-                assert_own_property(addedFolders[i], "id", "id not present.");
-                assert_own_property(addedFolders[i], "parentId", "parentId not present.");
-                assert_own_property(addedFolders[i], "serviceId", "serviceId not present.");
-                assert_own_property(addedFolders[i], "contentType", "contentType not present.");
-                assert_own_property(addedFolders[i], "name", "name not present.");
-                assert_own_property(addedFolders[i], "path", "path not present.");
-                assert_own_property(addedFolders[i], "type", "type not present.");
-                assert_own_property(addedFolders[i], "synchronizable", "synchronizable not present.");
-            }
-        }),
-        foldersremoved: t.step_func(function (removedFolders) {
-        })
-    };
-
-    serviceSuccess = t.step_func(function (service) {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);
-        assert_type(watchId, "long", "Incorrect returned type");
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        service.messageStorage.addDraftMessage(message, null, addDraftError);
-        service.messageStorage.removeChangeListener(watchId);
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersremoved.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersremoved.html
deleted file mode 100755 (executable)
index 1de76c5..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Le Qi <le82.qi@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFoldersChangeCallback_foldersremoved</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFoldersChangeCallback_foldersremoved
-//==== LABEL Check if foldersremoved callback was invoked with proper argument type.
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageFoldersChangeCallback:foldersremoved M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA CBT
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter, addDraftError, i, message;
-t.step(function () {
-
-    foldersChangeCallback = {
-        foldersupdated: t.step_func(function (updatedFolders) {
-        }),
-        foldersadded: t.step_func(function (addedFolders) {
-        }),
-        foldersremoved: t.step_func(function (removedFolders) {
-            assert_type(removedFolders, "array", "type check");
-            assert_greater_than(removedFolders.length, 0, "Received empty folders array");
-            for (i = 0; i < removedFolders.length; i++) {
-                assert_own_property(removedFolders[i], "id", "id not present.");
-                assert_own_property(removedFolders[i], "parentId", "parentId not present.");
-                assert_own_property(removedFolders[i], "serviceId", "serviceId not present.");
-                assert_own_property(removedFolders[i], "contentType", "contentType not present.");
-                assert_own_property(removedFolders[i], "name", "name not present.");
-                assert_own_property(removedFolders[i], "path", "path not present.");
-                assert_own_property(removedFolders[i], "type", "type not present.");
-                assert_own_property(removedFolders[i], "synchronizable", "synchronizable not present.");
-            }
-        })
-    };
-
-    serviceSuccess = t.step_func(function (service) {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);
-        assert_type(watchId, "long", "Incorrect returned type");
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        service.messageStorage.addDraftMessage(message, null, addDraftError);
-        service.messageStorage.removeChangeListener(watchId);
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersupdated.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersupdated.html
deleted file mode 100755 (executable)
index 0137199..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Le Qi <le82.qi@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFoldersChangeCallback_foldersupdated</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFoldersChangeCallback_foldersupdated
-//==== LABEL Check if foldersupdated callback was invoked with proper argument type.
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageFoldersChangeCallback:foldersupdated M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA CBT
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter, addDraftError, i, message;
-t.step(function () {
-
-    foldersChangeCallback = {
-        foldersupdated: t.step_func(function (updatedFolders) {
-            assert_type(updatedFolders, "array", "type check");
-            assert_greater_than(updatedFolders.length, 0, "Received empty folders array");
-            for (i = 0; i < updatedFolders.length; i++) {
-                assert_own_property(updatedFolders[i], "id", "id not present.");
-                assert_own_property(updatedFolders[i], "parentId", "parentId not present.");
-                assert_own_property(updatedFolders[i], "serviceId", "serviceId not present.");
-                assert_own_property(updatedFolders[i], "contentType", "contentType not present.");
-                assert_own_property(updatedFolders[i], "name", "name not present.");
-                assert_own_property(updatedFolders[i], "path", "path not present.");
-                assert_own_property(updatedFolders[i], "type", "type not present.");
-                assert_own_property(updatedFolders[i], "synchronizable", "synchronizable not present.");
-            }
-        }),
-        foldersadded: t.step_func(function (addedFolders) {
-        }),
-        foldersremoved: t.step_func(function (removedFolders) {
-        })
-    };
-
-    serviceSuccess = t.step_func(function (service) {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);
-        assert_type(watchId, "long", "Incorrect returned type");
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        service.messageStorage.addDraftMessage(message, null, addDraftError);
-        service.messageStorage.removeChangeListener(watchId);
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_notexist.html
deleted file mode 100755 (executable)
index b95e8ab..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageFoldersChangeCallback_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageFoldersChangeCallback_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageFoldersChangeCallback exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFoldersChangeCallback:MessageFoldersChangeCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBNIO
-
-test(function () {
-    check_no_interface_object("MessageFoldersChangeCallback");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_email.html b/common/tct-messaging-email-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_email.html
deleted file mode 100755 (executable)
index a1044df..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageInit_MessageInit_valid_argument_email</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageInit_MessageInit_valid_argument_email
-//==== LABEL Checks various message attributes upon message (email) creation
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-
-    var emailMsg;
-
-   emailMsg = new tizen.Message("messaging.email", {
-            subject: generateSubject(),
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: "abd",
-            htmlBody: MESSAGE_BODY_HTML,
-            isHighPriority: false
-        });
-
-    assert_equals(emailMsg.body.plainBody, "abd", "email message creation failed.");
-}, document.title);
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_messaging.html b/common/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_messaging.html
deleted file mode 100755 (executable)
index c6e12d9..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageManagerObject_messaging</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageManagerObject_messaging
-//==== LABEL Check the attribute messaging in MessageManagerObject
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:Messaging U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA OBME
-
-test(function () {
-    assert_true("messaging" in tizen, "tizen.messaging exists");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_notexist.html
deleted file mode 100755 (executable)
index f55be45..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageManagerObject_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageManagerObject_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageManagerObject exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessageManagerObject:MessageManagerObject U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA NIO
-
-test(function () {
-    check_no_interface_object("MessageManagerObject");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_email_onsuccess.html b/common/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_email_onsuccess.html
deleted file mode 100755 (executable)
index 7c8ccd8..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageRecipientsCallback_email_onsuccess</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageRecipientsCallback_email_onsuccess
-//==== LABEL Check if callback is called and if its arguments have proper type, check argument recipients type - DOMString[]
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageRecipientsCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA CBT
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    message, sendSuccess, sendError, serviceSuccess, serviceError;
-
-t.step(function () {
-
-    sendSuccess = t.step_func(function (recipients) {
-        assert_type(recipients, "array", "recipients type is not array");
-        assert_equals(recipients.length, 1, "recipients.length should be 1");
-        assert_type(recipients[0], "string", "recipients[0] type is not string");
-        assert_equals(recipients[0], TEST_EMAIL_RECIPIENT_2, "recipient in sent message is not the same as recipient set during message creation");
-        t.done();
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("failed to receive services: name:" + error.name + " message: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("failed to receive services: " + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_notexist.html
deleted file mode 100755 (executable)
index 6844f58..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageRecipientsCallback_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageRecipientsCallback_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageRecipientsCallback exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessageRecipientsCallback:MessageRecipientsCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBNIO
-
-test(function () {
-    check_no_interface_object("MessageRecipientsCallback");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_email_onsuccess.html b/common/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_email_onsuccess.html
deleted file mode 100755 (executable)
index 7438ed0..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageServiceArraySuccessCallback_email_onsuccess</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageServiceArraySuccessCallback_email_onsuccess
-//==== LABEL Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for email
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBOA CBT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, i;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (services) {
-        assert_type(services, "array", "Not an array");
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        for(i = 0; i< services.length; i++){
-            assert_true("type" in services[i], "Name type doesn't exist in provided object.");
-            assert_equals(services[i].type, "messaging.email", "Type is not equal email");
-
-            assert_true("id" in services[i], "Name id doesn't exist in provided object.");
-            assert_true("name" in services[i], "Name name doesn't exist in provided object.");
-            assert_true("messageStorage" in services[i], "Name messageStorage doesn't exist in provided object.");
-            assert_type(services[i].sendMessage, "function", "Checking sendMessage of find");
-            assert_type(services[i].loadMessageBody, "function", "Checking loadMessageBody of find");
-            assert_type(services[i].loadMessageAttachment, "function", "Checking loadMessageAttachment of find");
-            assert_type(services[i].sync, "function", "Checking sync of find");
-            assert_type(services[i].syncFolder, "function", "Checking syncFolder of find");
-            assert_type(services[i].stopSync, "function", "Checking stopSync of find");
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_notexist.html
deleted file mode 100755 (executable)
index 855fd43..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageServiceArraySuccessCallback_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageServiceArraySuccessCallback_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageServiceArraySuccessCallback exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:MessageServiceArraySuccessCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBNIO
-
-test(function () {
-    check_no_interface_object("MessageServiceArraySuccessCallback");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_onsuccess.html b/common/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_onsuccess.html
deleted file mode 100755 (executable)
index 123282c..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageServiceArraySuccessCallback_onsuccess</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageServiceArraySuccessCallback_onsuccess
-//==== LABEL Check the function onsuccess in MessageServiceArraySuccessCallback
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBOA
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (services) {
-        assert_type(services, "array", "Not an array");
-        assert_greater_than(services.length, 0, "Received empty services array");
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_extend.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_extend.html
deleted file mode 100755 (executable)
index 79d4e4d..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_email_extend</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_extend
-//==== PRIORITY P3
-//==== LABEL Check if instance of interface MessageService (email) can be extended with new property
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:MessageService U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA OBX
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-
-        check_extensibility(messageService);
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_id_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_id_attribute.html
deleted file mode 100755 (executable)
index ff3a345..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_id_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_id_attribute
-//==== LABEL Check if attribute id of MessageService (email) exists, has appropriate type and is readonly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:id A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE AT ARO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        assert_own_property(service, "id", "No 'id' attribute in service");
-
-        assert_type(service.id, "string", "Incorrect type");
-        assert_not_equals(service.id, "", "Id is empty");
-
-        check_readonly(service, "id", service.id, "string", "123456");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html
deleted file mode 100755 (executable)
index 368b8fe..0000000
+++ /dev/null
@@ -1,144 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageAttachment</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_loadMessageAttachment
-//==== LABEL Check if MessageService.loadMessageAttachment method works properly (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MOA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    service, inboxFolder, message, attachment, returnedValue = null,
-    serviceSuccess, serviceError, sendSuccess, sendError, syncSuccess, syncError,
-    findSuccess, findError, foundMessage, loadAttachmentSuccess, loadAttachmentError,
-    loadBodySuccess, loadBodyError, loadMessage, folderSuccess, folderError;
-
-t.step(function () {
-
-    loadAttachmentSuccess = t.step_func(function (f_attachment) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value from loadMessageAttachment");
-        assert_true(f_attachment instanceof tizen.MessageAttachment, "Not a tizen.MessageAttachment.");
-
-        assert_type(f_attachment.id, "string", "attachment.id incorrect type.");
-        assert_not_equals(f_attachment.id, "", "attachment.id is empty.");
-
-        assert_type(f_attachment.messageId, "string", "attachment.messageId incorrect type.");
-        assert_equals(f_attachment.messageId, foundMessage.attachments[0].messageId, "attachment.messageId");
-
-        assert_equals(f_attachment.mimeType, attachment.mimeType, "attachment.mimeType");
-
-        assert_type(f_attachment.filePath, "string", "attachment.filePath incorrect type.");
-        assert_not_equals(f_attachment.filePath, "", "attachment.filePath is empty.");
-        t.done();
-    });
-
-    loadAttachmentError = t.step_func(function (error) {
-        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    loadBodySuccess = t.step_func(function (message) {
-        loadMessage = message;
-        assert_equals(loadMessage.attachments.length, 1, "Incorrect number of found attachments");
-        returnedValue = service.loadMessageAttachment(loadMessage.attachments[0], loadAttachmentSuccess, loadAttachmentError);
-    });
-
-    loadBodyError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccess = t.step_func(function (messages) {
-        if (messages.length > 0) {
-            assert_inbox_message_equals(t, messages, message, inboxFolder);
-
-            foundMessage = messages[0];
-            if (foundMessage.attachments.length === 0) {
-                service.loadMessageBody(foundMessage, loadBodySuccess, loadBodyError);
-            } else {
-                returnedValue = service.loadMessageAttachment(foundMessage.attachments[0], loadAttachmentSuccess, loadAttachmentError);
-            }
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    folderSuccess = t.step_func(function (folders) {
-        inboxFolder = getInboxFolder(t, folders);
-        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncSuccess = t.step_func(function () {
-        findFolders(t, service, folderSuccess, folderError);
-    });
-
-    syncError = t.step_func(function (error) {
-        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        sync(t, service, syncSuccess, syncError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");
-        message.attachments = [attachment];
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html
deleted file mode 100755 (executable)
index f64830e..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageAttachment_attachment_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_loadMessageAttachment_attachment_TypeMismatch
-//==== LABEL Check type conversions for attachment argument of MessageService.loadMessageAttachment method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,
-    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName, incorrectAttachment, loadAttachmentSuccess,
-    loadAttachmentError, conversionTable, i;
-t.step(function () {
-
-    loadAttachmentSuccess = t.step_func(function (attachment) {
-        assert_unreached("loadMessageAttachment() success callback invoked");
-    });
-
-    loadAttachmentError = t.step_func(function (error) {
-        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        conversionTable = getTypeConversionExceptions("object", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectAttachment = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    messageService.loadMessageAttachment(incorrectAttachment, loadAttachmentSuccess, loadAttachmentError);
-                }, exceptionName + " should be thrown - given incorrect Attachment: " + incorrectAttachment);
-        }
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");
-        message.attachments = [attachment];
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html
deleted file mode 100755 (executable)
index 69509e1..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageAttachment_attachment_invalid_cb</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_loadMessageAttachment_attachment_invalid_cb
-//==== LABEL Check if MessageService.loadMessageAttachment method throws exception when attachment is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,
-    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", loadAttachmentSuccess,
-    loadAttachmentError, fakeAttachment;
-
-t.step(function () {
-
-    loadAttachmentSuccess = t.step_func(function (attachment) {
-        assert_unreached("loadMessageAttachment() success callback invoked");
-    });
-
-    loadAttachmentError = t.step_func(function (error) {
-        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-
-        fakeAttachment = {
-            id: message.attachments[0].id,
-            messageId: message.attachments[0].messageId,
-            mimeType: message.attachments[0].mimeType,
-            filePath: message.attachments[0].filePath
-        };
-        assert_throws({ name: exceptionName },
-            function () {
-                messageService.loadMessageAttachment(fakeAttachment, loadAttachmentSuccess, loadAttachmentError);
-            }, exceptionName + " should be thrown - incorrect success object.");
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");
-        message.attachments = [attachment];
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index c0e5af0..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageService.loadMessageAttachment method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,
-    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName, incorrectCallback, loadAttachmentSuccess,
-    conversionTable, i;
-t.step(function () {
-
-    loadAttachmentSuccess = t.step_func(function (attachment) {
-        assert_unreached("loadMessageAttachment() success callback invoked");
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-                function () {
-                    messageService.loadMessageAttachment(message.attachments[0], loadAttachmentSuccess, incorrectCallback);
-                }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-        }
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");
-        message.attachments = [attachment];
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index ece0f84..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageAttachment_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_loadMessageAttachment_errorCallback_invalid_cb
-//==== LABEL Check if MessageService.loadMessageAttachment method throws exception when errorCallback is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,
-    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", incorrectCallback,
-    loadAttachmentSuccess;
-t.step(function () {
-
-    incorrectCallback = {
-        onerror: t.step_func(function (error) {
-            assert_unreached("Incorrect errorCallback invoked: " + error.name + ": " + error.message);
-        })
-    };
-
-    loadAttachmentSuccess = t.step_func(function (attachment) {
-        assert_unreached("loadMessageAttachment() success callback invoked");
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        assert_throws({ name: exceptionName },
-            function () {
-                messageService.loadMessageAttachment(message.attachments[0], loadAttachmentSuccess, incorrectCallback);
-            }, exceptionName + " should be thrown - incorrect success object.");
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");
-        message.attachments = [attachment];
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_exist.html
deleted file mode 100755 (executable)
index 2fb893a..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageAttachment_exist</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_loadMessageAttachment_exist
-//==== LABEL Check if method loadMessageAttachment of MessageService (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        assert_true("loadMessageAttachment" in service, "No loadMessageAttachment method in service");
-        check_method_exists(service, "loadMessageAttachment");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_missarg.html
deleted file mode 100755 (executable)
index 0ff0f30..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageAttachment_missarg</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_loadMessageAttachment_missarg
-//==== LABEL Check with missing non-optional argument - MessageService.loadMessageAttachment (email)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, messageService, messageStorage, message, attachment,
-    addDraftError, addDraftSuccess, exceptionName = "TypeMismatchError";
-t.step(function () {
-    addDraftSuccess = t.step_func(function () {
-        assert_throws({name: exceptionName},
-            function () {
-                messageService.loadMessageAttachment(message.attachments[0]);
-            }, exceptionName + " should be thrown - missing mandatory argument.");
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        message.attachments = [attachment];
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 6017325..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageAttachment_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_loadMessageAttachment_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageService.loadMessageAttachment method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,
-    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName, incorrectCallback, loadAttachmentError,
-    conversionTable, i;
-t.step(function () {
-
-    loadAttachmentError = t.step_func(function (error) {
-        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        conversionTable = getTypeConversionExceptions("functionObject", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-                function () {
-                    messageService.loadMessageAttachment(message.attachments[0], incorrectCallback, loadAttachmentError);
-                }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-        }
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");
-        message.attachments = [attachment];
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 308c3b6..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageAttachment_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_loadMessageAttachment_successCallback_invalid_cb
-//==== LABEL Check if MessageService.loadMessageAttachment method throws exception when successCallback is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,
-    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", incorrectCallback,
-    loadAttachmentError;
-t.step(function () {
-
-    incorrectCallback = {
-        onsuccess: t.step_func(function (error) {
-            assert_unreached("Incorrect successCallback invoked: " + error.name + ": " + error.message);
-        })
-    };
-
-    loadAttachmentError = t.step_func(function (error) {
-        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        assert_throws({ name: exceptionName },
-            function () {
-                messageService.loadMessageAttachment(message.attachments[0], incorrectCallback, loadAttachmentError);
-            }, exceptionName + " should be thrown - incorrect success object.");
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");
-        message.attachments = [attachment];
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html
deleted file mode 100755 (executable)
index 740622b..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageAttachment_without_errorCallback</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_loadMessageAttachment_without_errorCallback
-//==== LABEL Check if MessageService.loadMessageAttachment method works properly without errorCallback argument (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MMINA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    service, inboxFolder, serviceSuccess, serviceError, sendSuccess, sendError,
-    message, attachment, syncSuccess, syncError, returnedValue = null, findSuccess, findError, foundMessage,
-    loadAttachmentSuccess, loadBodySuccess, loadBodyError, loadMessage, folderSuccess, folderError;
-
-t.step(function () {
-    loadAttachmentSuccess = t.step_func(function (f_attachment) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value from loadMessageAttachment");
-        assert_true(f_attachment instanceof tizen.MessageAttachment, "Not a tizen.MessageAttachment.");
-
-        assert_type(f_attachment.id, "string", "attachment.id incorrect type.");
-        assert_not_equals(f_attachment.id, "", "attachment.id is empty.");
-
-        assert_type(f_attachment.messageId, "string", "attachment.messageId incorrect type.");
-        assert_equals(f_attachment.messageId, foundMessage.attachments[0].messageId, "attachment.messageId");
-
-        assert_equals(f_attachment.mimeType, attachment.mimeType, "attachment.mimeType");
-
-        assert_type(f_attachment.filePath, "string", "attachment.filePath incorrect type.");
-        assert_not_equals(f_attachment.filePath, "", "attachment.filePath is empty.");
-        t.done();
-    });
-
-    loadBodySuccess = t.step_func(function (message) {
-        loadMessage = message;
-        assert_equals(loadMessage.attachments.length, 1, "Incorrect number of found attachments");
-        returnedValue = service.loadMessageAttachment(loadMessage.attachments[0], loadAttachmentSuccess);
-    });
-
-    loadBodyError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccess = t.step_func(function (messages) {
-        if (messages.length > 0) {
-            assert_inbox_message_equals(t, messages, message, inboxFolder);
-
-            foundMessage = messages[0];
-
-            if (foundMessage.attachments.length === 0) {
-                service.loadMessageBody(foundMessage, loadBodySuccess, loadBodyError);
-            } else {
-                returnedValue = service.loadMessageAttachment(foundMessage.attachments[0], loadAttachmentSuccess);
-            }
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    folderSuccess = t.step_func(function (folders) {
-        inboxFolder = getInboxFolder(t, folders);
-        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncSuccess = t.step_func(function () {
-        findFolders(t, service, folderSuccess, folderError);
-    });
-
-    syncError = t.step_func(function (error) {
-        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        sync(t, service, syncSuccess, syncError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");
-        message.attachments = [attachment];
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html
deleted file mode 100755 (executable)
index fd09103..0000000
+++ /dev/null
@@ -1,151 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Krzysztof Lachacz <k.lachacz@samsung.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_email_loadMessageBody</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: MessageService_email_loadMessageBody
-//==== LABEL Check if MessageService.loadMessageBody method works properly (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMINA MR MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,
-    findMessagesSuccess, findMessagesError,
-    loadMessageBodySuccess, service, filter, myMessage, j, returnedValue = null;
-
-t.step(function () {
-    loadMessageBodySuccess = t.step_func(function (msg) {
-        assert_not_equals(msg, null, "load message successfully");
-        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
-        assert_equals(msg.id, myMessage.id, "Id is not equal");
-        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");
-        assert_equals(msg.conversationId, myMessage.conversationId, "conversationId is not equal");
-        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");
-        assert_equals(msg.folderId, myMessage.folderId, "folderId is not equal");
-        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");
-        assert_equals(msg.type, myMessage.type, "type is not equal");
-        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");
-        assert_equals(msg.timestamp.getTime(), myMessage.timestamp.getTime(), "timestamp is not equal");
-        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");
-        assert_equals(msg.from, myMessage.from, "from is not equal");
-        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");
-        for(j = 0; j < msg.to.length; j++){
-            assert_equals(msg.to[j], myMessage.to[j], "to is not equal");
-        }
-        assert_own_property(msg, "bcc", "Name bcc doesn't exist in provided object.");
-        for(j = 0; j < msg.bcc.length; j++){
-            assert_equals(msg.bcc[j], myMessage.bcc[j], "bcc is not equal");
-        }
-        assert_own_property(msg, "cc", "Name cc doesn't exist in provided object.");
-        for(j = 0; j < msg.cc.length; j++){
-            assert_equals(msg.cc[j], myMessage.cc[j], "cc is not equal");
-        }
-        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");
-        assert_equals(msg.body.messageId, myMessage.body.messageId, "body.messageId is not equal");
-        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");
-        assert_equals(msg.body.loaded, myMessage.body.loaded, "loaded is not equal");
-        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");
-        assert_equals(msg.body.plainBody, myMessage.body.plainBody, "plainBody is not equal");
-        assert_own_property(msg.body, "htmlBody", "Name htmlBody doesn't exist in provided object.");
-        assert_equals(msg.body.htmlBody, myMessage.body.htmlBody, "htmlBody is not equal");
-        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");
-        assert_equals(msg.isRead, myMessage.isRead, "isRead is not equal");
-        assert_own_property(msg, "hasAttachment", "Name hasAttachment doesn't exist in provided object.");
-        assert_equals(msg.hasAttachment, myMessage.hasAttachment, "hasAttachment is not equal");
-        assert_own_property(msg, "isHighPriority", "Name isHighPriority doesn't exist in provided object.");
-        assert_equals(msg.isHighPriority, myMessage.isHighPriority, "isHighPriority is not equal");
-        assert_own_property(msg, "subject", "Name subject doesn't exist in provided object.");
-        assert_equals(msg.subject, myMessage.subject, "subject is not equal");
-        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");
-        assert_equals(msg.inResponseTo, myMessage.inResponseTo, "inResponseTo is not equal");
-        assert_own_property(msg, "messageStatus", "Name messageStatus doesn't exist in provided object.");
-        assert_equals(msg.messageStatus, myMessage.messageStatus, "messageStatus is not equal");
-
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    findMessagesSuccess = t.step_func(function (messages) {
-        assert_draft_message_equals(t, messages, message);
-        myMessage = messages[0];
-        returnedValue = service.loadMessageBody(myMessage, loadMessageBodySuccess);
-    });
-
-    findMessagesError = t.step_func(function (error) {
-        assert_unreached("find error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index fbc2203..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Karol Surma <k.surma@samsung.com>
-        Krzysztof Lachacz <k.lachacz@samsung.com>
--->
-
-<html>
-<head>
-<title>MessageService_email_loadMessageBody_errorCallback_TypeMismatch</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_email_loadMessageBody_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageService.loadMessageBody method (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,
-    loadMessageBodySuccess, service, i, param, conversionTable, exceptionName;
-
-t.step(function () {
-    loadMessageBodySuccess = t.step_func(function (message) {
-        assert_unreached("sould not be called");
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            param = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                service.loadMessageBody(message, loadMessageBodySuccess, param);
-            }, exceptionName + " should be thrown " + param);
-        }
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index f13b077..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Karol Surma <k.surma@samsung.com>
-        Krzysztof Lachacz <k.lachacz@samsung.com>
--->
-
-<html>
-<head>
-<title>MessageService_email_loadMessageBody_errorCallback_invalid_cb</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_email_loadMessageBody_errorCallback_invalid_cb
-//==== LABEL Check if MessageService.loadMessageBody method throws exception when errorCallback is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,
-    loadMessageBodySuccess, incorrectCallback, service;
-
-t.step(function () {
-    loadMessageBodySuccess = t.step_func(function () {
-        assert_unreached("loadMessageBody() success callback invoked");
-    });
-
-    incorrectCallback = {
-        onerror: t.step_func(function (error) {
-            assert_unreached("Incorrect errorCallback invoked: " + error.name + ": " + error.message);
-        })
-    };
-
-    addDraftSuccess = t.step_func(function (){
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.loadMessageBody(message, loadMessageBodySuccess, incorrectCallback);
-        });
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_exist.html
deleted file mode 100755 (executable)
index 1e01e17..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageBody_exist</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_loadMessageBody_exist
-//==== LABEL Check if method loadMessageBody of MessageService (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("loadMessageBody" in service, "No loadMessageBody method in message_service");
-        check_method_exists(service, "loadMessageBody");
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_TypeMismatch.html
deleted file mode 100755 (executable)
index 1ace723..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageBody_message_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_loadMessageBody_message_TypeMismatch
-//==== LABEL Check if message argument of MessageService::loadMessageBody will throw exception when given invalid type argument
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), loadMessageBodySuccess, service, filter, i, incorrectBody, conversionTable,
-    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError, findMessagesSuccess, findMessagesError, exceptionName;
-
-t.step(function () {
-    loadMessageBodySuccess = t.step_func(function (msg) {
-    });
-
-    findMessagesSuccess = t.step_func(function () {
-    conversionTable = getTypeConversionExceptions("object", false);
-        for (i = 0; i < conversionTable.length; i++) {
-            incorrectBody = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    service.loadMessageBody(incorrectBody, loadMessageBodySuccess);
-                }, exceptionName + " should be thrown - given incorrect message: " + incorrectBody);
-        }
-        t.done();
-    });
-
-    findMessagesError = t.step_func(function (error) {
-        assert_unreached("find error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_invalid_obj.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_invalid_obj.html
deleted file mode 100755 (executable)
index 999ef5d..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageBody_message_invalid_obj</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageService_email_loadMessageBody_message_invalid_obj
-//==== LABEL Check invalid object for message argument of MessageService::loadMessageBody method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTO
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError, fakeMessage,
-    findMessagesSuccess, findMessagesError, loadMessageBodySuccess, service, filter;
-
-t.step(function () {
-    loadMessageBodySuccess = t.step_func(function () {
-    });
-
-    findMessagesSuccess = t.step_func(function () {
-        fakeMessage = {
-            id: "1",
-            conversationId: null,
-            folderId: null,
-            type: "messaging.email",
-            timestamp: null,
-            from: null,
-            to: [TEST_EMAIL_RECIPIENT_1],
-            cc: [],
-            bcc: [],
-            body: {
-                messageId: "1",
-                loaded: false,
-                plainBody: MESSAGE_BODY_PLAIN,
-                htmlBody: "",
-                inlineAttachments: []
-            },
-            isRead: false,
-            hasAttachment: false,
-            isHighPriority: false,
-            subject: "",
-            inResponseTo: null,
-            messageStatus: "",
-            attachments: []
-        };
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function() {
-            service.loadMessageBody(fakeMessage, loadMessageBodySuccess);
-        }, "fake message object was pased but exception was not thrown");
-        t.done();
-    });
-
-    findMessagesError = t.step_func(function (error) {
-        assert_unreached("find error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg.html
deleted file mode 100755 (executable)
index 1d236da..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageBody_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_loadMessageBody_missarg
-//==== LABEL Check with missing non-optional argument - MessageService.loadMessageBody (email)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMA
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    service, message, serviceSuccess, serviceError, addDraftSuccess, addDraftError,
-    exceptionName = "TypeMismatchError";
-
-t.step(function () {
-
-    addDraftSuccess = t.step_func(function () {
-        assert_throws({ name: exceptionName },
-            function () {
-                service.loadMessageBody(message);
-            }, exceptionName + " should be thrown - missing argument.");
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg_message.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg_message.html
deleted file mode 100755 (executable)
index 6a11f6d..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-        Karol Surma <k.surma@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_loadMessageBody_missarg_message</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_loadMessageBody_missarg_message
-//==== LABEL Check with missing message argument - MessageService.loadMessageBody (email)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (service) {
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.loadMessageBody();
-        });
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index d25e61f..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Karol Surma <k.surma@samsung.com>
-        Krzysztof Lachacz <k.lachacz@samsung.com>
--->
-
-<html>
-<head>
-<title>MessageService_email_loadMessageBody_successCallback_TypeMismatch</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_email_loadMessageBody_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageService.loadMessageBody method (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,
-    findMessagesSuccess, findMessagesError,
-    service, i, param, conversionTable, exceptionName, filter;
-
-t.step(function () {
-    findMessagesSuccess = t.step_func(function (messages) {
-        assert_draft_message_equals(t, messages, message);
-
-        conversionTable = getTypeConversionExceptions("functionObject", false);
-
-        for(i = 0; i < conversionTable.length; i++) {
-            param = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                service.loadMessageBody(messages[0], param);
-            }, exceptionName + " should be thrown " + param);
-        }
-        t.done();
-    });
-
-    findMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessage error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index b1a6125..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Karol Surma <k.surma@samsung.com>
-        Krzysztof Lachacz <k.lachacz@samsung.com>
--->
-
-<html>
-<head>
-<title>MessageService_email_loadMessageBody_successCallback_invalid_cb</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_email_loadMessageBody_successCallback_invalid_cb
-//==== LABEL Check if MessageService.loadMessageBody method throws exception when successCallback is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError, service;
-
-t.step(function () {
-    addDraftSuccess = t.step_func(function () {
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.loadMessageBody(message, { onsuccess: function () {} });
-        });
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html
deleted file mode 100755 (executable)
index 552d6fe..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Krzysztof Lachacz <k.lachacz@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_email_loadMessageBody_with_errorCallback</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_email_loadMessageBody_with_errorCallback
-//==== LABEL Check if MessageService.loadMessageBody method works properly with errorCallback argument (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA MR MAST
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,
-    findMessagesSuccess, findMessagesError,
-    loadMessageBodySuccess, loadMessageBodyError, filter, service, returnedValue = null, myMessage, j;
-
-t.step(function () {
-    loadMessageBodySuccess = t.step_func(function (msg) {
-        assert_not_equals(msg, null, "load message successfully");
-        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
-        assert_equals(msg.id, myMessage.id, "Id is not equal");
-        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");
-        assert_equals(msg.conversationId, myMessage.conversationId, "conversationId is not equal");
-        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");
-        assert_equals(msg.folderId, myMessage.folderId, "folderId is not equal");
-        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");
-        assert_equals(msg.type, myMessage.type, "type is not equal");
-        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");
-        assert_equals(msg.timestamp.getTime(), myMessage.timestamp.getTime(), "timestamp is not equal");
-        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");
-        assert_equals(msg.from, myMessage.from, "from is not equal");
-        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");
-        for(j = 0; j < msg.to.length; j++){
-            assert_equals(msg.to[j], myMessage.to[j], "to is not equal");
-        }
-        assert_own_property(msg, "bcc", "Name bcc doesn't exist in provided object.");
-        for(j = 0; j < msg.bcc.length; j++){
-            assert_equals(msg.bcc[j], myMessage.bcc[j], "bcc is not equal");
-        }
-        assert_own_property(msg, "cc", "Name cc doesn't exist in provided object.");
-        for(j = 0; j < msg.cc.length; j++){
-            assert_equals(msg.cc[j], myMessage.cc[j], "cc is not equal");
-        }
-        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");
-        assert_equals(msg.body.messageId, myMessage.body.messageId, "body.messageId is not equal");
-        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");
-        assert_equals(msg.body.loaded, myMessage.body.loaded, "loaded is not equal");
-        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");
-        assert_equals(msg.body.plainBody, myMessage.body.plainBody, "plainBody is not equal");
-        assert_own_property(msg.body, "htmlBody", "Name htmlBody doesn't exist in provided object.");
-        assert_equals(msg.body.htmlBody, myMessage.body.htmlBody, "htmlBody is not equal");
-        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");
-        assert_equals(msg.isRead, myMessage.isRead, "isRead is not equal");
-        assert_own_property(msg, "hasAttachment", "Name hasAttachment doesn't exist in provided object.");
-        assert_equals(msg.hasAttachment, myMessage.hasAttachment, "hasAttachment is not equal");
-        assert_own_property(msg, "isHighPriority", "Name isHighPriority doesn't exist in provided object.");
-        assert_equals(msg.isHighPriority, myMessage.isHighPriority, "isHighPriority is not equal");
-        assert_own_property(msg, "subject", "Name subject doesn't exist in provided object.");
-        assert_equals(msg.subject, myMessage.subject, "subject is not equal");
-        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");
-        assert_equals(msg.inResponseTo, myMessage.inResponseTo, "inResponseTo is not equal");
-        assert_own_property(msg, "messageStatus", "Name messageStatus doesn't exist in provided object.");
-        assert_equals(msg.messageStatus, myMessage.messageStatus, "messageStatus is not equal");
-
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    loadMessageBodyError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    findMessagesSuccess = t.step_func(function (messages) {
-        assert_draft_message_equals(t, messages, message);
-        myMessage = messages[0];
-        returnedValue = service.loadMessageBody(messages[0], loadMessageBodySuccess, loadMessageBodyError);
-    });
-
-    findMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_messageStorage_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_messageStorage_attribute.html
deleted file mode 100755 (executable)
index 3bdfd56..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_messageStorage_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_messageStorage_attribute
-//==== LABEL Check if attribute messageStorage of MessageService (email) exists, has type MessageStorage and is readonly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:messageStorage A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE AT ARO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, storage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (emailService) {
-        messagingService = emailService;
-
-        assert_true("messageStorage" in messagingService, "No 'messageStorage' attribute in messagingService");
-
-        messagingService.messageStorage = null;
-        assert_not_equals(messagingService.messageStorage, null, "messageStorage shouldn't be nullable");
-
-        storage = messagingService.messageStorage;
-        assert_type(storage.addDraftMessage, "function", "messageStorage.addDraftMessage() method not found");
-        assert_type(storage.findMessages, "function", "messageStorage.findMessages() method not found");
-        assert_type(storage.removeMessages, "function", "messageStorage.removeMessages() method not found");
-        assert_type(storage.updateMessages, "function", "messageStorage.updateMessages() method not found");
-        assert_type(storage.findConversations, "function", "messageStorage.findConversations() method not found");
-        assert_type(storage.removeConversations, "function", "messageStorage.removeConversations() method not found");
-        assert_type(storage.findFolders, "function", "messageStorage.findFolders() method not found");
-        assert_type(storage.addMessagesChangeListener, "function", "messageStorage.addMessagesChangeListener() method not found");
-        assert_type(storage.addConversationsChangeListener, "function", "messageStorage.addConversationsChangeListener() method not found");
-        assert_type(storage.addFoldersChangeListener, "function",
-            "messageStorage.addFoldersChangeListener() method not found");
-        assert_type(storage.removeChangeListener, "function", "messageStorage.removeChangeListener() method not found");
-
-        messagingService.nessageStorage = {};
-        assert_type(storage.addDraftMessage, "function", "Not read only - messageStorage.addDraftMessage() method not found");
-        assert_type(storage.findMessages, "function", "Not read only - messageStorage.findMessages() method not found");
-        assert_type(storage.removeMessages, "function", "Not read only - messageStorage.removeMessages() method not found");
-        assert_type(storage.updateMessages, "function", "Not read only - messageStorage.updateMessages() method not found");
-        assert_type(storage.findConversations, "function", "Not read only - messageStorage.findConversations() method not found");
-        assert_type(storage.removeConversations, "function", "Not read only - messageStorage.removeConversations() method not found");
-        assert_type(storage.findFolders, "function", "Not read only - messageStorage.findFolders() method not found");
-        assert_type(storage.addMessagesChangeListener, "function",
-            "Not read only - messageStorage.addMessagesChangeListener() method not found");
-        assert_type(storage.addConversationsChangeListener, "function",
-            "Not read only - messageStorage.addConversationsChangeListener() method not found");
-        assert_type(storage.addFoldersChangeListener, "function",
-            "Not read only - messageStorage.addFoldersChangeListener() method not found");
-        assert_type(storage.removeChangeListener, "function", "Not read only - messageStorage.removeChangeListener() method not found");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_name_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_name_attribute.html
deleted file mode 100755 (executable)
index 3780032..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_name_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_name_attribute
-//==== LABEL Check if attribute name of MessageService (email) exists, has appropriate type and is readonly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:name A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE AT ARO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (service) {
-        assert_own_property(service, "name", "No 'name' attribute in service");
-
-        assert_type(service.name, "string", "Incorrect type");
-        assert_not_equals(service.name, "", "Name is empty");
-
-        check_readonly(service, "name", service.name, "string", "newValue");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html
deleted file mode 100755 (executable)
index da6e7c0..0000000
+++ /dev/null
@@ -1,167 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_email_sendMessage</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: MessageService_email_sendMessage
-//==== LABEL Check if MessageService.sendMessage method works properly (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MAST MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    message, loadedMessage, resend=0, requestSending, sendMessageReturnValue = null, service, inboxFolder,
-    serviceSuccess, serviceError, sendSuccess, sendError, syncSuccess, syncError,
-    folderSuccess, folderError, findSuccess, findError, bodySuccess, bodyError,
-    attachmentSuccess, attachmentError;
-
-t.step(function () {
-    attachmentSuccess = t.step_func(function (attachment) {
-        assert_type(attachment.id, "string", "attachment.id type is not string");
-        assert_not_equals(attachment.id, "", "attachment.id is an empty string");
-
-        assert_equals(attachment.messageId, loadedMessage.id, "attachment id and message id are not equal");
-
-        assert_equals(attachment.mimeType, MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE, "attachment MIME type is incorrect");
-
-        assert_type(attachment.filePath, "string", "attachment.filePath type is not string");
-        assert_not_equals(attachment.filePath, "", "attachment.filePath is an empty string");
-
-        t.done();
-    });
-
-    attachmentError = t.step_func(function (error) {
-        assert_unreached("failed to load attachment: name: " + error.name + " msg: " + error.message);
-    });
-
-    bodySuccess = t.step_func(function (bodyLoadedMessage) {
-        loadedMessage = bodyLoadedMessage;
-        assert_not_equals(loadedMessage, null, "message is null");
-        assert_not_equals(loadedMessage.body, null, "message body is null");
-        assert_equals(loadedMessage.body.plainBody.replace(/\s+$/g, ""), message.body.plainBody, "body does not match");
-        assert_equals(loadedMessage.hasAttachment, true, "hasAttachment is false");
-        assert_true(loadedMessage.attachments.length > 0, "no attachments found");
-
-        service.loadMessageAttachment(loadedMessage.attachments[0], attachmentSuccess, attachmentError);
-    });
-
-    bodyError = t.step_func(function (error) {
-        assert_unreached("failed to load message body: name: " + error.name + " msg: " + error.message);
-    });
-
-    findSuccess = t.step_func(function (messages) {
-        if (messages.length > 0) {
-            assert_inbox_message_equals(t, messages, message, inboxFolder);
-            service.loadMessageBody(messages[0], bodySuccess, bodyError);
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("failed to find message: name: " + error.name + " msg: " + error.message);
-    });
-
-    folderSuccess = t.step_func(function (folders) {
-        inboxFolder = getInboxFolder(t, folders);
-        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);
-    });
-
-    folderError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncSuccess = t.step_func(function () {
-        findFolders(t, service, folderSuccess, folderError);
-    });
-
-    syncError = t.step_func(function (error) {
-        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        assert_equals(sendMessageReturnValue, undefined, "sendMessage() return value is not void");
-        sync(t, service, syncSuccess, syncError);
-    });
-
-    sendError = t.step_func(function (error) {
-        if (resend <= EMAIL_RESEND_LIMIT) {
-            setTimeout(requestSending, 5000);
-        } else {
-            assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-        }
-    });
-
-    requestSending = t.step_func(function () {
-        resend++;
-        sendMessageReturnValue = service.sendMessage(message, sendSuccess, sendError);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-
-        message.attachments = [
-            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)
-        ];
-
-        requestSending();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index f39fc1b..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_sendMessage_errorCallback_TypeMismatch</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_sendMessage_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageService.sendMessage method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, message, sendSuccess,
-    invalidErrorCallback, exceptionName, i, conversionTable;
-t.step(function () {
-
-    sendSuccess = t.step_func(function (recipients) {
-        assert_unreached("Success callback invoked.");
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for (i = 0 ; i < conversionTable.length ; i++) {
-            invalidErrorCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(
-                { name: exceptionName },
-                function () {
-                    service.sendMessage(message, sendSuccess, invalidErrorCallback);
-                },
-                exceptionName + " should be thrown - invalid error callback: " + invalidErrorCallback + "."
-            );
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 21c6159..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_sendMessage_errorCallback_invalid_cb</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_sendMessage_errorCallback_invalid_cb
-//==== LABEL Check if MessageService.sendMessage method throws exception when errorCallback is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, message, sendSuccess, invalidErrorCallback,
-    exceptionName = "TypeMismatchError";
-
-t.step(function () {
-
-    invalidErrorCallback = {
-        onerror: t.step_func(function (error) {
-            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);
-        })
-    };
-
-    sendSuccess = t.step_func(function (recipients) {
-        assert_unreached("Success callback invoked.");
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        assert_throws(
-            { name: exceptionName },
-            function () {
-                service.sendMessage(message, sendSuccess, invalidErrorCallback);
-            },
-            exceptionName + " should be thrown - invalid error callback."
-        );
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_exist.html
deleted file mode 100755 (executable)
index a2fc046..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_sendMessage_exist</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_sendMessage_exist
-//==== LABEL Check if method sendMessage of MessageService (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("sendMessage" in service, "No sendMessage method in service");
-        check_method_exists(service, "sendMessage");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_TypeMismatch.html
deleted file mode 100755 (executable)
index aab7128..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_sendMessage_message_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_sendMessage_message_TypeMismatch
-//==== LABEL Check type conversions for message argument of MessageService.sendMessage method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, sendSuccess, sendError,
-    incorrectMessage, exceptionName, i, conversionTable;
-
-t.step(function () {
-    sendSuccess = t.step_func(function (recipients) {
-        assert_unreached("sendMessage() success callback invoked.");
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-
-        conversionTable = getTypeConversionExceptions("functionObject", false);
-
-        for (i = 0 ; i < conversionTable.length ; i++) {
-            incorrectMessage = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(
-                { name: exceptionName },
-                function () {
-                    service.sendMessage(incorrectMessage, sendSuccess, sendError);
-                },
-                exceptionName + " should be thrown - incorrectly created message: " + incorrectMessage + "."
-            );
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_invalid_obj.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_invalid_obj.html
deleted file mode 100755 (executable)
index 0a51d0f..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_sendMessage_message_invalid_obj</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_sendMessage_message_invalid_obj
-//==== LABEL Check if MessageService.sendMessage method throws exception when message is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, sendSuccess, sendError,
-    fakeMessage, exceptionName = "TypeMismatchError";
-
-t.step(function () {
-    sendSuccess = t.step_func(function (recipients) {
-        assert_unreached("Success callback invoked");
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-
-        fakeMessage = {
-            id: "1",
-            conversationId: null,
-            folderId: null,
-            type: "messaging.email",
-            timestamp: null,
-            from: null,
-            to: [ TEST_EMAIL_RECIPIENT_1 ],
-            cc: [],
-            bcc: [],
-            body: {
-                messageId: "1",
-                loaded: false,
-                plainBody: MESSAGE_BODY_PLAIN,
-                htmlBody: "",
-                inlineAttachments: []
-            },
-            isRead: false,
-            hasAttachment: false,
-            isHighPriority: false,
-            subject: "",
-            inResponseTo: null,
-            messageStatus: "",
-            attachments: []
-        };
-
-        assert_throws(
-            { name: exceptionName },
-            function () {
-                service.sendMessage(fakeMessage, sendSuccess, sendError);
-            },
-            exceptionName + " should be thrown - incorrectly created 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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_missarg.html
deleted file mode 100755 (executable)
index 7440362..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_sendMessage_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_sendMessage_missarg
-//==== LABEL Check with missing non-optional argument - MessageService.sendMessage (email)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (service) {
-        assert_throws(
-            { name: exceptionName },
-            function () {
-                service.sendMessage();
-            },
-            exceptionName + " should be thrown - missing 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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index d5ac12e..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_sendMessage_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_sendMessage_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageService.sendMessage method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, message, sendError, invalidSuccessCallback,
-    exceptionName, i, conversionTable;
-t.step(function () {
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for (i = 0 ; i < conversionTable.length ; i++) {
-            invalidSuccessCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(
-                { name: exceptionName },
-                function () {
-                    service.sendMessage(message, invalidSuccessCallback, sendError);
-                },
-                exceptionName + " should be thrown - invalid success callback: " + invalidSuccessCallback + "."
-            );
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 65e2cfb..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_sendMessage_successCallback_invalid_cb</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_sendMessage_successCallback_invalid_cb
-//==== LABEL Check if MessageService.sendMessage method throws exception when successCallback is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message,
-    sendError, invalidSuccessCallback, exceptionName = "TypeMismatchError";
-
-t.step(function () {
-    invalidSuccessCallback = {
-        onsuccess: t.step_func(function (recipients) {
-            assert_unreached("Invalid success callback invoked");
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        assert_throws(
-            { name: exceptionName },
-            function () {
-                service.sendMessage(message, invalidSuccessCallback, sendError);
-            },
-            exceptionName + " should be thrown - invalid success callback."
-        );
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html
deleted file mode 100755 (executable)
index 8f5036b..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_sendMessage_without_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_sendMessage_without_errorCallback
-//==== LABEL Check if MessageService.sendMessage method works properly without errorCallback argument (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    message, returnedValue = null, serviceSuccess, sendSuccess, serviceError;
-
-t.step(function () {
-
-    sendSuccess = t.step_func(function (recipients) {
-        assert_type(recipients, "array", "recipients type is not array");
-        assert_equals(recipients.length, 1, "recipients.length should be 1");
-        assert_equals(recipients[0], TEST_EMAIL_RECIPIENT_2, "recipient in sent message is not the same as recipient set during message creation");
-
-        assert_equals(returnedValue, undefined, "sendMessage() return value is not void");
-
-        t.done();
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        returnedValue = service.sendMessage(message, sendSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("failed to receive services: " + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html
deleted file mode 100755 (executable)
index c2ae437..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_sendMessage_without_successCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_sendMessage_without_successCallback
-//==== LABEL Check if MessageService.sendMessage method works properly without successCallback argument (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MMINA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    message, returnedValue = null, serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        returnedValue = service.sendMessage(message);
-        assert_equals(returnedValue, undefined, "sendMessage() return value is not void");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("failed to receive services: " + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_exist.html
deleted file mode 100755 (executable)
index b994ade..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_stopSync_exist</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_stopSync_exist
-//==== LABEL Check if method stopSync of MessageService (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:stopSync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("stopSync" in service, "No stopSync method in message_service");
-        check_method_exists(service, "stopSync");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_missarg.html
deleted file mode 100755 (executable)
index 9971c14..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong <dong82.zhao@samsung.com>
-        Hyukin Kwon <hyukin.kwon@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_stopSync_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_stopSync_missarg
-//==== LABEL Check if MessageService::stopSync (for sync) method silently fails without argument
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:stopSync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MMA
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (service) {
-        try {
-            service.stopSync();
-        } catch (e) {
-            assert_unreached("Should not throw any exception, but threw " + e.name);
-        }
-        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>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_opId_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_opId_TypeMismatch.html
deleted file mode 100755 (executable)
index 9158522..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_stopSync_opId_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_stopSync_opId_TypeMismatch
-//==== LABEL Check if MessageService::stopSync (for sync) method should throw an exception with invalid argument type
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:stopSync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-
-setup({timeout: 300000});
-
-var t = async_test(document.title, {timeout: 300000}),
-    opId, serviceSuccess, serviceError, exceptionName, conversionTable, i;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (service) {
-        conversionTable = getTypeConversionExceptions("long", false);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            opId = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-                service.stopSync(opId);
-            }, exceptionName + " should be thrown - given incorrect opId.");
-        }
-        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>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_syncFolder_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_syncFolder_exist.html
deleted file mode 100755 (executable)
index 74e770a..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_syncFolder_exist</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_syncFolder_exist
-//==== LABEL Check if method syncFolder of MessageService (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:syncFolder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("syncFolder" in service, "No syncFolder method in message_service");
-        check_method_exists(service, "syncFolder");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sync_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_sync_exist.html
deleted file mode 100755 (executable)
index 693983c..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_sync_exist</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_sync_exist
-//==== LABEL Check if method sync of MessageService (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("sync" in service, "No sync method in message_service");
-        check_method_exists(service, "sync");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_type_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_email_type_attribute.html
deleted file mode 100755 (executable)
index 5460c15..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_email_type_attribute</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_email_type_attribute
-//==== LABEL Check if attribute type of MessageService (email) exists, has type MessageServiceTag and is readonly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService: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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("type" in service, "No 'type' attribute in messaging_service");
-        assert_type(service.type, "string", "messaging_service.type is not string");
-        check_readonly(service, "type", "messaging.email", "string", "messaging.sms");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_notexist.html
deleted file mode 100755 (executable)
index ea495bc..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageService exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:MessageService U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA NIO
-
-test(function () {
-    check_no_interface_object("MessageService");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithBcc.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithBcc.html
deleted file mode 100755 (executable)
index 1aeb22d..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_sendMessage_emailWithBcc</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_sendMessage_emailWithBcc
-//==== LABEL Check if MessageService.sendMessage method works properly with bcc (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    message, messageSent, messageFailed, serviceSuccess, serviceError;
-
-t.step(function () {
-
-    messageSent = t.step_func(function (recipients) {
-        assert_greater_than(recipients.length, 0, "Received empty recipients array");
-        t.done();
-    });
-
-    messageFailed = t.step_func(function (error) {
-        assert_unreached("sendMessage() error: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        message.bcc = [TEST_EMAIL_RECIPIENT_1];
-        sendMessage(t, service, message, messageSent, messageFailed);
-    });
-
-    serviceError = t.step_func(function (err) {
-        assert_unreached("getEmailService() error: " + err.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithPriority.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithPriority.html
deleted file mode 100755 (executable)
index 66ef57c..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_sendMessage_emailWithPriority</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_sendMessage_emailWithPriority
-//==== LABEL Check if MessageService.sendMessage method works properly with highPriority (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-message, serviceSuccess, serviceError, sendSuccess, sendError;
-
-t.step(function () {
-
-    sendSuccess = t.step_func(function (recipients) {
-        assert_true(recipients.length > 0, "No message sent successfully");
-        t.done();
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        message.isHighPriority = true;
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (err) {
-        assert_unreached("getMessageServices() error: " + err.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html
deleted file mode 100755 (executable)
index 29aef21..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-<head>
-<title>MessageService_sendMessage_email_without_callbacks</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageService_sendMessage_email_without_callbacks
-//==== LABEL Check if MessageService.sendMessage method works properly without callbacks (email)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, returnedValue = null;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        returnedValue = service.sendMessage(message);
-        assert_equals(returnedValue, undefined, "Incorrect returned value from sendMessage");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (err) {
-        assert_unreached("getMessageServices() error: " + err.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_sync.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_sync.html
deleted file mode 100755 (executable)
index 06caf85..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_stopSync_sync</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_stopSync_sync
-//==== LABEL Check if MessageService.stopSync (for sync) method works properly
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:stopSync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMINA MR MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), returnedValue = null,
-    serviceError, serviceSuccess, service, message, sendError, sendSuccess, syncId;
-
-t.step(function () {
-    sendSuccess = t.step_func(function () {
-        setTimeout(t.step_func(function () {
-            syncId = service.sync();
-            returnedValue = service.stopSync(syncId);
-            assert_equals(returnedValue, undefined, "Incorrect returned value");
-            t.done();
-        }), EMAIL_SYNC_INTERVAL);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_syncFolder.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_syncFolder.html
deleted file mode 100755 (executable)
index b071cfb..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_stopSync_syncFolder</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_stopSync_syncFolder
-//==== LABEL Check if MessageService.stopSync (for syncFolder) method works properly
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:stopSync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMINA MR MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, service, filterForServiceId, findFoldersError, findFoldersSuccess,
-    inboxFolder, message, sendError, sendSuccess, syncId, returnedValue = null;
-
-t.step(function () {
-    sendSuccess = t.step_func(function () {
-        setTimeout(t.step_func(function () {
-            syncId = service.syncFolder(inboxFolder);
-            returnedValue = service.stopSync(syncId);
-            assert_equals(returnedValue, undefined, "Incorrect returned value");
-            t.done();
-        }), EMAIL_SYNC_INTERVAL);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findFoldersSuccess = t.step_func(function (folders) {
-        assert_greater_than(folders.length, 0, "Received empty folders array");
-        inboxFolder = getInboxFolder(t, folders);
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        filterForServiceId = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-
-        service.messageStorage.findFolders(filterForServiceId, findFoldersSuccess, findFoldersError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync.html
deleted file mode 100755 (executable)
index 7944471..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_sync</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_sync
-//==== LABEL Check if MessageService.sync method works properly
-//==== PRIORITY: P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, returnedValue = null;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (service) {
-        returnedValue = service.sync();
-        assert_type(returnedValue, "long", "type check");
-        service.stopSync(returnedValue);
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html
deleted file mode 100755 (executable)
index f50a264..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_syncFolder</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_syncFolder
-//==== LABEL Check if MessageService.syncFolder method works properly
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MR MMINA
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service,
-    returnedValue = null, findSuccess, findError;
-
-t.step(function () {
-    findSuccess = t.step_func(function (folders) {
-        assert_greater_than(folders.length, 0, "Received empty folders array");
-
-        returnedValue = service.syncFolder(folders[0]);
-
-        assert_type(returnedValue, "long", "Incorrect returned value");
-
-        service.stopSync(returnedValue);
-
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-        findFolders(t, service, findSuccess, findError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 6e9006a..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_syncFolder_errorCallback_TypeMismatch</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_syncFolder_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageService.syncFolder method
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, findSuccess, findError,
-    exceptionName, conversionTable, i, successCallback, errorCallback;
-
-t.step(function () {
-
-    successCallback = t.step_func(function () {
-        assert_unreached("syncFolder() success callback invoked.");
-    });
-
-    findSuccess = t.step_func(function (folders) {
-        assert_true(folders.length > 0, "No folder found.");
-
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            errorCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName}, function () {
-                service.syncFolder(folders[0], successCallback, errorCallback);
-            }, exceptionName + " should be thrown - given incorrect errorCallback.");
-        }
-
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-        findFolders(t, service, findSuccess, findError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index ced152c..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_syncFolder_errorCallback_invalid_cb</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_syncFolder_errorCallback_invalid_cb
-//==== LABEL Check if MessageService.syncFolder method throws exception when errorCallback is invalid
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, service, findError, findSuccess,
-    syncFolderSuccess, invalidErrorCallback;
-t.step(function () {
-
-    invalidErrorCallback = {
-        onerror: t.step_func(function (error) {
-            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);
-        })
-    };
-
-    syncFolderSuccess = t.step_func(function () {
-        assert_unreached("syncFolder() success callback invoked.");
-    });
-
-    findSuccess = t.step_func(function (folders) {
-        assert_greater_than(folders.length, 0, "Received empty folders array");
-
-        assert_throws ({name: TYPE_MISMATCH_ERR}, function () {
-            service.syncFolder(folders[0], syncFolderSuccess, invalidErrorCallback);
-        }, "TypeMismatchError should be thrown - given incorrect errorCallback.");
-
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-        findFolders(t, service, findSuccess, findError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_folder_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_folder_TypeMismatch.html
deleted file mode 100755 (executable)
index 136679a..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_syncFolder_folder_TypeMismatch</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_syncFolder_folder_TypeMismatch
-//==== LABEL Check type conversions for folder argument of MessageService.syncFolder method
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), folder,
-    serviceSuccess, serviceError, exceptionName, conversionTable, i;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        conversionTable = getTypeConversionExceptions("object", false);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            folder = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName}, function () {
-                service.syncFolder(folder);
-            }, exceptionName + " should be thrown - given incorrect folder.");
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_missarg.html
deleted file mode 100755 (executable)
index 087ad83..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_syncFolder_missarg</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_syncFolder_missarg
-//==== LABEL Check with missing non-optional argument - MessageService.syncFolder
-//==== PRIORITY P2
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMA
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.syncFolder();
-        }, "Method should throw an exception");
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 51e9577..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_syncFolder_successCallback_TypeMismatch</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_syncFolder_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageService.syncFolder method
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, findSuccess, findError,
-    exceptionName, conversionTable, i, successCallback;
-
-t.step(function () {
-    findSuccess = t.step_func(function (folders) {
-        assert_true(folders.length > 0, "No folder found.");
-
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            successCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName}, function () {
-                service.syncFolder(folders[0], successCallback);
-            }, exceptionName + " should be thrown - given incorrect successCallback.");
-        }
-
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-        findFolders(t, service, findSuccess, findError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 4116735..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_syncFolder_successCallback_invalid_cb</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_syncFolder_successCallback_invalid_cb
-//==== LABEL Check if MessageService.syncFolder method throws exception when successCallback is invalid
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, service, findError, findSuccess, invalidSuccessCallback;
-t.step(function () {
-    invalidSuccessCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("Invalid success callback invoked");
-        })
-    };
-
-    findSuccess = t.step_func(function (folders) {
-        assert_greater_than(folders.length, 0, "Received empty folders array");
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.syncFolder(folders[0], invalidSuccessCallback);
-        },  "TypeMismatchError should be thrown - given incorrect successCallback.");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-        findFolders(t, service, findSuccess, findError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_errorCallback.html
deleted file mode 100755 (executable)
index f1d9288..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_syncFolder_with_errorCallback</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_syncFolder_with_errorCallback
-//==== LABEL Check if MessageService.syncFolder method works properly with errorCallback argument
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA MR MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, findFoldersError, findFoldersSuccess,
-    inboxFolder, message, sendError, sendSuccess, syncId = null,
-    syncFolderSuccess, syncFolderError, findMessageError, findMessageSuccess;
-
-t.step(function () {
-
-    findMessageSuccess = t.step_func(function (messages) {
-        if (messages.length > 0) {
-            assert_inbox_message_equals(t, messages, message, inboxFolder);
-            t.done();
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findMessageError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncFolderSuccess = t.step_func(function () {
-        assert_type(syncId, "long", "Incorrect returned value");
-        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);
-    });
-
-
-    syncFolderError = t.step_func(function (error) {
-        assert_unreached("syncFolder() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findFoldersSuccess = t.step_func(function (folders) {
-        inboxFolder = getInboxFolder(t, folders);
-        syncId = service.syncFolder(inboxFolder, syncFolderSuccess, syncFolderError);
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        setTimeout(t.step_func(function () {
-            findFolders(t, service, findFoldersSuccess, findFoldersError);
-        }), EMAIL_SYNC_INTERVAL);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html
deleted file mode 100755 (executable)
index af347e2..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_syncFolder_with_limit</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_syncFolder_with_limit
-//==== LABEL Check if MessageService.syncFolder method works properly with limit
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, findFoldersSuccess, findFoldersError,
-    inboxFolder, syncId = null, syncFolderSuccess, syncFolderError;
-
-t.step(function () {
-    syncFolderSuccess = t.step_func(function () {
-        assert_type(syncId, "long", "Incorrect returned value");
-        t.done();
-    });
-
-    syncFolderError = t.step_func(function (error) {
-        assert_unreached("syncFolder() error: " + error.message);
-    });
-
-    findFoldersSuccess = t.step_func(function (folders) {
-        assert_greater_than(folders.length, 0, "Received empty folders array");
-
-        inboxFolder = getInboxFolder(t, folders);
-
-        syncId = service.syncFolder(inboxFolder, syncFolderSuccess, syncFolderError, 10);
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        findFolders(t, service, findFoldersSuccess, findFoldersError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_successCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_successCallback.html
deleted file mode 100755 (executable)
index 60c6272..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_syncFolder_with_successCallback</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_syncFolder_with_successCallback
-//==== LABEL Check if syncFolder method with successCallback optional argument works
-//==== PRIORITY: P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA MR MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, findFoldersError, findFoldersSuccess,
-    inboxFolder, message, sendError, sendSuccess, syncId = null, syncFolderSuccess,
-    findMessageError, findMessageSuccess;
-
-t.step(function () {
-
-    findMessageSuccess = t.step_func(function (messages) {
-        if (messages.length > 0) {
-            assert_inbox_message_equals(t, messages, message, inboxFolder);
-            t.done();
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findMessageError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncFolderSuccess = t.step_func(function () {
-        assert_type(syncId, "long", "Incorrect returned value");
-        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);
-    });
-
-    findFoldersSuccess = t.step_func(function (folders) {
-        inboxFolder = getInboxFolder(t, folders);
-        syncId = service.syncFolder(inboxFolder, syncFolderSuccess);
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        setTimeout(t.step_func(function () {
-            findFolders(t, service, findFoldersSuccess, findFoldersError);
-        }), EMAIL_SYNC_INTERVAL);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_emailwithoutparam.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_emailwithoutparam.html
deleted file mode 100755 (executable)
index 41e365e..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_sync_emailwithoutparam</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_sync_emailwithoutparam
-//==== LABEL Check if MessageService.sync method works properly without param
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, syncSuccess, syncError;
-
-t.step(function () {
-    syncSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    syncError = t.step_func(function (error) {
-        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        sync(t, service, syncSuccess, syncError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 17b9353..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_sync_errorCallback_TypeMismatch</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_sync_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageService.sync method
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, syncSuccess, errorCallback, exceptionName, conversionTable, i;
-t.step(function () {
-
-    syncSuccess = t.step_func(function () {
-        assert_unreached("sync() success callback invoked.");
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            errorCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName}, function () {
-                service.sync(syncSuccess, errorCallback);
-            }, exceptionName + " should be thrown - given incorrect successCallback.");
-        }
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index ea28ccb..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_sync_errorCallback_invalid_cb</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_sync_errorCallback_invalid_cb
-//==== LABEL Check if MessageService.sync method throws exception when errorCallback is invalid
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceError,
-    successCallback, invalidErrorCallback, serviceSuccess, exceptionName = "TypeMismatchError";
-
-t.step(function () {
-
-    invalidErrorCallback = {
-        onerror: t.step_func(function (error) {
-            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);
-        })
-    };
-
-    successCallback = t.step_func(function () {
-        assert_unreached("sync() success callback invoked.");
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        assert_throws({name: exceptionName},
-            function () {
-                service.sync(successCallback, invalidErrorCallback);
-            }, exceptionName + " should be thrown - given incorrect errorCallback.");
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_foremail.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_foremail.html
deleted file mode 100755 (executable)
index 35b347b..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-<head>
-<title>MessageService_sync_foremail</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageService_sync_foremail
-//==== LABEL Check if MessageService.sync method works properly without arguments
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, syncId;
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        syncId = service.sync();
-        service.stopSync(syncId);
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 2747405..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_sync_successCallback_TypeMismatch</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_sync_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageService.sync method
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    successCallback, serviceSuccess, serviceError, exceptionName, conversionTable, i;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            successCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName}, function () {
-                service.sync(successCallback);
-            }, exceptionName + " should be thrown - given incorrect successCallback.");
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 0f9ba46..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_sync_successCallback_invalid_cb</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_sync_successCallback_invalid_cb
-//==== LABEL Check if MessageService.sync method throws exception when successCallback is invalid
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    successCallback, serviceSuccess, serviceError, exceptionName = "TypeMismatchError";
-
-t.step(function () {
-    successCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("Incorrect successCallback invoked.");
-        })
-    };
-
-    serviceSuccess = t.step_func(function (service) {
-        assert_throws({name: exceptionName}, function () {
-            service.sync(successCallback);
-        }, exceptionName + " should be thrown - given incorrect successCallback.");
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_errorCallback.html
deleted file mode 100755 (executable)
index 03c630e..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_sync_with_errorCallback</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_sync_with_errorCallback
-//==== LABEL Check if MessageService.sync method works properly with errorCallback argument
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA MR MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    returnedValue = null, serviceError, serviceSuccess, service, message, sendError, sendSuccess,
-    syncRequest, syncRetryCount=0, syncError, syncSuccess, inboxFolder,
-    findFoldersSuccess, findFoldersError, findMessageSuccess, findMessageError;
-
-t.step(function () {
-    findMessageSuccess = t.step_func(function (messages) {
-        if (messages.length > 0) {
-            assert_inbox_message_equals(t, messages, message, inboxFolder);
-            t.done();
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findMessageError = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findFoldersSuccess = t.step_func(function (folders) {
-        inboxFolder = getInboxFolder(t, folders);
-        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncSuccess = t.step_func(function () {
-        assert_type(returnedValue, "long", "Incorrect returned value");
-
-        findFolders(t, service, findFoldersSuccess, findFoldersError);
-    });
-
-    syncError = t.step_func(function (error) {
-        if (syncRetryCount <= EMAIL_RESYNC_LIMIT) {
-            setTimeout(syncRequest, 5000);
-        } else {
-            assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);
-        }
-    });
-
-    syncRequest = t.step_func(function () {
-        syncRetryCount++;
-        returnedValue = service.sync(syncSuccess, syncError);
-    });
-
-    sendSuccess = t.step_func(function () {
-        setTimeout(t.step_func(function () {
-            syncRequest();
-        }), EMAIL_SYNC_INTERVAL);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_limit.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_limit.html
deleted file mode 100755 (executable)
index 8a250fd..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_sync_with_limit</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_sync_with_limit
-//==== LABEL Check if MessageService.sync method works properly with limit argument
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, syncSuccess, syncError;
-
-t.step(function () {
-    syncSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    syncError = t.step_func(function (error) {
-        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        sync(t, service, syncSuccess, syncError, 10);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_successCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_successCallback.html
deleted file mode 100755 (executable)
index ee5fc92..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_sync_with_successCallback</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_sync_with_successCallback
-//==== LABEL Check if MessageService.sync method works properly with successCallback argument
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA MR MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, returnedValue = null,
-    sendSuccess, sendError, syncSuccess, findFoldersSuccess, findFoldersError,
-    findMessageSuccess, findMessageError, inboxFolder;
-
-t.step(function () {
-    findMessageSuccess = t.step_func(function (messages) {
-        if (messages.length > 0) {
-            assert_equals(messages.length, 1, "Found incorrect number of messages");
-            assert_equals(messages[0].subject, message.subject, "Incorrect subject.");
-            assert_equals(messages[0].folderId, inboxFolder.id, "Incorrect folderId.");
-            t.done();
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findMessageError = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findFoldersSuccess = t.step_func(function (folders) {
-        inboxFolder = getInboxFolder(t, folders);
-        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncSuccess = t.step_func(function () {
-        assert_type(returnedValue, "long", "Incorrect returned value");
-
-        findFolders(t, service, findFoldersSuccess, findFoldersError);
-    });
-
-    sendSuccess = t.step_func(function () {
-        setTimeout(t.step_func(function () {
-            returnedValue = service.sync(syncSuccess);
-        }), EMAIL_SYNC_INTERVAL);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html
deleted file mode 100755 (executable)
index ce1bcec..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Beata Koziarek <b.koziarek@samsung.com>
--->
-
-<html>
-<head>
-<title>MessageStorage_addConversationsChangeListener</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_addConversationsChangeListener
-//==== LABEL Check if MessageStorage.addConversationsChangeListener method works properly (email)
-//==== PRIORITY: P1
-//==== 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 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MMINA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service, i,
-    serviceSuccess, serviceError, messageService, message, addDraftError, conversationChangeCB, returnedValue = null;
-
-t.step(function () {
-    add_result_callback(function () {
-        try {
-            service.messageStorage.removeChangeListener(returnedValue);
-        } catch (err) {
-            // do nothing in case removeChangeListener throws an exception
-        }
-    });
-
-    conversationChangeCB = {
-        conversationsadded: t.step_func(function (conversations) {
-            assert_greater_than(conversations.length, 0, "Received empty conversations array");
-
-            for (i = 0; i < conversations.length; i++) {
-                if (conversations[i].id === message.conversationId) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        messageService = service;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        returnedValue = messageService.messageStorage.addConversationsChangeListener(conversationChangeCB);
-        assert_type(returnedValue, "long", "Incorrect returned value type");
-
-        messageService.messageStorage.addDraftMessage(message, null, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html
deleted file mode 100755 (executable)
index 79d8a52..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
--->
-
-<html>
-<head>
-<title>MessageStorage_addConversationsChangeListener_filter_TypeMismatch</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_addConversationsChangeListener_filter_TypeMismatch
-//==== LABEL Check type conversions for filter argument of MessageStorage.addConversationsChangeListener method (email)
-//==== 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 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, conversationChangeCB, filter,
-    exceptionName, conversionTable, i, watchId;
-
-t.step(function () {
-    add_result_callback(function () {
-        try {
-            service.messageStorage.removeChangeListener(watchId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throws an exception
-        }
-    });
-
-    conversationChangeCB = {
-        conversationsadded: t.step_func(function (conversations) {
-            assert_unreached("conversations added");
-        }),
-        conversationsupdated: t.step_func(function (conversations) {
-            assert_unreached("conversations updated");
-        }),
-        conversationsremoved: t.step_func(function (conversations) {
-            assert_unreached("conversations removed");
-        })
-    };
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        conversionTable = getTypeConversionExceptions("object", true);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            filter = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({
-                name: exceptionName
-            }, function () {
-                watchId = service.messageStorage.addConversationsChangeListener(conversationChangeCB, filter);
-            }, exceptionName + " should be thrown - given incorrect filter: " + filter);
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_missarg.html
deleted file mode 100755 (executable)
index d4c1473..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_addConversationsChangeListener_missarg</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_addConversationsChangeListener_missarg
-//==== LABEL Check with missing mandatory argument - MessageStorage.addConversationsChangeListener (email)
-//==== 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 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMA
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, watchId;
-t.step(function () {
-    add_result_callback(function () {
-        try {
-            service.messageStorage.removeChangeListener(watchId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throws an exception
-        }
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            watchId = service.messageStorage.addConversationsChangeListener();
-        });
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_with_filter.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_with_filter.html
deleted file mode 100755 (executable)
index e6b98fa..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
--->
-
-<html>
-<head>
-<title>MessageStorage_addConversationsChangeListener_with_filter</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_addConversationsChangeListener_with_filter
-//==== LABEL Check if MessageStorage.addConversationsChangeListener method works properly with filter (email)
-//==== PRIORITY: P1
-//==== 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 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), addDraftError, i,
-    service, serviceSuccess, serviceError, message, conversationChangeCB, filter, watchId;
-
-t.step(function () {
-    add_result_callback(function () {
-        try {
-            service.messageStorage.removeChangeListener(watchId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throws an exception
-        }
-    });
-
-    conversationChangeCB = {
-        conversationsadded: t.step_func(function (conversations) {
-            assert_greater_than(conversations.length, 0, "Received empty conversations array");
-
-            for (i = 0; i < conversations.length; i++) {
-                if (conversations[i].id === message.conversationId) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        filter = new tizen.AttributeFilter("to", "EXACTLY", message.to);
-        watchId = service.messageStorage.addConversationsChangeListener(conversationChangeCB, filter);
-
-        service.messageStorage.addDraftMessage(message, null, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutcb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutcb.html
deleted file mode 100755 (executable)
index 943c20b..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_addConversationsChangeListener_withoutcb</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_addConversationsChangeListener_withoutcb
-//==== LABEL Check with missing non-optional argument - MessageStorage.addConversationsChangeListener (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== 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
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.messageStorage.addConversationsChangeListener();
-        }, "Missing non-optional argument");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 9c5744c..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch
-//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)
-//==== 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 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    incorrectChangeListener, exceptionName, i, conversionTable;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        conversionTable = getTypeConversionExceptions("object", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectChangeListener  = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.addConversationsChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");
-        }
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 59943e3..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb
-//==== LABEL Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (email)
-//==== 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 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTL
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), incorrectChangeListener,
-    serviceSuccess, serviceError, incorrectListeners, i, exceptionName;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        incorrectListeners = getListenerConversionExceptions(["conversationsadded", "conversationsupdated", "conversationsremoved"]);
-        for(i = 0; i < incorrectListeners.length; i++) {
-            incorrectChangeListener = incorrectListeners[i][0];
-            exceptionName = incorrectListeners[i][1];
-
-            assert_throws({name: exceptionName},
-                function () {
-                    service.messageStorage.addConversationsChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener.");
-        }
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_exist.html
deleted file mode 100755 (executable)
index 1285968..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addConversationsChangeListener_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addConversationsChangeListener_exist
-//==== LABEL Check if method addConversationsChangeListener of MessageStorage (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== 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
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    messageStorage, serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        messageStorage = service.messageStorage;
-        assert_true("addConversationsChangeListener" in messageStorage, "No addConversationsChangeListener method in messageStorage");
-        check_method_exists(messageStorage, "addConversationsChangeListener");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html
deleted file mode 100755 (executable)
index 2ad2623..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addDraftMessage</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addDraftMessage
-//==== LABEL Check if MessageStorage.addDraftMessage method works properly (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MAST MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message,
-    addDraftSuccess, addDraftError, returnedValue = null, filter, findMessagesSuccess, findMessagesError;
-
-t.step(function () {
-    findMessagesSuccess = t.step_func(function (messages) {
-        assert_draft_message_equals(t, messages, message);
-        t.done();
-    });
-
-    findMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value.");
-
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        returnedValue = service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 915d416..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, addDraftSuccess, conversionTable, i, exceptionName, incorrectCallback;
-
-t.step(function () {
-    addDraftSuccess = t.step_func(function () {
-        assert_unreached("addDraftMessage() success callback invoked.");
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                service.messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 81da4f4..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addDraftMessage_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addDraftMessage_errorCallback_invalid_cb
-//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, addDraftSuccess, incorrectCallback, exceptionName = "TypeMismatchError";
-
-t.step(function () {
-    addDraftSuccess = t.step_func(function () {
-        assert_unreached("addDraftMessage() success callback invoked.");
-    });
-
-    incorrectCallback = {
-        onerror: t.step_func(function (error) {
-            assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);
-        })
-    };
-
-    serviceSuccess = t.step_func(function (service) {
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        assert_throws({name: exceptionName},
-            function () {
-                service.messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_exist.html
deleted file mode 100755 (executable)
index e2fcbe1..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addDraftMessage_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addDraftMessage_exist
-//==== LABEL Check if method addDraftMessage of MessageStorage (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("addDraftMessage" in service.messageStorage, "No addDraftMessage method in messageStorage");
-        check_method_exists(service.messageStorage, "addDraftMessage");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_TypeMismatch.html
deleted file mode 100755 (executable)
index 629cf4c..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addDraftMessage_message_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addDraftMessage_message_TypeMismatch
-//==== LABEL Check type conversions for message argument of MessageStorage.addDraftMessage method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, incorrectMessage, conversionTable, i, exceptionName,
-    addDraftSuccess, addDraftError;
-
-t.step(function () {
-    addDraftSuccess = t.step_func(function () {
-        assert_unreached("addDraftMessage success callback invoked.");
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        conversionTable = getTypeConversionExceptions("object", false);
-
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectMessage = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    service.messageStorage.addDraftMessage(incorrectMessage, addDraftSuccess, addDraftError);
-                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessage);
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_invalid_obj.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_invalid_obj.html
deleted file mode 100755 (executable)
index cdbd419..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addDraftMessage_message_invalid_obj</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addDraftMessage_message_invalid_obj
-//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when message is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, fakeMessage, exceptionName = "TypeMismatchError",
-    addDraftSuccess, addDraftError;
-
-t.step(function () {
-    addDraftSuccess = t.step_func(function () {
-        assert_unreached("addDraftMessage success callback invoked.");
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        fakeMessage = {
-            id: "123456",
-            conversationId: null,
-            folderId: null,
-            type: "messaging.email",
-            timestamp: null,
-            from: null,
-            to: [ TEST_EMAIL_RECIPIENT_1 ],
-            cc: [],
-            bcc: [],
-            body: {
-                messageId: "123456",
-                loaded: false,
-                plainBody: MESSAGE_BODY_PLAIN,
-                htmlBody: "",
-                inlineAttachments: []
-            },
-            isRead: false,
-            hasAttachment: false,
-            isHighPriority: false,
-            subject: "",
-            inResponseTo: null,
-            messageStatus: "",
-            attachments: []
-        };
-
-        assert_throws({name: exceptionName}, function () {
-            service.messageStorage.addDraftMessage(fakeMessage, addDraftSuccess, addDraftError);
-        }, exceptionName + " should be thrown - given incorrect 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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_missarg.html
deleted file mode 100755 (executable)
index 0a9c368..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addDraftMessage_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addDraftMessage_missarg
-//==== LABEL Check with missing non-optional argument - MessageStorage.addDraftMessage (email)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.messageStorage.addDraftMessage();
-        }, "Missing argument");
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index f6be90f..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addDraftMessage_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addDraftMessage_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, incorrectCallback, addDraftError, conversionTable, exceptionName, i;
-
-t.step(function () {
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                service.messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);
-            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 1ed2785..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addDraftMessage_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addDraftMessage_successCallback_invalid_cb
-//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, incorrectCallback, addDraftError;
-
-t.step(function () {
-    incorrectCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("addDraftMessage() success callback invoked.");
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);
-        }, "Given incorrect success callback - " + incorrectCallback);
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html
deleted file mode 100755 (executable)
index 8254056..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addDraftMessage_without_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addDraftMessage_without_errorCallback
-//==== LABEL Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MOA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, returnedValue = null,
-    addDraftSuccess, filter, findMessagesSuccess, findMessagesError;
-
-t.step(function () {
-    findMessagesSuccess = t.step_func(function (messages) {
-        assert_draft_message_equals(t, messages, message);
-        t.done();
-    });
-
-    findMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value.");
-
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        returnedValue = service.messageStorage.addDraftMessage(message, addDraftSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html
deleted file mode 100755 (executable)
index cc4f74a..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addDraftMessage_without_successCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addDraftMessage_without_successCallback
-//==== LABEL Check if MessageStorage.addDraftMessage method works properly without successCallback argument (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, returnedValue = null;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        returnedValue = service.messageStorage.addDraftMessage(message);
-        assert_equals(returnedValue, undefined, "Incorrect returned 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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener.html
deleted file mode 100755 (executable)
index 79d9394..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-<head>
-<title>MessageStorage_email_addFoldersChangeListener</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_email_addFoldersChangeListener
-//==== LABEL Check if MessageStorage.addFoldersChangeListener method works properly (email)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, foldersChangeCallback, watchId;
-
-t.step(function () {
-
-    foldersChangeCallback = {
-        foldersupdated: t.step_func(function (updatedFolders){
-        }),
-        foldersadded: t.step_func(function (addedFolders){
-        }),
-        foldersremoved: t.step_func(function (removedFolders){
-        })
-    };
-
-    serviceSuccess = t.step_func(function (service) {
-        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback);
-        assert_type(watchId, "long", "Incorrect returned type");
-
-        service.messageStorage.removeChangeListener(watchId);
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_exist.html
deleted file mode 100755 (executable)
index ae3700c..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addFoldersChangeListener_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addFoldersChangeListener_exist
-//==== LABEL Check if method addFoldersChangeListener of MessageStorage (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("addFoldersChangeListener" in service.messageStorage, "No addFoldersChangeListener method in messageStorage");
-        check_method_exists(service.messageStorage, "addFoldersChangeListener");
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html
deleted file mode 100755 (executable)
index d2ca36e..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Karol Surma <k.surma@samsung.com>
--->
-
-<html>
-<head>
-<title>MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch
-//==== LABEL Check type conversions for filter argument of MessageStorage.addFoldersChangeListener method (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, foldersChangeCallback, incorrectfilter, conversionTable, i, exceptionName;
-
-t.step(function () {
-
-    foldersChangeCallback = {
-        foldersupdated: t.step_func(function (updatedFolders){
-
-        }),
-        foldersadded: t.step_func(function (addedFolders){
-
-        }),
-        foldersremoved: t.step_func(function (removedFolders){
-
-        })
-    };
-
-    serviceSuccess = t.step_func(function (service) {
-        conversionTable = getTypeConversionExceptions("object", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectfilter = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                service.messageStorage.addFoldersChangeListener(foldersChangeCallback, incorrectfilter);
-            }, exceptionName + " should be thrown - given incorrect filter - " + incorrectfilter);
-        }
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 0a06937..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Karol Surma <k.surma@samsung.com>
--->
-<html>
-<head>
-<title>MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch
-//==== LABEL Check type conversions for foldersChangeCallback argument of MessageStorage.addFoldersChangeListener method (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError,
-    incorrectCallback, conversionTable, i, exceptionName;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        conversionTable = getTypeConversionExceptions("object", false);
-
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName}, function () {
-                service.messageStorage.addFoldersChangeListener(incorrectCallback);
-            }, "Given incorrect error callback - " + incorrectCallback);
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_invalid_cb.html
deleted file mode 100755 (executable)
index 82898db..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_email_addFoldersChangeListener_invalid_cb</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_email_addFoldersChangeListener_invalid_cb
-//==== LABEL Check if MessageStorage.addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTL
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, incorrectListeners, folderChangeListener, i, exceptionName, filter;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-
-        incorrectListeners = getListenerConversionExceptions(["foldersadded", "foldersupdated", "foldersremoved"]);
-
-        for (i = 0; i < incorrectListeners.length; i++) {
-            folderChangeListener  = incorrectListeners[i][0];
-            exceptionName = incorrectListeners[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                service.messageStorage.addFoldersChangeListener(folderChangeListener, filter);
-            }, exceptionName + " should be thrown - given incorrect successCallback.");
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_missarg.html
deleted file mode 100755 (executable)
index c22cfd4..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Karol Surma <k.surma@samsung.com>
--->
-
-<html>
-<head>
-<title>MessageStorage_email_addFoldersChangeListener_missarg</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_email_addFoldersChangeListener_missarg
-//==== LABEL Check with missing non-optional argument - MessageStorage.addFoldersChangeListener (email)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_throws(TYPE_MISMATCH_EXCEPTION,
-            function () {
-                service.messageStorage.addFoldersChangeListener();
-            },
-            "TypeMismatchError should be thrown - no listener given"
-        );
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_updatedata.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_updatedata.html
deleted file mode 100755 (executable)
index f42457f..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addFoldersChangeListener_updatedata</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addFoldersChangeListener_updatedata
-//==== LABEL Check if MessageStorage::addFoldersChangeListener method works properly when update data
-//==== PRIORITY: P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MAST
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter, addDraftError, i;
-
-t.step(function () {
-
-    foldersChangeCallback = {
-        foldersupdated: t.step_func(function (updatedFolders) {
-        }),
-        foldersadded: t.step_func(function (addedFolders) {
-            assert_type(addedFolders, "object", "type check");
-            assert_greater_than(addedFolders.length, 0, "Received empty folders array");
-            for (i = 0; i < addedFolders.length; i++) {
-                if (addedFolders[i].name= "abc") {
-                    alert("please remove the folder just added");
-                    t.done();
-                    break;
-                }
-            }
-        }),
-        foldersremoved: t.step_func(function (removedFolders) {
-        })
-    };
-
-    serviceSuccess = t.step_func(function (service) {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);
-        assert_type(watchId, "long", "Incorrect returned type");
-        alert("add a folder in the email named 'abc' manually");
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_with_filter.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_with_filter.html
deleted file mode 100755 (executable)
index b5802bc..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Karol Surma <k.surma@samsung.com>
--->
-<html>
-<head>
-<title>MessageStorage_email_addFoldersChangeListener_with_filter</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_email_addFoldersChangeListener_with_filter
-//==== LABEL Check if MessageStorage.addFoldersChangeListener method works properly with filter (email)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter;
-t.step(function () {
-
-    foldersChangeCallback = {
-        foldersupdated: t.step_func(function (updatedFolders){
-        }),
-        foldersadded: t.step_func(function (addedFolders){
-        }),
-        foldersremoved: t.step_func(function (removedFolders){
-        })
-    };
-
-    serviceSuccess = t.step_func(function (service) {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-
-        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);
-        assert_type(watchId, "long", "Incorrect returned type");
-
-        service.messageStorage.removeChangeListener(watchId);
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_exist.html
deleted file mode 100755 (executable)
index f689cd3..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addMessagesChangeListener_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addMessagesChangeListener_exist
-//==== LABEL Check if method addMessagesChangeListener of MessageStorage (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("addMessagesChangeListener" in service.messageStorage, "No addMessagesChangeListener method in messageStorage");
-        check_method_exists(service.messageStorage, "addMessagesChangeListener");
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html
deleted file mode 100755 (executable)
index 0eac4aa..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch
-//==== LABEL Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, changeCallback, conversionTable, incorrectFilter, exceptionName, i;
-
-t.step(function () {
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_unreached("messagesadded callback invoked.");
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_unreached("messagesupdated callback invoked.");
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_unreached("messagesremoved callback invoked.");
-        })
-    };
-
-    serviceSuccess = t.step_func(function (service) {
-        conversionTable = getTypeConversionExceptions("object", true);
-
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectFilter = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-                function () {
-                    service.messageStorage.addMessagesChangeListener(changeCallback, incorrectFilter);
-                }, exceptionName + " should be thrown - given incorrect filter: " + incorrectFilter);
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index aec6aa6..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch
-//==== LABEL Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, incorrectChangeListener, exceptionName, i, conversionTable;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        conversionTable = getTypeConversionExceptions("object", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectChangeListener  = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-                function () {
-                    service.messageStorage.addMessagesChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");
-        }
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html
deleted file mode 100755 (executable)
index d225147..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb
-//==== LABEL Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTL
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, incorrectListeners, incorrectChangeListener, exceptionName, i;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        incorrectListeners = getListenerConversionExceptions(["messagesadded", "messagesupdated", "messagesremoved"]);
-
-        for(i = 0; i < incorrectListeners.length; i++) {
-            incorrectChangeListener = incorrectListeners[i][0];
-            exceptionName = incorrectListeners[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    service.messageStorage.addMessagesChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener.");
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_missarg.html
deleted file mode 100755 (executable)
index d2820f4..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addMessagesChangeListener_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addMessagesChangeListener_missarg
-//==== LABEL Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (email)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, exceptionName = "TypeMismatchError";
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_throws({name: exceptionName},
-            function () {
-                service.messageStorage.addMessagesChangeListener();
-            }, exceptionName + " should be thrown - missing argument.");
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_with_filter.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_with_filter.html
deleted file mode 100755 (executable)
index 6214278..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addMessagesChangeListener_with_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addMessagesChangeListener_with_filter
-//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly with filter (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MOA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), changeCallback, addDraftError,
-    service, serviceSuccess, serviceError, mismatchMessage, matchMessage, filter, listenerID;
-
-t.step(function () {
-    //cleanup after TC
-    add_result_callback(function () {
-        try {
-            service.messageStorage.removeChangeListener(listenerID);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_type(addedMessages, "array", "Not an array.");
-            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);
-            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");
-            assert_equals(addedMessages[0].subject, matchMessage.subject, "Incorrect subject.");
-            assert_equals(addedMessages[0].id, matchMessage.id, "Incorrect id.");
-            t.done();
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_unreached("memssagesupdated callback invoked.");
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_unreached("messagesremoved callback invoked.");
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        mismatchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        matchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        filter = new tizen.AttributeFilter("subject", "EXACTLY", matchMessage.subject);
-
-        listenerID = service.messageStorage.addMessagesChangeListener(changeCallback, filter);
-        assert_type(listenerID, "long", "Incorrect returned value.");
-
-        service.messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);
-        service.messageStorage.addDraftMessage(matchMessage, null, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_without_filter.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_without_filter.html
deleted file mode 100755 (executable)
index bd29567..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addMessagesChangeListener_without_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addMessagesChangeListener_without_filter
-//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly without filter (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MMINA MAST
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), i,
-    serviceSuccess, serviceError, service, message, listenerId, addDraftError, changeCallback;
-
-t.step(function () {
-    //cleanup after TC
-    add_result_callback(function () {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_type(addedMessages, "array", "Not an array.");
-            assert_greater_than(addedMessages.length, 0, "Received empty messages array");
-
-            for (i = 0; i < addedMessages.length; i++) {
-                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");
-
-                if (addedMessages[0].id === message.id) {
-                    assert_equals(addedMessages[i].subject, message.subject, "Incorrect subject.");
-                    t.done();
-                    break;
-                }
-            }
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_unreached("memssagesupdated callback invoked.");
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_unreached("messagesremoved callback invoked.");
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        listenerId = service.messageStorage.addMessagesChangeListener(changeCallback);
-        assert_type(listenerId, "long", "Incorrect returned value.");
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, null, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_extend.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_extend.html
deleted file mode 100755 (executable)
index d71899b..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_extend
-//==== PRIORITY P3
-//==== LABEL Check if instance of interface MessageStorage (email) can be extended with new property
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA OBX
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        check_extensibility(service.messageStorage);
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 34459a6..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findConversations_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findConversations_errorCallback_TypeMismatch
-//==== LABEL Check errorCallback argument of findConversations will be throw exception with invalid argument type
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, getMessagingServicesCallback,
-    onError, i, incorrectCallback, conversionTable, exceptionName;
-
-t.step(function () {
-
-    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);
-
-    findConversationsCallback = t.step_func(function () {
-        assert_unreached("Unexpected findConversationsCallback");
-    });
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_true(services.length > 0, "services not found");
-
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({
-                name: exceptionName
-            }, function () {
-                services[0].messageStorage.findConversations(toFilter, findConversationsCallback, incorrectCallback);
-            });
-        }
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 015510d..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findConversations_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_email_findConversations_errorCallback_invalid_cb
-//==== LABEL Check if MessageStorage::findConversations method throws exception when errorCallback is invalid (email)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback,
-    getMessagingServicesCallback, onError, invalidCallback;
-
-t.step(function () {
-
-    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);
-
-    findConversationsCallback = t.step_func(function () {
-        assert_unreached("Unexpected findConversationsCallback");
-    });
-
-    invalidCallback = {
-        onerror: t.step_func(function () {
-            assert_unreached("Invalid errorCallback invoked");
-        })
-    };
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_true(services.length > 0, "services not found");
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            services[0].messageStorage.findConversations(toFilter, findConversationsCallback, invalidCallback);
-        });
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_exist.html
deleted file mode 100755 (executable)
index 4ae1648..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findConversations_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findConversations_exist
-//==== LABEL Check if method findConversations of MessageStorage (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("findConversations" in service.messageStorage, "No findConversations method in messageStorage");
-        check_method_exists(service.messageStorage, "findConversations");
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_TypeMismatch.html
deleted file mode 100755 (executable)
index 8b8a77a..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findConversations_filter_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findConversations_filter_TypeMismatch
-//==== LABEL Check type conversions for filter argument of MessageStorage::findConversations method (email)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, errorCallback, getMessagingServicesCallback,
-    onError, i, incorrectFilter, conversionTable, exceptionName;
-
-t.step(function () {
-
-    findConversationsCallback = t.step_func(function () {
-        assert_unreached("Unexpected findConversationsCallback");
-    });
-
-    errorCallback = t.step_func(function (err) {
-        assert_unreached("Unexpected errorCallback: " + err.message);
-    });
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_not_equals(services.length, 0, "getMessageServices services.length");
-
-        conversionTable = getTypeConversionExceptions("object", false);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            incorrectFilter = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-                services[0].messageStorage.findConversations(incorrectFilter, findConversationsCallback, errorCallback);
-            });
-        }
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_from.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_from.html
deleted file mode 100755 (executable)
index 4da830c..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Piotr Szydelko <p.szydelko@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_email_findConversations_filter_from</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_email_findConversations_filter_from
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter by from (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, filter, i,
-    sendSuccess, sendError, syncSuccess, syncError, findSuccess, findError;
-
-t.step(function () {
-    findSuccess = t.step_func(function (conversations) {
-        if (conversations.length > 0) {
-            for (i = 0; i < conversations.length; i++) {
-                assert_equals(conversations[i].from, TEST_EMAIL_RECIPIENT_1, "from should match");
-            }
-
-            t.done();
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("from", "EXACTLY", TEST_EMAIL_RECIPIENT_1),
-        service.messageStorage.findConversations(filter, findSuccess, findError);
-    });
-
-    syncError = t.step_func(function (error) {
-        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        sync(t, service, syncSuccess, syncError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_invalid_obj.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_invalid_obj.html
deleted file mode 100755 (executable)
index bd3bfa3..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
--->
-<html>
-<head>
-<title>MessageStorage_email_findConversations_filter_invalid_obj</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findConversations_filter_invalid_obj
-//==== LABEL Check if MessageStorage::findConversations method throws exception when filter is invalid (email)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTO
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, errorCallback, getMessagingServicesCallback,
-    onError, invalidFilter;
-
-t.step(function () {
-
-    findConversationsCallback = t.step_func(function () {
-        assert_unreached("Unexpected findConversationsCallback");
-    });
-
-    errorCallback = t.step_func(function (err) {
-        assert_unreached("Unexpected errorCallback: " + err.message);
-    });
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_not_equals(services.length, 0, "getMessageServices services.length");
-
-        invalidFilter = {
-            attributeName: "type",
-            matchFlag: "EXACTLY",
-            matchValue: services[0].type
-        };
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            services[0].messageStorage.findConversations(invalidFilter, findConversationsCallback, errorCallback);
-        });
-
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_to.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_to.html
deleted file mode 100755 (executable)
index 703897e..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findConversations_filter_to</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_email_findConversations_filter_to
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter by to (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, i,
-    addDraftSuccess, addDraftError, filter, findSuccess, findError;
-
-t.step(function () {
-    findSuccess = t.step_func(function (conversations) {
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-
-        for (i = 0; i < conversations.length; i++) {
-            assert_array_equals(conversations[i].to, [TEST_EMAIL_RECIPIENT_2], "to should match");
-        }
-
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function ()
-    {
-        filter = new tizen.AttributeFilter("to", "EXACTLY", TEST_EMAIL_RECIPIENT_2);
-        service.messageStorage.findConversations(filter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_type.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_type.html
deleted file mode 100755 (executable)
index 2ef4b9f..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_email_findConversations_filter_type</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_email_findConversations_filter_type
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter by type (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    findConversationsSuccess, findConversationsError, serviceSuccess, serviceError,
-    service, filter, i, addDraftSuccess, addDraftError, message;
-
-t.step(function () {
-    findConversationsSuccess = t.step_func(function (conversations) {
-        assert_greater_than(conversations.length, 0, "Received empty services array");
-        for (i = 0; i < conversations.length; i++) {
-            assert_equals(conversations[i].type, filter.matchValue, "type should match");
-        }
-        t.done();
-    });
-
-    findConversationsError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);
-        service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_missarg.html
deleted file mode 100755 (executable)
index 35c5ee0..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findConversations_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findConversations_missarg
-//==== LABEL Check with missing non-optional argument - MessageStorage::findConversations (email)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMA
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess;
-
-t.step(function () {
-
-    onSuccess = t.step_func(function (services) {
-        assert_type(services, "array", "type of services is not Array");
-        if (services.length > 0) {
-            service = services[0];
-            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-                service.messageStorage.findConversations();
-            });
-        } else {
-            assert_unreached("list of services is empty");
-        }
-        t.done();
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", onSuccess);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_TypeMismatch.html
deleted file mode 100755 (executable)
index cb9dee2..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findConversations_sort_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findConversations_sort_TypeMismatch
-//==== LABEL Check type conversions for sort argument of MessageStorage::findConversations method (email)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback,
-    onError, i, incorrectSort, conversionTable, exceptionName;
-
-t.step(function () {
-
-    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);
-
-    findConversationsCallback = t.step_func(function () {
-        assert_unreached("Unexpected findConversationsCallback");
-    });
-
-    errorCallback = t.step_func(function (err) {
-        assert_unreached("Unexpected errorCallback: " + err.message);
-    });
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_true(services.length > 0, "services not found");
-        conversionTable = getTypeConversionExceptions("object", true);
-        for (i = 0; i < conversionTable.length; i++) {
-            incorrectSort = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-                services[0].messageStorage.findConversations(toFilter, findConversationsCallback, errorCallback, incorrectSort);
-            });
-        }
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_invalid_obj.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_invalid_obj.html
deleted file mode 100755 (executable)
index c8f3aa5..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findConversations_sort_invalid_obj</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findConversations_sort_invalid_obj
-//==== LABEL Check if MessageStorage::findConversations method throws exception when sort is invalid (email)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTO
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback,
-    onError, invalidSort;
-
-t.step(function () {
-
-    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);
-
-    findConversationsCallback = t.step_func(function () {
-        assert_unreached("Unexpected findConversationsCallback");
-    });
-
-    errorCallback = t.step_func(function (err) {
-        assert_unreached("Unexpected errorCallback: " + err.message);
-    });
-
-    invalidSort = {
-        attributeName: "id",
-        order: "ASC"
-    };
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_true(services.length > 0, "services not found");
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            services[0].messageStorage.findConversations(toFilter, findConversationsCallback, errorCallback, invalidSort);
-        });
-
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 805bca4..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findConversations_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findConversations_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageStorage::findConversations method (email)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), toFilter, errorCallback, getMessagingServicesCallback,
-    onError, i, incorrectCallback, conversionTable, exceptionName;
-
-t.step(function () {
-
-    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);
-
-    errorCallback = t.step_func(function (err) {
-        assert_unreached("Unexpected errorCallback: " + err.message);
-    });
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_true(services.length > 0, "services not found");
-
-        conversionTable = getTypeConversionExceptions("functionObject", false);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-                services[0].messageStorage.findConversations(toFilter, incorrectCallback, errorCallback);
-            });
-        }
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 1dfe3ef..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findConversations_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findConversations_successCallback_invalid_cb
-//==== LABEL Check if MessageStorage::findConversations method throws exception when successCallback is invalid (email)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), toFilter, errorCallback, getMessagingServicesCallback,
-    onError, invalidCallback;
-
-t.step(function () {
-
-    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);
-
-    errorCallback = t.step_func(function (err) {
-        assert_unreached("Unexpected errorCallback: " + err.message);
-    });
-
-    invalidCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("Unexpected onsuccess");
-        })
-    };
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_true(services.length > 0, "services not found");
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            services[0].messageStorage.findConversations(toFilter, invalidCallback, errorCallback);
-        });
-
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_offset.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_offset.html
deleted file mode 100755 (executable)
index a739d86..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findConversations_with_offset</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findConversations_with_offset
-//==== LABEL Check if MessageStorage::findConversations method works properly with all optional argument (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MOA
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    service, serviceSuccess, serviceError, message1, message2,
-    filter, sortMode, addDraftSuccess, addDraftError, addDraftSuccessCount = 0,
-    findConversationsSuccess, findConversationsError, limit, offset;
-
-t.step(function () {
-    findConversationsSuccess = t.step_func(function (conversations) {
-        assert_greater_than_equal(conversations.length, 2, "Need at least 2 conversations");
-        assert_true(conversations[0].timestamp <= conversations[1].timestamp, "correct order");
-        t.done();
-    });
-
-    findConversationsError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCount++;
-        if (addDraftSuccessCount === 2) {
-            filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);
-            sortMode = new tizen.SortMode("timestamp", "ASC");
-            limit = 10;
-            offset = 2;
-            service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError, sortMode, limit, offset);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message1 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        message2 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message1, addDraftSuccess, addDraftError);
-        service.messageStorage.addDraftMessage(message2, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort.html
deleted file mode 100755 (executable)
index 87aea7b..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Piotr Szydelko <p.szydelko@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_email_findConversations_with_sort</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_email_findConversations_with_sort
-//==== LABEL Check if MessageStorage.findConversations method works properly with sort (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    service, serviceSuccess, serviceError, message1, message2,
-    filter, sortMode, addDraftSuccess, addDraftError, addDraftSuccessCount = 0,
-    findConversationsSuccess, findConversationsError;
-
-t.step(function () {
-    findConversationsSuccess = t.step_func(function (conversations) {
-        assert_greater_than_equal(conversations.length, 2, "Need at least 2 conversations");
-        assert_true(conversations[0].timestamp <= conversations[1].timestamp, "correct order");
-        t.done();
-    });
-
-    findConversationsError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCount++;
-        if (addDraftSuccessCount === 2) {
-            filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);
-            sortMode = new tizen.SortMode("timestamp", "ASC");
-            service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError, sortMode);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message1 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        message2 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message1, addDraftSuccess, addDraftError);
-        service.messageStorage.addDraftMessage(message2, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort_time_desc.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort_time_desc.html
deleted file mode 100755 (executable)
index 7d9bd8d..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_email_findConversations_with_sort_time_desc</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: MessageStorage_email_findConversations_with_sort_time_desc
-//==== LABEL Check if MessageStorage.findConversations method works properly with sort by time descending (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message1, message2,
-    addDraftSuccess, addDraftError, addDraftSuccessCount=0,
-    filter, sortMode, findConversationsSuccess, findConversationsError;
-
-t.step(function () {
-    findConversationsSuccess = t.step_func(function (conversations) {
-        assert_greater_than_equal(conversations.length, 2, "Need at least 2 conversations");
-        assert_true(conversations[0].timestamp >= conversations[1].timestamp, "correct order");
-        t.done();
-    });
-
-    findConversationsError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCount++;
-        if (addDraftSuccessCount === 2) {
-            filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);
-            sortMode = new tizen.SortMode("timestamp", "DESC");
-            service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError, sortMode);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message1 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        message2 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message1, addDraftSuccess, addDraftError);
-        service.messageStorage.addDraftMessage(message2, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_without_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_without_errorCallback.html
deleted file mode 100755 (executable)
index 1b9fc15..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_email_findConversations_without_errorCallback</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_email_findConversations_without_errorCallback
-//==== LABEL Check if MessageStorage.findConversations method works properly without errorCallback argument (email)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), i,
-    serviceSuccess, serviceError, service, message, filter, addDraftError, findConversationsSuccess;
-
-t.step(function () {
-    findConversationsSuccess = t.step_func(function (conversations) {
-        assert_type(conversations, "array", "Not an array");
-        assert_greater_than(conversations.length, 0, "Received empty messages array");
-
-        for (i = 0; i < conversations.length; i++) {
-            assert_equals(conversations[i].type, service.type, "Incorrect service type");
-        }
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        service.messageStorage.addDraftMessage(message, null, addDraftError);
-
-        filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);
-        service.messageStorage.findConversations(filter, findConversationsSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findFolders_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findFolders_exist.html
deleted file mode 100755 (executable)
index bd16913..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findFolders_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findFolders_exist
-//==== LABEL Check if method findFolders of MessageStorage (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("findFolders" in service.messageStorage, "No findFolders method in messageStorage");
-        check_method_exists(service.messageStorage, "findFolders");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages.html
deleted file mode 100755 (executable)
index f920362..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages
-//==== LABEL Check if MessageStorage.findMessages method works properly (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, service, message,
-    addDraftSuccess, addDraftError, filter, findSuccess;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_draft_message_equals(t, messages, message);
-        t.done();
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(filter, findSuccess);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_and_loadMessageBody.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_and_loadMessageBody.html
deleted file mode 100755 (executable)
index f6ecee8..0000000
+++ /dev/null
@@ -1,154 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_and_loadMessageBody</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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: MessageStorage_email_findMessages_and_loadMessageBody
-//==== LABEL Check if MessageStorage.findMessages and MessageStorage.loadMessageBody methods work properly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,
-    filter, findSuccess, i, loadMessageSuccess, loadMessageError;
-
-t.step(function () {
-    loadMessageSuccess = t.step_func(function (msg) {
-        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
-        assert_equals(msg.id, message.id, "Id is not equal");
-        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");
-        assert_equals(msg.conversationId, message.conversationId, "conversationId is not equal");
-        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");
-        assert_equals(msg.folderId, message.folderId, "folderId is not equal");
-        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");
-        assert_equals(msg.type, message.type, "type is not equal");
-        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");
-        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");
-        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");
-        assert_equals(msg.from, message.from, "from is not equal");
-        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");
-        assert_array_equals(msg.to, message.to, "to is not equal");
-        assert_array_equals(msg.cc, message.cc, "to is not equal");
-        assert_array_equals(msg.bcc, message.bcc, "to is not equal");
-        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");
-        assert_equals(msg.body.messageId, message.body.messageId, "body.messageId is not equal");
-        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");
-        assert_equals(msg.body.loaded, message.body.loaded, "loaded is not equal");
-        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");
-        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");
-        assert_own_property(msg.body, "htmlBody", "Name htmlBody doesn't exist in provided object.");
-        assert_equals(msg.body.htmlBody, message.body.htmlBody, "htmlBody is not equal");
-        assert_own_property(msg.body, "inlineAttachments", "Name inlineAttachments doesn't exist in provided object.");
-        for (i = 0; i < msg.body.inlineAttachments.length; i++) {
-            assert_true(msg.body.inlineAttachments[i] instanceof tizen.MessageAttachment, "wrong attachment object");
-            assert_equals(msg.body.inlineAttachments[i].id, message.body.inlineAttachments[i].id, "attachments.id is not equal");
-            assert_equals(msg.body.inlineAttachments[i].messageId, message.body.inlineAttachments[i].messageId, "attachments.messageId is not equal");
-            assert_equals(msg.body.inlineAttachments[i].mimeType, message.body.inlineAttachments[i].mimeType, "attachments.mimeType is not equal");
-        }
-        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");
-        assert_equals(msg.isRead, message.isRead, "isRead is not equal");
-        assert_own_property(msg, "hasAttachment", "Name hasAttachment doesn't exist in provided object.");
-        assert_equals(msg.hasAttachment, message.hasAttachment, "hasAttachment is not equal");
-        assert_own_property(msg, "isHighPriority", "Name isHighPriority doesn't exist in provided object.");
-        assert_equals(msg.isHighPriority, message.isHighPriority, "isHighPriority is not equal");
-        assert_own_property(msg, "subject", "Name subject doesn't exist in provided object.");
-        assert_equals(msg.subject, message.subject, "subject is not equal");
-        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");
-        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");
-        assert_own_property(msg, "messageStatus", "Name messageStatus doesn't exist in provided object.");
-        assert_equals(msg.messageStatus, message.messageStatus, "messageStatus is not equal");
-        for(i = 0; i < msg.attachments.length; i++){
-            assert_true(msg.attachments[i] instanceof tizen.MessageAttachment, "wrong attachment object");
-            assert_equals(msg.attachments[i].id, message.attachments[i].id, "attachments.id is not equal");
-            assert_equals(msg.attachments[i].messageId, message.attachments[i].messageId, "attachments.messageId is not equal");
-            assert_equals(msg.attachments[i].mimeType, message.attachments[i].mimeType, "attachments.mimeType is not equal");
-        }
-        t.done();
-    });
-
-    loadMessageError = t.step_func(function (error) {
-        assert_unreached("loadMessageError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccess = t.step_func(function (messages) {
-        assert_draft_message_equals(t, messages, message);
-        service.loadMessageBody(messages[0], loadMessageSuccess, loadMessageError);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(filter, findSuccess);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = new tizen.Message("messaging.email", {
-            subject: generateSubject(),
-            to: [TEST_EMAIL_RECIPIENT_2],
-            cc: [TEST_EMAIL_RECIPIENT_1],
-            bcc: [TEST_EMAIL_RECIPIENT_1],
-            plainBody: MESSAGE_BODY_PLAIN,
-            htmlBody: MESSAGE_BODY_HTML,
-            isHighPriority: false
-        });
-
-        message.attachments = [
-            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)
-        ];
-
-        message.body.inlineAttachments = [
-            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE)
-        ];
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-}, "MessageStorage_email_findMessages");
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_bcc_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_bcc_with_errorCallback.html
deleted file mode 100755 (executable)
index dc2fb5b..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_email_findMessages_bcc_with_errorCallback</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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: MessageStorage_email_findMessages_bcc_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly for filter by bcc (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, filter, messageFound = false,
-    addDraftSuccess, addDraftError, findSuccess, findError, i;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_type(messages, "array", "Not an array");
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-
-        for (i = 0; i < messages.length; i++) {
-            assert_true(messages[i] instanceof tizen.Message, "Not a Message");
-            assert_in_array(TEST_EMAIL_RECIPIENT_1, messages[i].bcc, "bcc not found");
-
-            if (messages[i].id === message.id) {
-                messageFound = true;
-            }
-        }
-
-        assert_true(messageFound, "expected message wasn't found");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("bcc", "EXACTLY", TEST_EMAIL_RECIPIENT_1);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        message.bcc = [TEST_EMAIL_RECIPIENT_1];
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_cc_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_cc_with_errorCallback.html
deleted file mode 100755 (executable)
index badd5fb..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_cc_with_errorCallback</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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: MessageStorage_email_findMessages_cc_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly for filter by cc (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, filter, messageFound = false,
-    addDraftSuccess, addDraftError, findSuccess, findError, i;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_type(messages, "array", "Not an array");
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-
-        for (i = 0; i < messages.length; i++) {
-            assert_true(messages[i] instanceof tizen.Message, "Not a Message");
-            assert_in_array(TEST_EMAIL_RECIPIENT_1, messages[i].cc, "cc not found");
-
-            if (messages[i].id === message.id) {
-                messageFound = true;
-            }
-        }
-
-        assert_true(messageFound, "expected message wasn't found");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("cc", "EXACTLY", TEST_EMAIL_RECIPIENT_1);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        message.cc = [TEST_EMAIL_RECIPIENT_1];
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index a40464b..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageStorage::findMessages method (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,
-    incorrectCallback, findSuccessCB;
-
-t.step(function () {
-
-    findSuccessCB = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-        for (i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.findMessages(filter, findSuccessCB, incorrectCallback);
-                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectCallback);
-        }
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        message = new tizen.Message("messaging.email", {
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: "abd"
-        });
-
-        assert_true(services.length > 0, "No services was return");
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 59e0c1f..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_errorCallback_invalid_cb
-//==== LABEL Check if MessageStorage::findMessages method throws exception when errorCallback is invalid (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB, filter,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, incorrectCallback, findSuccessCB;
-
-t.step(function () {
-
-    incorrectCallback = {
-        onerror: t.step_func(function () {
-            assert_unreached("unexpeted addDraftMessage() error callback invoked.");
-        })
-    };
-
-    findSuccessCB = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            messageStorage.findMessages(filter, findSuccessCB, incorrectCallback);
-        });
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.email", {
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: "abd"
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_exist.html
deleted file mode 100755 (executable)
index 141fd46..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_exist
-//==== LABEL Check if method findMessages of MessageStorage (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("findMessages" in service.messageStorage, "No findMessages method in messageStorage");
-        check_method_exists(service.messageStorage, "findMessages");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_TypeMismatch.html
deleted file mode 100755 (executable)
index ef02a29..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_filter_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_filter_TypeMismatch
-//==== LABEL Check type conversions for filter argument of MessageStorage::findMessages method (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, incorrectFilter, conversionTable,
-    i, exceptionName, findSuccessCB, findErrorCB;
-
-t.step(function () {
-
-    findSuccessCB = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        conversionTable = getTypeConversionExceptions("object", false);
-        for (i = 0; i < conversionTable.length; i++) {
-            incorrectFilter = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.findMessages(incorrectFilter, findSuccessCB, findErrorCB);
-                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectFilter);
-        }
-
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.email", {
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: "abd"
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_invalid_obj.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_invalid_obj.html
deleted file mode 100755 (executable)
index 37aa9f0..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_filter_invalid_obj</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_filter_invalid_obj
-//==== LABEL Check if MessageStorage::findMessages method throws exception when filter is invalid (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, invalidFilter, findSuccessCB, findErrorCB;
-
-t.step(function () {
-
-    findSuccessCB = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            messageStorage.findMessages(invalidFilter, findSuccessCB, findErrorCB);
-        });
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.email", {
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: "abd"
-        });
-
-        invalidFilter = {
-            attributeName: "type",
-            matchFlag: "EXACTLY",
-            matchValue: services[0].type
-        };
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_folderId_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_folderId_with_errorCallback.html
deleted file mode 100755 (executable)
index 8c14249..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_folderId_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_folderId_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly for filter by folderId (email)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, filter, messageFound = false,
-    addDraftSuccess, addDraftError, findSuccess, findError, i;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_type(messages, "array", "Not an array");
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-
-        for (i = 0; i < messages.length; i++) {
-            assert_true(messages[i] instanceof tizen.Message, "Not a Message");
-            assert_equals(messages[i].folderId, message.folderId, "returned folderId is not equal");
-
-            if (messages[i].id === message.id) {
-                messageFound = true;
-            }
-        }
-
-        assert_true(messageFound, "expected message wasn't found");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("folderId", "EXACTLY", message.folderId);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html
deleted file mode 100755 (executable)
index 47e9e7b..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_from_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_from_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly for filter by from (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, sendSuccess, sendError, syncSuccess, syncError,
-    filter, findSuccess, findError, i;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        if (messages.length > 0) {
-            assert_type(messages, "array", "Not an array");
-            for (i = 0; i < messages.length; i++) {
-                assert_true(messages[i] instanceof tizen.Message, "Not a Message");
-                assert_equals(messages[i].from, TEST_EMAIL_RECIPIENT_1, "returned from is not equal");
-            }
-
-            t.done();
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("from", "EXACTLY", TEST_EMAIL_RECIPIENT_1);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    syncError = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        sync(t, service, syncSuccess, syncError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html
deleted file mode 100755 (executable)
index 2687ee8..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_hasAttachment_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_hasAttachment_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly for filter by hasAttachment (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, filter, messageFound = false,
-    addDraftSuccess, addDraftError, findSuccess, findError, i;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_type(messages, "array", "Not an array");
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-
-        for (i = 0; i < messages.length; i++) {
-            assert_true(messages[i] instanceof tizen.Message, "Not a Message");
-            assert_equals(messages[i].hasAttachment, true, "returned hasAttachment is not equal to true");
-
-            if (messages[i].id === message.id) {
-                messageFound = true;
-            }
-        }
-
-        assert_true(messageFound, "expected message wasn't found");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("hasAttachment", "EXACTLY", true);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)];
-
-        assert_true(message.hasAttachment, "Attachment not found");
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_id_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_id_with_errorCallback.html
deleted file mode 100755 (executable)
index b7d46f8..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_id_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_id_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly for filter by id (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, filter,
-    addDraftSuccess, addDraftError, findSuccess, findError;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_draft_message_equals(t, messages, message);
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html
deleted file mode 100755 (executable)
index cc56d32..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_isHighPriority_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_isHighPriority_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly for filter by isHighPriority (email)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, filter, messageFound = false,
-    addDraftSuccess, addDraftError, findSuccess, findError, i;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_type(messages, "array", "Not an array");
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-
-        for (i = 0; i < messages.length; i++) {
-            assert_true(messages[i] instanceof tizen.Message, "Not a Message");
-            assert_equals(messages[i].isHighPriority, true, "returned isHighPriority is not equal to true");
-
-            if (messages[i].id === message.id) {
-                messageFound = true;
-            }
-        }
-
-        assert_true(messageFound, "expected message wasn't found");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("isHighPriority", "EXACTLY", true);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        message.isHighPriority = true;
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isRead_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isRead_with_errorCallback.html
deleted file mode 100755 (executable)
index e392909..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_isRead_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_isRead_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly for filter by isRead (email)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, filter, messageFound = false, inboxMessageId,
-    sendSuccess, sendError, syncSuccess, syncError, findFoldersSuccess, findFoldersError,
-    findInboxMessageSuccess, findInboxMessageError, updateSuccess, updateError,
-    findUpdatedMessagesSuccess, findUpdatedMessagesError, inboxFolder, i;
-
-t.step(function () {
-    findUpdatedMessagesSuccess = t.step_func(function (messages) {
-        assert_type(messages, "array", "Not an array");
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-
-        for (i = 0; i < messages.length; i++) {
-            assert_true(messages[i] instanceof tizen.Message, "Not a Message");
-            assert_equals(messages[i].isRead, true, "returned isRead is not equal to true");
-
-            if (messages[i].id === inboxMessageId) {
-                messageFound = true;
-            }
-        }
-
-        assert_true(messageFound, "expected message wasn't found");
-        t.done();
-    });
-
-    findUpdatedMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    updateSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("isRead", "EXACTLY", true);
-        service.messageStorage.findMessages(filter, findUpdatedMessagesSuccess, findUpdatedMessagesError);
-    });
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findInboxMessageSuccess = t.step_func(function (messages) {
-        if (messages.length > 0) {
-            assert_equals(messages.length, 1, "Found incorrect number of messages");
-            assert_equals(messages[0].subject, message.subject, "Incorrect subject.");
-            assert_equals(messages[0].folderId, inboxFolder.id, "Incorrect folderId.");
-
-            messages[0].isRead = true;
-            inboxMessageId = messages[0].id;
-
-            service.messageStorage.updateMessages(messages, updateSuccess, updateError);
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findInboxMessageError = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findFoldersSuccess = t.step_func(function (folders) {
-        inboxFolder = getInboxFolder(t, folders);
-        findMessages(t, service, inboxFolder, message.subject, findInboxMessageSuccess, findInboxMessageError);
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncSuccess = t.step_func(function () {
-        findFolders(t, service, findFoldersSuccess, findFoldersError);
-    });
-
-    syncError = t.step_func(function (error) {
-        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        sync(t, service, syncSuccess, syncError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_missarg.html
deleted file mode 100755 (executable)
index dbecb0f..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_missarg
-//==== LABEL Check without arguments - MessageStorage::findMessages
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMA
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB;
-
-t.step(function () {
-
-    addDraftSuccessCB = t.step_func(function () {
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            messageStorage.findMessages();
-        }, "TypeMismatchError should be thrown - no argument given");
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.email", {
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: "abd"
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_plainBody_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_plainBody_with_errorCallback.html
deleted file mode 100755 (executable)
index 7203661..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_plainBody_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_plainBody_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly for filter by plainBody (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, service, message, addDraftSuccess,
-    addDraftError, filter, findSuccess, findError, loadMessageBodySuccess, loadMessageBodyError, i;
-
-t.step(function () {
-
-    loadMessageBodySuccess = t.step_func(function (loadedMessage) {
-        assert_true(loadedMessage instanceof tizen.Message, "Not a Message");
-        assert_equals(loadedMessage.body.plainBody, message.body.plainBody, "plainBody is not equal to the expected");
-        t.done();
-    });
-
-    loadMessageBodyError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccess = t.step_func(function (messages) {
-        assert_type(messages, "array", "Not an array");
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-
-        for (i = 0; i < messages.length; i++) {
-            assert_true(messages[i] instanceof tizen.Message, "Not a Message");
-            if (messages[i].id === message.id) {
-                service.loadMessageBody(messages[i], loadMessageBodySuccess, loadMessageBodyError);
-                break;
-            }
-        }
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("body.plainBody", "EXACTLY", message.body.plainBody);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_serviceId_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_serviceId_with_errorCallback.html
deleted file mode 100755 (executable)
index cef2116..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_serviceId_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_serviceId_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly for filter by serviceId (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, filter, messageFound = false,
-    addDraftSuccess, addDraftError, findSuccess, findError, i;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_type(messages, "array", "Not an array");
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-
-        for (i = 0; i < messages.length; i++) {
-            assert_true(messages[i] instanceof tizen.Message, "Not a Message");
-            assert_equals(messages[i].type, service.type, "Invalid service type");
-
-            if (messages[i].id === message.id) {
-                messageFound = true;
-            }
-        }
-
-        assert_true(messageFound, "expected message wasn't found");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_TypeMismatch.html
deleted file mode 100755 (executable)
index 814209a..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_sort_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_sort_TypeMismatch
-//==== LABEL Check type conversions for sort argument of MessageStorage::findMessages method (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,
-    incorrect, findSuccessCB, findErrorCB;
-
-t.step(function () {
-
-    findSuccessCB = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        conversionTable = getTypeConversionExceptions("object", true);
-        for (i = 0; i < conversionTable.length; i++) {
-            incorrect = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.findMessages(filter, findSuccessCB, findErrorCB, incorrect);
-                }, exceptionName + " should be thrown - given incorrect sort mode: " + incorrect);
-        }
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        message = new tizen.Message("messaging.email", {
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: "abd"
-        });
-
-        assert_true(services.length > 0, "No services was return");
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_invalid_obj.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_invalid_obj.html
deleted file mode 100755 (executable)
index ef85188..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_sort_invalid_obj</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_sort_invalid_obj
-//==== LABEL Check if MessageStorage::findMessages method throws exception when sort is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTO
-//==== ONLOAD_DELAY 90
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB, incorrectMode,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB;
-
-t.step(function () {
-
-    incorrectMode = {
-        attributeName: "id",
-        order: "ASC"
-    };
-
-    findSuccessCB = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            messageStorage.findMessages(filter, findSuccessCB, findErrorCB, incorrectMode);
-        });
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.email", {
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: "abd"
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index ae331e7..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageStorage::findMessages method (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,
-    incorrectCallback, findErrorCB;
-
-t.step(function () {
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        conversionTable = getTypeConversionExceptions("functionObject", false);
-        for (i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.findMessages(filter, incorrectCallback, findErrorCB);
-                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectCallback);
-        }
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        message = new tizen.Message("messaging.email", {
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: "abd"
-        });
-
-        assert_true(services.length > 0, "No services was return");
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index f150544..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_successCallback_invalid_cb
-//==== LABEL Check if MessageStorage::findMessages method throws exception when successCallback is invalid (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB, filter,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, incorrectCallback, findErrorCB;
-
-t.step(function () {
-
-    incorrectCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("addDraftMessage() success callback invoked.");
-        })
-    };
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            messageStorage.findMessages(filter, incorrectCallback, findErrorCB);
-        });
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.email", {
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: "abd"
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_timestamp_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_timestamp_with_errorCallback.html
deleted file mode 100755 (executable)
index 6ac4b0a..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_timestamp_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_timestamp_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly for filter by timestamp (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), i,
-    serviceSuccess, serviceError, service, message, filter, messageFound = false,
-    addDraftSuccess, addDraftError, findSuccess, findError, timeRange = 300000;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_type(messages, "array", "Not an array");
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-
-        for (i = 0; i < messages.length; i++) {
-            assert_true(messages[i] instanceof tizen.Message, "Not a Message");
-
-            if (messages[i].id === message.id) {
-                assert_equals(messages[i].timestamp.getTime(), message.timestamp.getTime(), "returned timestamp is not equal to the expected");
-                messageFound = true;
-            }
-        }
-
-        assert_true(messageFound, "expected message wasn't found");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeRangeFilter("timestamp",
-            new Date(message.timestamp.getTime()-timeRange), new Date(message.timestamp.getTime()+timeRange));
-
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_to_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_to_with_errorCallback.html
deleted file mode 100755 (executable)
index 4bd6d74..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_to_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_to_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly for filter by to (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, filter, messageFound = false,
-    addDraftSuccess, addDraftError, findSuccess, findError, i;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_type(messages, "array", "Not an array");
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-
-        for (i = 0; i < messages.length; i++) {
-            assert_true(messages[i] instanceof tizen.Message, "Not a Message");
-            assert_in_array(TEST_EMAIL_RECIPIENT_2, messages[i].to, "to not found");
-
-            if (messages[i].id === message.id) {
-                messageFound = true;
-            }
-        }
-
-        assert_true(messageFound, "expected message wasn't found");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("to", "EXACTLY", TEST_EMAIL_RECIPIENT_2);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_type_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_type_with_errorCallback.html
deleted file mode 100755 (executable)
index fc7c921..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_type_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_type_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly for filter by type (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, filter, messageFound = false,
-    addDraftSuccess, addDraftError, findSuccess, findError, i;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_type(messages, "array", "Not an array");
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-
-        for (i = 0; i < messages.length; i++) {
-            assert_true(messages[i] instanceof tizen.Message, "Not a Message");
-            assert_equals(messages[i].type, message.type, "returned type is not equal");
-
-            if (messages[i].id === message.id) {
-                messageFound = true;
-            }
-        }
-
-        assert_true(messageFound, "expected message wasn't found");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("type", "EXACTLY", message.type);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_with_offset.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_with_offset.html
deleted file mode 100755 (executable)
index cc2f84a..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_findMessages_with_offset</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_findMessages_with_offset
-//==== LABEL Check if MessageStorage::findMessages method works properly with all optional argument (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MOA
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, filter, messageFound = false,
-    addDraftSuccess, addDraftError, findSuccess, findError, i, sortMode, limit, offset;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_type(messages, "array", "Not an array");
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-
-        for (i = 0; i < messages.length; i++) {
-            assert_true(messages[i] instanceof tizen.Message, "Not a Message");
-            assert_in_array(TEST_EMAIL_RECIPIENT_1, messages[i].cc, "cc not found");
-
-            if (messages[i].id === message.id) {
-                messageFound = true;
-            }
-        }
-
-        assert_true(messageFound, "expected message was not found");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("cc", "EXACTLY", TEST_EMAIL_RECIPIENT_1);
-        sortMode = new tizen.SortMode("timestamp", "ASC");
-        limit = 0;
-        offset = 0;
-        service.messageStorage.findMessages(filter, findSuccess, findError, sortMode, limit, offset);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        message.cc = [TEST_EMAIL_RECIPIENT_1];
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeChangeListener_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeChangeListener_exist.html
deleted file mode 100755 (executable)
index a5af2b2..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_removeChangeListener_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_removeChangeListener_exist
-//==== LABEL Check if method removeChangeListener of MessageStorage (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("removeChangeListener" in service.messageStorage, "No removeChangeListener method in messageStorage");
-        check_method_exists(service.messageStorage, "removeChangeListener");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeConversations_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeConversations_exist.html
deleted file mode 100755 (executable)
index 5720cb8..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_removeConversations_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_removeConversations_exist
-//==== LABEL Check if method removeConversations of MessageStorage (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("removeConversations" in service.messageStorage, "No removeConversations method in messageStorage");
-        check_method_exists(service.messageStorage, "removeConversations");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeMessages_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeMessages_exist.html
deleted file mode 100755 (executable)
index 9d63452..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_removeMessages_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_removeMessages_exist
-//==== LABEL Check if method removeMessages of MessageStorage (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("removeMessages" in service.messageStorage, "No removeMessages method in messageStorage");
-        check_method_exists(service.messageStorage, "removeMessages");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html
deleted file mode 100755 (executable)
index bddf5dc..0000000
+++ /dev/null
@@ -1,272 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_updateMessages</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_updateMessages
-//==== LABEL Check if MessageStorage.updateMessages method works properly (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MOA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service,
-    mutableMessage, constMessage,
-    plainBodyToSetForMutableMessage = MESSAGE_BODY_PLAIN + "_mutable",
-    plainBodyToSetForConstMessage = MESSAGE_BODY_PLAIN + "_const",
-    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null,
-    updateSuccess, updateError, mutableMessagefilter, constMessagefilter,
-    findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE",
-    findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST",
-    loadMutableSuccess, loadMutableError,
-    loadConstSuccess, loadConstError,
-    loadMutableAttachmentSuccess, loadMutableAttachmentError,
-    loadConstAttachmentSuccess, loadConstAttachmentError,
-    testMessage, testAttachment, testAttachmentCounter = 0;
-
-t.step(function () {
-    testAttachment = t.step_func(function (attachment, type) {
-        var j, foundAttachmenentCounter = 0;
-        if (type === mutable) {
-            for (j = 0; j < mutableMessage.attachments.length; j++) {
-                if (attachment.id === mutableMessage.attachments[j].id) {
-                    assert_equals(attachment.id, mutableMessage.attachments[j].id, type + " attachment.id");
-                    assert_equals(attachment.messageId, mutableMessage.attachments[j].messageId, type + " attachment.messageId");
-                    assert_equals(attachment.messageId, mutableMessage.id, type + " attachment.messageId (with message.id)");
-                    assert_equals(attachment.mimeType, mutableMessage.attachments[j].mimeType, type + " attachment.mimeType");
-                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");
-                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");
-                    foundAttachmenentCounter++;
-                }
-            }
-            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);
-        } else if (type === consts) {
-            for (j = 0; j < constMessage.attachments.length; j++) {
-                if (attachment.id === constMessage.attachments[j].id) {
-                    assert_equals(attachment.id, constMessage.attachments[j].id, type + " attachment.id");
-                    assert_equals(attachment.messageId, constMessage.attachments[j].messageId, type + " attachment.messageId");
-                    assert_equals(attachment.messageId, constMessage.id, type + " attachment.messageId - (with message.id)");
-                    assert_equals(attachment.mimeType, constMessage.attachments[j].mimeType, type + " attachment.mimeType");
-                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");
-                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");
-                    foundAttachmenentCounter++;
-                }
-            }
-            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);
-        } else {
-            assert_unreached("FIX your test - unknown type = " + type);
-        }
-
-        testAttachmentCounter++;
-        if (testAttachmentCounter === mutableMessage.attachments.length + constMessage.attachments.length) {
-            t.done();
-        }
-    });
-
-    loadMutableAttachmentSuccess = t.step_func(function (attachment) {
-        testAttachment(attachment, mutable);
-    });
-
-    loadMutableAttachmentError = t.step_func(function (error) {
-        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    loadConstAttachmentSuccess = t.step_func(function (attachment) {
-        testAttachment(attachment, consts);
-    });
-
-    loadConstAttachmentError = t.step_func(function (error) {
-        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    testMessage = t.step_func(function (messageToTest, originalMessage, type) {
-        var i;
-        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");
-        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");
-        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");
-
-        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");
-        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");
-        assert_array_equals(messageToTest.cc, originalMessage.cc, type + " cc attribute.");
-        assert_array_equals(messageToTest.bcc, originalMessage.bcc, type + " bcc attribute.");
-
-        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");
-        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");
-        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");
-        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");
-        assert_equals(messageToTest.body.htmlBody, originalMessage.body.htmlBody, type + " body.htmlBody attribute.");
-
-        assert_equals(messageToTest.body.inlineAttachments.length, originalMessage.body.inlineAttachments.length,
-            type + " incorrect length of inlineAttachments");
-        for (i = 0; i < originalMessage.body.inlineAttachments.length; i++) {
-            assert_equals(messageToTest.body.inlineAttachments[i].id, originalMessage.body.inlineAttachments[i].id,
-                type + " message.body.inlineAttachments[" + i + "].id");
-            assert_equals(messageToTest.body.inlineAttachments[i].messageId, originalMessage.body.inlineAttachments[i].messageId,
-                type + " message.body.inlineAttachments[" + i + "].messageId");
-            assert_equals(messageToTest.body.inlineAttachments[i].messageId, originalMessage.id,
-                type + " message.body.inlineAttachments[" + i + "].messageId - (with message.id)");
-            assert_equals(messageToTest.body.inlineAttachments[i].mimeType, originalMessage.body.inlineAttachments[i].mimeType,
-                type + " message.body.inlineAttachments[" + i + "].mimeType");
-            assert_type(messageToTest.body.inlineAttachments[i].filePath, "string",  type + " attachment.filePath is not a string");
-            assert_not_equals(messageToTest.body.inlineAttachments[i].filePath, "", type + " attachment.filePath is empty");
-        }
-
-        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");
-        assert_equals(messageToTest.hasAttachment, originalMessage.hasAttachment, type + " hasAttachment attribute.");
-        assert_equals(messageToTest.isHighPriority, originalMessage.isHighPriority, type + " isHighPriority attribute.");
-        assert_equals(messageToTest.subject, originalMessage.subject, type + " subject attribute.");
-        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");
-        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");
-        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {
-            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");
-        } else {
-            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");
-        }
-        assert_equals(messageToTest.conversationId, originalMessage.conversationId, type + "  conversationId attribute.");
-        assert_equals(messageToTest.attachments.length, originalMessage.attachments.length, type + " incorrect length of attachments");
-        for (i = 0; i < messageToTest.attachments.length; i++) {
-            if (type === mutable) {
-                service.loadMessageAttachment(messageToTest.attachments[i], loadMutableAttachmentSuccess, loadMutableAttachmentError);
-            } else if (type === consts) {
-                service.loadMessageAttachment(messageToTest.attachments[i], loadConstAttachmentSuccess, loadConstAttachmentError);
-            } else {
-                assert_unreached("FIX your test - unknown type = " + type);
-            }
-        }
-    });
-
-    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {
-        testMessage(loadedMutableMessage, mutableMessage, mutable);
-    });
-
-    loadMutableError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    loadConstSuccess = t.step_func(function (loadedConstMessage) {
-        testMessage(loadedConstMessage, constMessage, consts);
-    });
-
-    loadConstError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {
-        assert_draft_message_equals(t, mutableMessages, mutableMessage);
-        foundMutableMessage = mutableMessages[0];
-        service.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);
-    });
-
-    findMutableMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findConstMessagesSuccess = t.step_func(function (constMessages) {
-        assert_draft_message_equals(t, constMessages, constMessage);
-        foundConstMessage = constMessages[0];
-        service.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);
-    });
-
-    findConstMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-
-    updateSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");
-        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);
-        service.messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);
-
-        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);
-        service.messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);
-    });
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            mutableMessage.isRead = true;
-            mutableMessage.isHighPriority = true;
-            mutableMessage.subject = generateSubject();
-            returnedValue = service.messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess, updateError);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        mutableMessage = new tizen.Message("messaging.email", {
-            subject: generateSubject(),
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: plainBodyToSetForMutableMessage,
-            htmlBody: MESSAGE_BODY_HTML,
-            isHighPriority: false
-        });
-
-        service.messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);
-
-
-        constMessage = new tizen.Message("messaging.email", {
-            subject: generateSubject(),
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: plainBodyToSetForConstMessage,
-            htmlBody: MESSAGE_BODY_HTML,
-            isHighPriority: false
-        });
-
-        constMessage.attachments = [
-            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE),
-            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)
-        ];
-
-        service.messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index c2b5c2d..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_updateMessages_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_updateMessages_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageStorage.updateMessages method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message,
-    addDraftSuccess, addDraftError, exceptionName,
-    updateSuccess, incorrectCallback, conversionTable, i;
-
-t.step(function () {
-    updateSuccess = t.step_func(function () {
-        assert_unreached("updateMessages() success callback invoked.");
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                service.messageStorage.updateMessages([message], updateSuccess, incorrectCallback);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-        }
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 383b952..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_updateMessages_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_updateMessages_errorCallback_invalid_cb
-//==== LABEL Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message,
-    addDraftSuccess, addDraftError,
-    updateSuccess, incorrectCallback;
-
-t.step(function () {
-    updateSuccess = t.step_func(function () {
-        assert_unreached("updateMessages() success callback invoked.");
-    });
-
-    incorrectCallback = {
-        onerror: t.step_func(function (error) {
-            assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);
-        })
-    };
-
-    addDraftSuccess = t.step_func(function () {
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.messageStorage.updateMessages([message], updateSuccess, incorrectCallback);
-        }, "Given invalid error callback");
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_exist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_exist.html
deleted file mode 100755 (executable)
index f5065d8..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_updateMessages_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_updateMessages_exist
-//==== LABEL Check if method updateMessages of MessageStorage (email) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_true("updateMessages" in service.messageStorage, "No updateMessages method in messageStorage");
-        check_method_exists(service.messageStorage, "updateMessages");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_messages_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_messages_TypeMismatch.html
deleted file mode 100755 (executable)
index ba45466..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_updateMessages_messages_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_updateMessages_messages_TypeMismatch
-//==== LABEL Check type conversions for messages argument of MessageStorage.updateMessages method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, exceptionName, updateSuccess, updateError,
-    conversionTable, incorrectMessages, i;
-
-t.step(function () {
-    updateSuccess = t.step_func(function () {
-        assert_unreached("updateMessages() success callback invoked.");
-    });
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        conversionTable = getTypeConversionExceptions("array", false);
-
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectMessages = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    service.messageStorage.updateMessages(incorrectMessages, updateSuccess, updateError);
-                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessages);
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_missarg.html
deleted file mode 100755 (executable)
index 36938dc..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_updateMessages_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_updateMessages_missarg
-//==== LABEL Check with missing message argument -  MessageStorage.updateMessages (email)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, exceptionName = "TypeMismatchError";
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_throws({name: exceptionName},
-        function () {
-            service.messageStorage.updateMessages();
-        }, exceptionName + " should be thrown - missing argument.");
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index d71f6c7..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_updateMessages_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_updateMessages_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageStorage.updateMessages method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,
-    exceptionName, updateError, incorrectCallback, conversionTable, i;
-
-t.step(function () {
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                service.messageStorage.updateMessages([message], incorrectCallback, updateError);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-        }
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 569db66..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_updateMessages_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_updateMessages_successCallback_invalid_cb
-//==== LABEL Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message,
-    addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError",
-    updateError, incorrectCallback;
-
-t.step(function () {
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    incorrectCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("addDraftMessage() incorrect success callback invoked");
-        })
-    };
-
-    addDraftSuccess = t.step_func(function () {
-        assert_throws({name: exceptionName},
-            function () {
-                service.messageStorage.updateMessages([message], incorrectCallback, updateError);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html
deleted file mode 100755 (executable)
index 1f7813d..0000000
+++ /dev/null
@@ -1,277 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_updateMessages_without_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_updateMessages_without_errorCallback
-//==== LABEL Check if MessageStorage.updateMessages method works properly without errorCallback argument (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MOA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000});
-t.step(function () {
-    var serviceSuccess, serviceError, service,
-        mutableMessage, constMessage,
-        plainBodyToSetForMutableMessage = MESSAGE_BODY_PLAIN + "_mutable",
-        plainBodyToSetForConstMessage = MESSAGE_BODY_PLAIN + "_const",
-        addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null,
-        updateSuccess, mutableMessagefilter, constMessagefilter,
-        findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE",
-        findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST",
-        loadMutableSuccess, loadMutableError,
-        loadConstSuccess, loadConstError,
-        loadMutableAttachmentSuccess, loadMutableAttachmentError,
-        loadConstAttachmentSuccess, loadConstAttachmentError,
-        testMessage, testAttachment, testAttachmentCounter = 0;
-
-    testAttachment = t.step_func(function (attachment, type) {
-        var j, foundAttachmenentCounter = 0;
-        if (type === mutable) {
-            for (j = 0; j < mutableMessage.attachments.length; j++) {
-                if (attachment.id === mutableMessage.attachments[j].id) {
-                    assert_equals(attachment.id, mutableMessage.attachments[j].id, type + " attachment.id");
-                    assert_equals(attachment.messageId, mutableMessage.attachments[j].messageId, type + " attachment.messageId");
-                    assert_equals(attachment.messageId, mutableMessage.id, type + " attachment.messageId (with message.id)");
-                    assert_equals(attachment.mimeType, mutableMessage.attachments[j].mimeType, type + " attachment.mimeType");
-                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");
-                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");
-                    foundAttachmenentCounter++;
-                }
-            }
-            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);
-        } else if (type === consts) {
-            for (j = 0; j < constMessage.attachments.length; j++) {
-                if (attachment.id === constMessage.attachments[j].id) {
-                    assert_equals(attachment.id, constMessage.attachments[j].id, type + " attachment.id");
-                    assert_equals(attachment.messageId, constMessage.attachments[j].messageId, type + " attachment.messageId");
-                    assert_equals(attachment.messageId, constMessage.id, type + " attachment.messageId - (with message.id)");
-                    assert_equals(attachment.mimeType, constMessage.attachments[j].mimeType, type + " attachment.mimeType");
-                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");
-                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");
-                    foundAttachmenentCounter++;
-                }
-            }
-            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);
-        } else {
-            assert_unreached("FIX your test - unknown type = " + type);
-        }
-
-        testAttachmentCounter++;
-        if (testAttachmentCounter === mutableMessage.attachments.length + constMessage.attachments.length) {
-            t.done();
-        }
-    });
-
-    loadMutableAttachmentSuccess = t.step_func(function (attachment) {
-        testAttachment(attachment, mutable);
-    });
-
-    loadMutableAttachmentError = t.step_func(function (error) {
-        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    loadConstAttachmentSuccess = t.step_func(function (attachment) {
-        testAttachment(attachment, consts);
-    });
-
-    loadConstAttachmentError = t.step_func(function (error) {
-        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    testMessage = t.step_func(function (messageToTest, originalMessage, type) {
-        var i;
-        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");
-        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");
-        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");
-
-        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");
-        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");
-        assert_array_equals(messageToTest.cc, originalMessage.cc, type + " cc attribute.");
-        assert_array_equals(messageToTest.bcc, originalMessage.bcc, type + " bcc attribute.");
-
-        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");
-        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");
-        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");
-        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");
-        assert_equals(messageToTest.body.htmlBody, originalMessage.body.htmlBody, type + " body.htmlBody attribute.");
-
-        assert_equals(messageToTest.body.inlineAttachments.length, originalMessage.body.inlineAttachments.length,
-            type + " incorrect length of inlineAttachments");
-        for (i = 0; i < originalMessage.body.inlineAttachments.length; i++) {
-            assert_equals(messageToTest.body.inlineAttachments[i].id, originalMessage.body.inlineAttachments[i].id,
-                type + " message.body.inlineAttachments[" + i + "].id");
-            assert_equals(messageToTest.body.inlineAttachments[i].messageId, originalMessage.body.inlineAttachments[i].messageId,
-                type + " message.body.inlineAttachments[" + i + "].messageId");
-            assert_equals(messageToTest.body.inlineAttachments[i].messageId, originalMessage.id,
-                type + " message.body.inlineAttachments[" + i + "].messageId - (with message.id)");
-            assert_equals(messageToTest.body.inlineAttachments[i].mimeType, originalMessage.body.inlineAttachments[i].mimeType,
-                type + " message.body.inlineAttachments[" + i + "].mimeType");
-            assert_type(messageToTest.body.inlineAttachments[i].filePath, "string",  type + " attachment.filePath is not a string");
-            assert_not_equals(messageToTest.body.inlineAttachments[i].filePath, "", type + " attachment.filePath is empty");
-        }
-
-        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");
-        assert_equals(messageToTest.hasAttachment, originalMessage.hasAttachment, type + " hasAttachment attribute.");
-        assert_equals(messageToTest.isHighPriority, originalMessage.isHighPriority, type + " isHighPriority attribute.");
-        assert_equals(messageToTest.subject, originalMessage.subject, type + " subject attribute.");
-        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");
-        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");
-        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {
-            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");
-        } else {
-            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");
-        }
-        assert_equals(messageToTest.conversationId, originalMessage.conversationId, type + "  conversationId attribute.");
-
-        assert_equals(messageToTest.attachments.length, originalMessage.attachments.length, type + " incorrect length of attachments");
-        for (i = 0; i < messageToTest.attachments.length; i++) {
-            if (type === mutable) {
-                service.loadMessageAttachment(messageToTest.attachments[i], loadMutableAttachmentSuccess, loadMutableAttachmentError);
-            } else if (type === consts) {
-                service.loadMessageAttachment(messageToTest.attachments[i], loadConstAttachmentSuccess, loadConstAttachmentError);
-            } else {
-                assert_unreached("FIX your test - unknown type = " + type);
-            }
-        }
-    });
-
-    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {
-        testMessage(loadedMutableMessage, mutableMessage, mutable);
-    });
-
-    loadMutableError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    loadConstSuccess = t.step_func(function (loadedConstMessage) {
-        testMessage(loadedConstMessage, constMessage, consts);
-    });
-
-    loadConstError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {
-        assert_draft_message_equals(t, mutableMessages, mutableMessage);
-        foundMutableMessage = mutableMessages[0];
-        if (foundMutableMessage.body.loaded) {
-            testMessage(foundMutableMessage, mutableMessage, mutable);
-        } else {
-            service.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);
-        }
-    });
-
-    findMutableMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findConstMessagesSuccess = t.step_func(function (constMessages) {
-        assert_draft_message_equals(t, constMessages, constMessage);
-
-        foundConstMessage = constMessages[0];
-        if (foundConstMessage.body.loaded) {
-            testMessage(foundConstMessage, constMessage, consts);
-        } else {
-            service.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);
-        }
-    });
-
-    findConstMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-
-    updateSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");
-        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);
-        service.messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);
-
-        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);
-        service.messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            mutableMessage.isRead = true;
-            mutableMessage.isHighPriority = true;
-            mutableMessage.subject = "new mutableMessage.subject";
-            returnedValue = service.messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        mutableMessage = new tizen.Message("messaging.email", {
-            subject: generateSubject(),
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: plainBodyToSetForMutableMessage,
-            htmlBody: MESSAGE_BODY_HTML,
-            isHighPriority: false
-        });
-
-        service.messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);
-
-        constMessage = new tizen.Message("messaging.email", {
-            subject: generateSubject(),
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: plainBodyToSetForConstMessage,
-            htmlBody: MESSAGE_BODY_HTML,
-            isHighPriority: false
-        });
-
-        constMessage.attachments = [
-            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE),
-            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)
-        ];
-
-        service.messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_successCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_successCallback.html
deleted file mode 100755 (executable)
index 361fce0..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_updateMessages_without_successCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_updateMessages_without_successCallback
-//==== LABEL Check if MessageStorage.updateMessages method works properly without successCallback argument (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MR MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, service, mutableMessage,
-    constMessage, plainBodyToSetForMutableMessage = MESSAGE_BODY_PLAIN + "_mutable", plainBodyToSetForConstMessage = MESSAGE_BODY_PLAIN + "_const",
-    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue;
-t.step(function () {
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            mutableMessage.to = ["tomutableMessage1@something.com", "tomutableMessage2@something.com"];
-            mutableMessage.cc = ["ccmutableMessage1@something.com", "ccmutableMessage2@something.com"];
-            mutableMessage.bcc = ["bccmutableMessage1@something.com", "bccmutableMessage2@something.com"];
-            mutableMessage.body.plainBody = "new mutableMessage.plainBody";
-            mutableMessage.body.htmlBody = MESSAGE_BODY_HTML + "<img src='webapi-tizen-messaging-test_image.jpg'>";
-            mutableMessage.body.inlineAttachments = [
-                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE),
-                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE)
-            ];
-            mutableMessage.isRead = true;
-            mutableMessage.isHighPriority = true;
-            mutableMessage.subject = "new mutableMessage.subject";
-            mutableMessage.attachments = [
-                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE),
-                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)
-            ];
-            returnedValue = service.messageStorage.updateMessages([mutableMessage, constMessage]);
-            assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");
-            t.done();
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        mutableMessage = new tizen.Message("messaging.email", {
-            subject: generateSubject(),
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: plainBodyToSetForMutableMessage,
-            htmlBody: MESSAGE_BODY_HTML,
-            isHighPriority: false
-        });
-
-        service.messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);
-
-        constMessage = new tizen.Message("messaging.email", {
-            subject: generateSubject(),
-            to: [TEST_EMAIL_RECIPIENT_2],
-            plainBody: plainBodyToSetForConstMessage,
-            htmlBody: MESSAGE_BODY_HTML,
-            isHighPriority: false
-        });
-
-        constMessage.attachments = [
-            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE),
-            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)
-        ];
-
-        service.messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html
deleted file mode 100755 (executable)
index 21628a3..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Marcin Kaminski <marcin.ka@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_findFolders</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_findFolders
-//==== PRIORITY P1
-//==== LABEL Check if MessageStorage.findFolders method works properly
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMINA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, filter, foldersSuccess, returnedValue = null;
-
-t.step(function () {
-    foldersSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-        returnedValue = service.messageStorage.findFolders(filter, foldersSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 2edc704..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Marcin Kaminski <marcin.ka@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_findFolders_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_findFolders_errorCallback_TypeMismatch
-//==== PRIORITY P2
-//==== LABEL Check type conversions for errorCallback argument of MessageStorage.findFolders method
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, foldersSuccess, foldersError,
-    exceptionName, conversionTable, filter, i;
-
-t.step(function () {
-    foldersSuccess = t.step_func(function () {
-        assert_unreached("findFolders success callback should not be called.");
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for(i = 0; i < conversionTable.length; i++) {
-            foldersError = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(
-                {name: exceptionName},
-                function () {
-                    service.messageStorage.findFolders(filter, foldersSuccess, foldersError);
-                },
-                exceptionName + "should be thrown when incorrect error callback given."
-            );
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index dab4752..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Marcin Kaminski <marcin.ka@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_findFolders_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_findFolders_errorCallback_invalid_cb
-//==== PRIORITY P2
-//==== LABEL Check if MessageStorage.findFolders method throws exception when errorCallback is invalid
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, findSuccess, filter, incorrectCallback;
-
-t.step(function () {
-    findSuccess = t.step_func(function () {
-        assert_unreached("findFolders success callback should not be called.");
-    });
-
-    incorrectCallback = {
-        onerror: t.step_func(function () {
-            assert_unreached("findFolders() incorrect error callback invoked");
-        })
-    };
-
-    serviceSuccess = t.step_func(function (service) {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.messageStorage.findFolders(filter, findSuccess, incorrectCallback);
-        }, "Given invalid error callback");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_TypeMismatch.html
deleted file mode 100755 (executable)
index 31ec408..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Marcin Kaminski <marcin.ka@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_findFolders_filter_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_findFolders_filter_TypeMismatch
-//==== PRIORITY P2
-//==== LABEL Check type conversions for filter argument of MessageStorage.findFolders method
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), i,
-    serviceSuccess, serviceError, foldersSuccess, exceptionName, conversionTable, filter;
-
-t.step(function () {
-    foldersSuccess = t.step_func(function () {
-        assert_unreached("findFolders success callback should not be called.");
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        conversionTable = getTypeConversionExceptions("object", false);
-
-        for(i = 0; i < conversionTable.length; i++) {
-            filter = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws(
-                {name: exceptionName},
-                function () {
-                    service.messageStorage.findFolders(filter, foldersSuccess);
-                },
-                exceptionName + "should be thrown when incorrect filter given."
-            );
-        }
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_serviceId.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_serviceId.html
deleted file mode 100755 (executable)
index a04b3d4..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findFolders_filter_serviceId</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_findFolders_filter_serviceId
-//==== LABEL Check if MessageStorage.findFolders works properly for filter by serviceId
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, serviceIdFilter, returnedValue = null, findFoldersError, findFoldersSuccess;
-
-t.step(function () {
-    findFoldersSuccess = t.step_func(function (folders) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        serviceIdFilter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-        returnedValue = service.messageStorage.findFolders(serviceIdFilter, findFoldersSuccess, findFoldersError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_missarg.html
deleted file mode 100755 (executable)
index 5e95f56..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Marcin Kaminski <marcin.ka@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_findFolders_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_findFolders_missarg
-//==== PRIORITY P2
-//==== LABEL Check with missing non-optional argument - MessageStorage.findFolders
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, filter;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        assert_throws(TYPE_MISMATCH_EXCEPTION,
-            function () {
-                service.messageStorage.findFolders();
-            },
-            "TypeMismatch expected when no argument given."
-        );
-
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION,
-            function () {
-                service.messageStorage.findFolders(filter);
-            },
-            "TypeMismatch expected when no success callback given."
-        );
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 1bba911..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Marcin Kaminski <marcin.ka@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_findFolders_successCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_findFolders_successCallback_TypeMismatch
-//==== PRIORITY P2
-//==== LABEL Check type conversions for successCallback argument of MessageStorage.findFolders method
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, msgService, foldersSuccess,
-    exceptionName, conversionTable, filter, i;
-
-t.step(function () {
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("Failed to get MessageServices: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "No message service received.");
-        msgService = services[0];
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", msgService.id);
-
-        conversionTable = getTypeConversionExceptions("functionObject", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            foldersSuccess = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(
-                {name: exceptionName},
-                function () {
-                    msgService.messageStorage.findFolders(filter, foldersSuccess);
-                },
-                exceptionName + "should be thrown when incorrect success callback given."
-            );
-        }
-
-        t.done();
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 1862e5f..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Marcin Kaminski <marcin.ka@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_findFolders_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_findFolders_successCallback_invalid_cb
-//==== PRIORITY P2
-//==== LABEL Check if MessageStorage.findFolders method throws exception when successCallback is invalid (email)
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, filter, incorrectCallback;
-
-t.step(function () {
-    incorrectCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("findFolders() incorrect error callback invoked");
-        })
-    };
-
-    serviceSuccess = t.step_func(function (service) {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.messageStorage.findFolders(filter, incorrectCallback);
-        }, "Given invalid success callback");
-
-        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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_with_errorCallback.html
deleted file mode 100755 (executable)
index 09ffe6e..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Marcin Kaminski <marcin.ka@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_findFolders_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_findFolders_with_errorCallback
-//==== PRIORITY P1
-//==== LABEL Check if MessageStorage.findFolders method works properly with errorCallback argument
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, filter, foldersError, foldersSuccess,
-    returnedValue = null;
-
-t.step(function () {
-    foldersSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    foldersError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-        returnedValue = service.messageStorage.findFolders(filter, foldersSuccess, foldersError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html
deleted file mode 100755 (executable)
index a5c9b10..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_findMessage_emailFilterWithoutErrorCb</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_findMessage_emailFilterWithoutErrorCb
-//==== LABEL Check if MessageStorage.findMessages method works properly without errorCallback argument (email)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MR MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, service, message, returnedValue = null,
-    addDraftSuccess, addDraftError, filter, findSuccess;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_draft_message_equals(t, messages, message);
-
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        returnedValue = service.messageStorage.findMessages(filter, findSuccess);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_notexist.html
deleted file mode 100755 (executable)
index 0a6b489..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessageStorage exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA NIO
-
-test(function () {
-    check_no_interface_object("MessageStorage");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html
deleted file mode 100755 (executable)
index 4b46843..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
--->
-
-<html>
-<head>
-<title>MessageStorage_removeChangeListener</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: MessageStorage_removeChangeListener
-//==== LABEL Check if MessageStorage.removeChangeListener method works properly
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMINA MR MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message1, message2, listenerId, i,
-    addDraftSuccess, addDraftError, messageChangeCallback, returnedValue = null;
-
-t.step(function () {
-    //cleanup after TC
-    add_result_callback(function () {
-        try {
-            if (listenerId !== null){
-                service.messageStorage.removeChangeListener(listenerId);
-            }
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    messageChangeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_type(addedMessages, "array", "Not an array");
-            assert_greater_than(addedMessages.length, 0, "Received empty messages array");
-
-            for (i = 0; i < addedMessages.length; i++) {
-                if (addedMessages[i].id === message1.id) {
-                    returnedValue = service.messageStorage.removeChangeListener(listenerId);
-                    assert_equals(returnedValue, undefined, "Incorrect value returned.");
-                    listenerId = null;
-
-                    service.messageStorage.addDraftMessage(message2, addDraftSuccess, addDraftError);
-                }
-                assert_not_equals(addedMessages[i].id, message2.id, "second message is added");
-            }
-        })
-    };
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        listenerId = service.messageStorage.addMessagesChangeListener(messageChangeCallback);
-
-        message1 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        message2 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message1, null, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations_email.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations_email.html
deleted file mode 100755 (executable)
index f7b9ef5..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_removeChangeListener_forconversations_email</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_removeChangeListener_forconversations_email
-//==== LABEL Check if MessageStorage::removeChangeListener method works properly - for conversation listener (email)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MR
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-      listenerId, listener, serviceSuccess, serviceError, service, returnValue;
-
-t.step(function () {
-
-    listener = {
-        conversationsupdated: t.step_func(function (conversations) {
-        }),
-        conversationsadded: t.step_func(function (conversations) {
-        }),
-        conversationsremoved: t.step_func(function (conversations) {
-        })
-    };
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        listenerId = service.messageStorage.addConversationsChangeListener(listener);
-        returnValue = service.messageStorage.removeChangeListener(listenerId);
-        assert_equals(returnValue, undefined, "Incorrect returned value.");
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder_email.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder_email.html
deleted file mode 100755 (executable)
index f75ce85..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_removeChangeListener_forfolder_email</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_removeChangeListener_forfolder_email
-//==== LABEL Check if removeChangeListener method removes listener added by addFoldersChangeListener method(email)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MR
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    listener, serviceSuccess, serviceError, listenerId, service, returnValue;
-
-t.step(function () {
-
-    listener = {
-        foldersupdated: t.step_func(function (folders) {
-        }),
-        foldersadded: t.step_func(function (folders) {
-        }),
-        foldersremoved: t.step_func(function (folders) {
-        })
-    };
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        listenerId = service.messageStorage.addFoldersChangeListener(listener);
-        returnValue = service.messageStorage.removeChangeListener(listenerId);
-        assert_equals(returnValue, undefined, "Incorrect returned value.");
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html
deleted file mode 100755 (executable)
index d11cf26..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeConversations</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeConversations
-//==== LABEL Check if MessageStorage.removeConversations method works properly
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMINA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), returnedValue = null;
-
-message_conversation_test(t, function (service, message, conversation) {
-    returnedValue = service.messageStorage.removeConversations([conversation]);
-    assert_equals(returnedValue, undefined, "Incorrect returned value");
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_conversations_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_conversations_TypeMismatch.html
deleted file mode 100755 (executable)
index e6574c6..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeConversations_conversations_TypeMismatch</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeConversations_conversations_TypeMismatch
-//==== LABEL Check type conversions for conversations argument of MessageStorage.removeConversations method
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), conversionTable, i,
-    exceptionName, conversations;
-
-message_conversation_test(t, function (service, message, conversation) {
-    conversionTable = getTypeConversionExceptions("array", false);
-    for (i = 0; i < conversionTable.length; i++) {
-        conversations = conversionTable[i][0];
-        exceptionName = conversionTable[i][1];
-
-        assert_throws({name: exceptionName}, function () {
-            service.messageStorage.removeConversations(conversations);
-        }, "Given incorrect conversations");
-    }
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index c510326..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeConversations_errorCallback_TypeMismatch</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeConversations_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageStorage.removeConversations method
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), i,
-    conversionTable, successCallback, incorrectErrorCallback, exceptionName;
-
-message_conversation_test(t, function (service, message, conversation) {
-
-    successCallback = t.step_func(function () {
-        assert_unreached("removeConversations() success callback invoked.");
-    });
-
-    conversionTable = getTypeConversionExceptions("functionObject", true);
-    for (i = 0; i < conversionTable.length; i++) {
-        incorrectErrorCallback = conversionTable[i][0];
-        exceptionName = conversionTable[i][1];
-
-        assert_throws({name: exceptionName}, function () {
-            service.messageStorage.removeConversations([conversation], successCallback, incorrectErrorCallback);
-        }, exceptionName + " should be thrown - given incorrect error callback.");
-    }
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 8bb5e3c..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeConversations_errorCallback_invalid_cb</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeConversations_errorCallback_invalid_cb
-//==== LABEL Check if MessageStorage.removeConversations method throws exception when errorCallback is invalid
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    successCallback, errorCallback;
-
-message_conversation_test(t, function (service, message, conversation) {
-
-    successCallback = t.step_func(function () {
-        assert_unreached("removeConversations() success callback invoked.");
-    });
-
-    errorCallback = {
-        onerror: t.step_func(function (error) {
-            assert_unreached("removeConversations() error callback invoked.");
-        })
-    };
-
-    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-        service.messageStorage.removeConversations([conversation], successCallback, errorCallback);
-    }, "TypeMismatchError should be thrown - given incorrect error callback.");
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_foremail.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_foremail.html
deleted file mode 100755 (executable)
index 7b62ad9..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeConversations_foremail</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: MessageStorage_removeConversations_foremail
-//==== PRIORITY P1
-//==== LABEL Check if MessageStorage.removeConversations method works properly (email)
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t =async_test(document.title, {timeout: 90000}), returnedValue;
-
-message_conversation_test(t, function (service, message, conversation) {
-    returnedValue = service.messageStorage.removeConversations([conversation]);
-    assert_equals(returnedValue, undefined, "Incorrect returned value");
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_missarg.html
deleted file mode 100755 (executable)
index 9b45149..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeConversations_missarg</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeConversations_missarg
-//==== LABEL Check with missing non-optional argument - MessageStorage.removeConversations
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000});
-
-message_conversation_test(t, function (service, message, conversation) {
-    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-        service.messageStorage.removeConversations();
-    });
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index b21b020..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeConversations_successCallback_TypeMismatch</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeConversations_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageStorage.removeConversations method
-//==== PRIORITY: P2
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    conversionTable, incorrectCallback, exceptionName, i;
-
-message_conversation_test(t, function (service, message, conversation) {
-    conversionTable = getTypeConversionExceptions("functionObject", true);
-    for (i = 0; i < conversionTable.length; i++) {
-        incorrectCallback = conversionTable[i][0];
-        exceptionName = conversionTable[i][1];
-
-        assert_throws({name: exceptionName}, function () {
-            service.messageStorage.removeConversations([conversation], incorrectCallback);
-        }, exceptionName + " should be thrown - given incorrect successCallback.");
-    }
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 5f897e3..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeConversations_successCallback_invalid_cb</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeConversations_successCallback_invalid_cb
-//==== LABEL Check if MessageStorage.removeConversations method throws exception when successCallback is invalid
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    incorrectSuccessCallback, exceptionName = "TypeMismatchError";
-
-message_conversation_test(t, function (service, message, conversation) {
-
-    incorrectSuccessCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("removeConversations() success callback invoked.");
-        })
-    };
-
-    assert_throws({name: exceptionName}, function () {
-        service.messageStorage.removeConversations([conversation], incorrectSuccessCallback);
-    }, exceptionName + " should be thrown - given incorrect successCallback.");
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html
deleted file mode 100755 (executable)
index f2d86ca..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeConversations_with_errorCallback</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeConversations_with_errorCallback
-//==== LABEL Check if MessageStorage.removeConversations method works properly with errorCallback argument
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA MR MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    removeSuccess, removeError, returnedValue = null, findFilter, findSuccessAfterRemove, findErrorAfterRemove;
-
-message_conversation_test(t, function (service, message, conversation) {
-
-    findSuccessAfterRemove = t.step_func(function (conversations) {
-        assert_equals(conversations.length, 0, "Conversations not removed");
-        t.done();
-    });
-
-    findErrorAfterRemove = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-
-        findFilter = new tizen.AttributeFilter("id", "EXACTLY", message.conversationId);
-        service.messageStorage.findConversations(findFilter, findSuccessAfterRemove, findErrorAfterRemove);
-    });
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    returnedValue = service.messageStorage.removeConversations([conversation], removeSuccess, removeError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html
deleted file mode 100755 (executable)
index 0aa5487..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Beata Koziarek <b.koziarek@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeConversations_with_successCallback</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeConversations_with_successCallback
-//==== LABEL Check if MessageStorage.removeConversations method works properly with successCallback argument
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    removeSuccess, returnedValue = null;
-
-message_conversation_test(t, function (service, message, conversation) {
-
-    removeSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    returnedValue = service.messageStorage.removeConversations([conversation], removeSuccess);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessage_emailwithouterrcb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessage_emailwithouterrcb.html
deleted file mode 100755 (executable)
index 7f5a28a..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeMessage_emailwithouterrcb</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeMessage_emailwithouterrcb
-//==== LABEL Check if MessageStorage.removeMessages method works properly without errorCallback
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError, filter,
-    findSuccess, findError, removeSuccess;
-
-t.step(function () {
-    removeSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    findSuccess = t.step_func(function (messages) {
-        assert_draft_message_equals(t, messages, message);
-
-        service.messageStorage.removeMessages(messages, removeSuccess);
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email.html
deleted file mode 100755 (executable)
index 08d1508..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Tomasz Paciorek <t.paciorek@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_removeMessages_email</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_removeMessages_email
-//==== LABEL Check if MessageStorage.removeMessages method works properly without non-optional arguments (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMINA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, returnedValue = null,
-    addDraftSuccess, addDraftError;
-
-t.step(function () {
-    addDraftSuccess = t.step_func(function () {
-        returnedValue = service.messageStorage.removeMessages([message]);
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 677b179..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Tomasz Paciorek <t.paciorek@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_removeMessages_email_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_removeMessages_email_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageStorage.removeMessages method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,
-    successCallback, conversionTable, param, exceptionName, i;
-
-t.step(function () {
-    successCallback = t.step_func(function () {
-        assert_unreached("Invalid errorCallback invoked");
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            param = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                service.messageStorage.removeMessages([message], successCallback, param);
-            }, exceptionName + " should be thrown - given incorrect.");
-        }
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index e253d56..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Tomasz Paciorek <t.paciorek@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_removeMessages_email_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_removeMessages_email_errorCallback_invalid_cb
-//==== LABEL Check if MessageStorage.removeMessages method throws exception when errorCallback is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,
-    successCallback, incorrectCallback;
-
-t.step(function () {
-    successCallback = t.step_func(function () {
-        assert_unreached("Invalid errorCallback invoked");
-    });
-
-    incorrectCallback = {
-        onerror: t.step_func(function () {
-            assert_unreached("Invalid errorCallback invoked");
-        })
-    };
-
-    addDraftSuccess = t.step_func(function () {
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.messageStorage.removeMessages([message], successCallback, incorrectCallback);
-        }, "Incorrect error callback.");
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_messages_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_messages_TypeMismatch.html
deleted file mode 100755 (executable)
index 0fdd83e..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Tomasz Paciorek <t.paciorek@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_removeMessages_email_messages_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_removeMessages_email_messages_TypeMismatch
-//==== LABEL Check type conversions for messages argument of MessageStorage.removeMessages method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,
-    conversionTable, param, exceptionName, i;
-
-t.step(function () {
-    addDraftSuccess = t.step_func(function () {
-        conversionTable = getTypeConversionExceptions("array", false);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            param = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                service.messageStorage.removeMessages(param);
-            }, exceptionName + " should be thrown - given incorrect.");
-        }
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_missarg.html
deleted file mode 100755 (executable)
index c1f0ba9..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Tomasz Paciorek <t.paciorek@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_removeMessages_email_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_removeMessages_email_missarg
-//==== LABEL Check with missing non-optional argument - MessageStorage.removeMessages (email)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError;
-
-t.step(function () {
-    addDraftSuccess = t.step_func(function () {
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.messageStorage.removeMessages();
-        }, "Missing argument.");
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 594dd6c..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Tomasz Paciorek <t.paciorek@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_removeMessages_email_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_removeMessages_email_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageStorage.removeMessages method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,
-    conversionTable, param, exceptionName, i;
-
-t.step(function () {
-    addDraftSuccess = t.step_func(function () {
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            param = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                service.messageStorage.removeMessages([message], param);
-            }, exceptionName + " should be thrown - given incorrect.");
-        }
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index f32d072..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Tomasz Paciorek <t.paciorek@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_removeMessages_email_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_removeMessages_email_successCallback_invalid_cb
-//==== LABEL Check if MessageStorage.removeMessages method throws exception when successCallback is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,
-    incorrectCallback;
-
-t.step(function () {
-    incorrectCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("Invalid errorCallback invoked");
-        })
-    };
-
-    addDraftSuccess = t.step_func(function () {
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.messageStorage.removeMessages([message], incorrectCallback);
-        }, "Given incorrect success callback.");
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_errorCallback.html
deleted file mode 100755 (executable)
index 59b0e01..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Tomasz Paciorek <t.paciorek@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_removeMessages_email_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_removeMessages_email_with_errorCallback
-//==== LABEL Check if MessageStorage.removeMessages method works properly with errorCallback argument (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA MR MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, returnedValue = null,
-    addDraftSuccess, addDraftError, removeError, removeSuccess,
-    filter, findSuccess, findError, addedMessageId;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_equals(messages.length, 0, "Message not removed");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        filter = new tizen.AttributeFilter("id", "EXACTLY", addedMessageId);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addedMessageId = message.id;
-        returnedValue = service.messageStorage.removeMessages([message], removeSuccess, removeError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_successCallback.html b/common/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_successCallback.html
deleted file mode 100755 (executable)
index 7b3941a..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Tomasz Paciorek <t.paciorek@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_removeMessages_email_with_successCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_removeMessages_email_with_successCallback
-//==== LABEL Check if MessageStorage.removeMessages method works properly with successCallback argument (email)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, returnedValue = null,
-    addDraftSuccess, addDraftError, removeSuccess, filter, findSuccess, findError, addedMessageId;
-
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        assert_equals(messages.length, 0, "Message not removed");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        filter = new tizen.AttributeFilter("id", "EXACTLY", addedMessageId);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addedMessageId = message.id;
-        returnedValue = service.messageStorage.removeMessages([message], removeSuccess);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_addUpdateRemove.html b/common/tct-messaging-email-tizen-tests/messaging/Message_addUpdateRemove.html
deleted file mode 100755 (executable)
index 81ebbcc..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-
-<head>
-<title>Message_addUpdateRemove</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_addUpdateRemove
-//==== LABEL Check: Add a draft message and update it, and then remove it
-//==== PRIORITY P3
-//==== 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
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service, message, msgs,
-    serviceSuccess, serviceError, addDraftSuccess, addDraftError, filter,
-    findSuccess, findError, updateSuccess, updateError, removeSuccess, removeError;
-
-t.step(function () {
-
-    removeSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    updateSuccess = t.step_func(function () {
-        service.messageStorage.removeMessages(msgs, removeSuccess, removeError);
-    });
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccess = t.step_func(function (messages) {
-        assert_draft_message_equals(t, messages, message);
-        msgs = messages;
-        messages[0].subject = generateSubject();
-        service.messageStorage.updateMessages(messages, updateSuccess, updateError);
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_attachments_exist.html b/common/tct-messaging-email-tizen-tests/messaging/Message_attachments_exist.html
deleted file mode 100755 (executable)
index 0686847..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-
-<head>
-<title>Message_attachments_exist</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_attachments_exist
-//==== LABEL Check if the attribute attachments in Message
-//==== PRIORITY P0
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_attachments_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_attachments_attribute.html
deleted file mode 100755 (executable)
index 0f51c0a..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_attachments_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_attachments_attribute
-//==== LABEL Check if attribute attachments of Message (email) exists, has type Array
-//==== PRIORITY P1
-//==== 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 AT AN ADV
-
-test(function () {
-    var message = new tizen.Message("messaging.email"), sampleVal;
-
-    assert_true("attachments" in message, "No 'attachments' attribute in message");
-    assert_type(message.attachments, "array", "'attachments' type should be array");
-    assert_array_equals(message.attachments, [], "'attachments' should be [] by default");
-
-    message.attachments = null;
-    assert_array_equals(message.attachments, [], "'attachments' should not accept null as value");
-
-    sampleVal = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");
-    message.attachments = [sampleVal];
-    assert_equals(message.attachments.length, 1, "'attachments' should accept a valid value (array length mismatch)");
-    assert_equals(message.attachments[0].filePath, TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "'attachments' should accept a valid value (file path mismatch)");
-
-    check_invalid_array_assignments(message, "attachments", false);
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_bcc_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_bcc_attribute.html
deleted file mode 100755 (executable)
index 39eaf6b..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_bcc_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_bcc_attribute
-//==== LABEL Check if attribute bcc of Message (email) exists, has type Array
-//==== PRIORITY P1
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        message = new tizen.Message("messaging.email");
-
-        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 = null;
-        assert_array_equals(message.bcc, [], "'bcc' should not accept null as value");
-
-        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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_body_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_body_attribute.html
deleted file mode 100755 (executable)
index d1d6db9..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_body_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_body_attribute
-//==== LABEL Check if attribute body of Message (email) exists, has type MessageBody
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:body A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE AT AN ASG
-
-test(function () {
-    var message = new tizen.Message("messaging.email"),
-        invalidArgs, sampleBody, i;
-
-    assert_true("body" in message, "No 'body' attribute in message");
-
-    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");
-    assert_type(message.body.loaded, "boolean", "message.body.loaded type should be boolean");
-    assert_type(message.body.plainBody, "string", "message.body.plainBody type should be string");
-    assert_type(message.body.htmlBody, "string", "message.body.htmlBody type should be string");
-    assert_type(message.body.inlineAttachments, "array", "message.body.inlineAttachments type should be array");
-
-    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");
-
-    sampleBody = {
-        messageId: tizen.time.getCurrentDateTime().toString(),
-        loaded: false,
-        plainBody: MESSAGE_BODY_PLAIN,
-        htmlBody: MESSAGE_BODY_HTML,
-        inlineAttachments: []
-    };
-
-    // field messageId and loaded are readonly
-    message.body.plainBody = sampleBody.plainBody;
-    message.body.htmlBody = sampleBody.htmlBody;
-    message.body.inlineAttachments = sampleBody.inlineAttachments;
-
-    assert_equals(message.body.plainBody, sampleBody.plainBody, "'body.plainBody' should accept a valid value");
-    assert_equals(message.body.htmlBody, sampleBody.htmlBody, "'body.htmlBody' should accept a valid value");
-    assert_array_equals(message.body.inlineAttachments, sampleBody.inlineAttachments, "'body.inlineAttachments' should accept a valid value");
-
-    message.body = null;
-    assert_not_equals(message.body, null, "'body' should not accept null as value");
-
-    invalidArgs = [undefined, true, false, NaN, 0, "TIZEN", function () {}];
-    for (i = 0 ; i < invalidArgs.length ; i++) {
-        message.body = invalidArgs[i];
-
-        assert_true("plainBody" in message.body, "Object was modified after setting to " + invalidArgs[i]);
-        assert_true("htmlBody" in message.body, "Object was modified after setting to " + invalidArgs[i]);
-        assert_true("inlineAttachments" in message.body, "Object was modified after setting to " + invalidArgs[i]);
-
-        assert_equals(message.body.plainBody, sampleBody.plainBody, "'plainBody' modified after setting the object to " + invalidArgs[i]);
-        assert_equals(message.body.htmlBody, sampleBody.htmlBody, "'htmlBody' modified after setting the object to " + invalidArgs[i]);
-        assert_type(message.body.inlineAttachments, "array", "'inlineAttachments' modified after setting the object to " + invalidArgs[i]);
-        assert_array_equals(message.body.inlineAttachments, sampleBody.inlineAttachments,
-            "'messageId' modified after setting the object to " + invalidArgs[i]);
-    }
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_cc_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_cc_attribute.html
deleted file mode 100755 (executable)
index f5e17f7..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_cc_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: Message_email_cc_attribute
-//==== LABEL Check if attribute cc of Message (email) exists, has type Array
-//==== PRIORITY P1
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        message = new tizen.Message("messaging.email");
-
-        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 = null;
-        assert_array_equals(message.cc, [], "'cc' should not accept null as value");
-
-        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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_constructor.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_constructor.html
deleted file mode 100755 (executable)
index d0b59fc..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_constructor</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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_constructor
-//==== LABEL Check if Message's constructor works properly (email)
-//==== PRIORITY P1
-//==== 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 CONSTRA CONSTRM
-
-test(function () {
-    var message, messageInitDict;
-
-    messageInitDict = {
-        subject: generateSubject(),
-        to: [TEST_EMAIL_RECIPIENT_2],
-        cc: [TEST_EMAIL_RECIPIENT_1, TEST_EMAIL_RECIPIENT_2],
-        bcc: [TEST_EMAIL_RECIPIENT_1],
-        plainBody: MESSAGE_BODY_PLAIN,
-        htmlBody: MESSAGE_BODY_HTML,
-        isHighPriority: false
-    };
-
-    message = new tizen.Message("messaging.email", messageInitDict);
-
-    assert_true(message instanceof tizen.Message, "InstanceOf.");
-
-    assert_array_equals(message.attachments, [], "'attachments' should be []");
-    assert_array_equals(message.bcc, messageInitDict.bcc, "wrong 'bcc' value");
-    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");
-    assert_equals(message.body.plainBody, messageInitDict.plainBody, "'body.plainBody' should be \""+messageInitDict.plainBody+"\"");
-    assert_equals(message.body.htmlBody, messageInitDict.htmlBody, "'body.htmlBody' should be \""+messageInitDict.htmlBody+"\"");
-    assert_array_equals(message.body.inlineAttachments, [], "'body.inlineAttachments' should be an empty array");
-    assert_array_equals(message.cc, messageInitDict.cc, "wrong 'cc' value");
-    assert_equals(message.conversationId, null, "message.conversationId value should be null");
-    assert_equals(message.folderId, null, "message.folderId value should be null");
-    assert_equals(message.from, null, "'from' should be null");
-    assert_equals(message.hasAttachment, false, "'hasAttachment' should be false");
-    assert_equals(message.id, null, "message.id should be null before processing by the platform");
-    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null");
-    assert_equals(message.isHighPriority, false, "'isHighPriority' value should be false");
-    assert_equals(message.isRead, false, "'isRead' value should be false");
-    assert_equals(message.messageStatus, "", "value should be an empty value");
-    assert_equals(message.subject, messageInitDict.subject, "'subject' value should be \""+messageInitDict.subject+"\"");
-    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");
-    assert_array_equals(message.to, messageInitDict.to, "wrong 'to' value");
-    assert_equals(message.type, "messaging.email", "'type' should be 'messaging.email'");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_function.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_function.html
deleted file mode 100755 (executable)
index 943a5b6..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-
-<html>
-<head>
-<title>Message_email_constructor_messageInitDict_function</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_constructor_messageInitDict_function
-//==== LABEL Check if Message's constructor works properly with function (email)
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-
-    var message = new tizen.Message("messaging.email", function () {});
-
-    assert_true(message instanceof tizen.Message, "InstanceOf.");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_object.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_object.html
deleted file mode 100755 (executable)
index 3f53af0..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_constructor_messageInitDict_object</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_constructor_messageInitDict_object
-//==== LABEL Check if Message's constructor works properly with empty object (email)
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-
-    var message = new tizen.Message("messaging.email", {});
-
-    assert_true(message instanceof tizen.Message, "InstanceOf.");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_minargs.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_minargs.html
deleted file mode 100755 (executable)
index c16ad76..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-
-<head>
-<title>Message_email_constructor_minargs</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_constructor_minargs
-//==== LABEL Check if Message's constructor works properly with minimum arguments (email)
-//==== PRIORITY P1
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_conversationId_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_conversationId_attribute.html
deleted file mode 100755 (executable)
index 55d4a32..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_conversationId_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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: Message_email_conversationId_attribute
-//==== LABEL Check if attribute conversationId of Message (email) exists, has type MessageConvId and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:conversationId A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ADV ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message,
-    serviceSuccess, serviceError, addDraftSuccess, addDraftError;
-
-t.step(function () {
-    addDraftSuccess = t.step_func(function () {
-        assert_type(message.conversationId, "string", "ConversationId is not a string");
-        assert_not_equals(message.conversationId, "", "ConversationId is empty");
-        check_readonly(message, "id", message.conversationId, "string", message.conversationId + "1");
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    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;
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html
deleted file mode 100755 (executable)
index 8ec2f32..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message;
-
-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>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_folderId_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_folderId_attribute.html
deleted file mode 100755 (executable)
index b5dbdf5..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_folderId_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_folderId_attribute
-//==== LABEL Check if attribute folderId of Message (email) exists, has type MessageFolderId and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:folderId A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ADV ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message,
-    serviceError, serviceSuccess, messageService, addDraftError, addDraftSuccess;
-
-t.step(function () {
-    addDraftSuccess = t.step_func(function () {
-        assert_type(message.folderId, "string", "folderId is not a string");
-        assert_not_equals(message.folderId, "", "folderId is empty");
-
-        check_readonly(message, "folderId", message.folderId, "string", "54321");
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        messageService = service;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        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("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_from_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_from_attribute.html
deleted file mode 100755 (executable)
index 6d04e39..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_from_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_from_attribute
-//==== LABEL Check if attribute from of Message (email) exists, has type DOMString and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:from A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ADV ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    message, service, serviceSuccess, serviceError, sendSuccess, sendError,
-    syncSuccess, syncError, findFoldersError, findFoldersSuccess,
-    findMessageError, findMessageSuccess, foundMessage, inboxFolder;
-
-t.step(function () {
-    findMessageSuccess = t.step_func(function (messages) {
-        if (messages.length > 0) {
-            assert_inbox_message_equals(t, messages, message, inboxFolder);
-
-            foundMessage = messages[0];
-            assert_type(foundMessage.from, "string", "from is not a string");
-            check_readonly(foundMessage, "from", TEST_EMAIL_RECIPIENT_1, "string", foundMessage.from + ".kr");
-
-            t.done();
-        } else {
-            setTimeout(sendSuccess, 1000);
-        }
-    });
-
-    findMessageError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findFoldersSuccess = t.step_func(function (folders) {
-        assert_greater_than(folders.length, 0, "Received empty folders array");
-        inboxFolder = getInboxFolder(t, folders);
-        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);
-    });
-
-    findFoldersError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    syncSuccess = t.step_func(function () {
-        findFolders(t, service, findFoldersSuccess, findFoldersError);
-    });
-
-    syncError = t.step_func(function (error) {
-        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        sync(t, service, syncSuccess, syncError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        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);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_hasAttachment_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_hasAttachment_attribute.html
deleted file mode 100755 (executable)
index a3dec68..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_hasAttachment_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_hasAttachment_attribute
-//==== LABEL Check if attribute hasAttachment of Message (email) exists, has type Boolean and is readonly
-//==== PRIORITY P1
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message;
-
-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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_id_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_id_attribute.html
deleted file mode 100755 (executable)
index 430f125..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_id_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_id_attribute
-//==== LABEL Check if attribute id of Message (email) exists, has type MessageId and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:id A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ADV ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    message, serviceError, serviceSuccess, addDraftSuccess, addDraftError;
-
-t.step(function () {
-    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();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        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);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_inResponseTo_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_inResponseTo_attribute.html
deleted file mode 100755 (executable)
index c6dcd6e..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_inResponseTo_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_inResponseTo_attribute
-//==== LABEL Check if attribute inResponseTo of Message (email) exists, has type MessageId
-//==== PRIORITY P1
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        message = new tizen.Message("messaging.email");
-
-        assert_true("inResponseTo" in message, "No 'inResponseTo' attribute in message");
-        assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");
-
-        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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_isHighPriority_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_isHighPriority_attribute.html
deleted file mode 100755 (executable)
index cd613ad..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_isHighPriority_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_isHighPriority_attribute
-//==== LABEL Check if attribute isHighPriority of Message (email) exists, has type Boolean
-//==== PRIORITY P1
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        message = new tizen.Message("messaging.email");
-
-        assert_true("isHighPriority" in message, "No 'isHighPriority' attribute in message");
-
-        assert_type(message.isHighPriority, "boolean", "'isHighPriority' type should be boolean");
-        assert_equals(message.isHighPriority, false, "'isHighPriority' default value should be false");
-
-        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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_isRead_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_isRead_attribute.html
deleted file mode 100755 (executable)
index 68958e0..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_isRead_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_isRead_attribute
-//==== LABEL Check if attribute isRead of Message (email) exists, has type Boolean
-//==== PRIORITY P1
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        message = new tizen.Message("messaging.email");
-
-        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 = 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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_messageStatus_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_messageStatus_attribute.html
deleted file mode 100755 (executable)
index 43471f0..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_messageStatus_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_messageStatus_attribute
-//==== LABEL Check if attribute messageStatus of Message (email) exists, has type DOMString and is readonly
-//==== PRIORITY P1
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message;
-
-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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_subject_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_subject_attribute.html
deleted file mode 100755 (executable)
index bfacc51..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_subject_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_subject_attribute
-//==== LABEL Check if attribute subject of Message (email) exists, has type DOMString
-//==== PRIORITY P1
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        message = new tizen.Message("messaging.email");
-
-        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 = 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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_timestamp_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_timestamp_attribute.html
deleted file mode 100755 (executable)
index 0b54a3e..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_timestamp_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_timestamp_attribute
-//==== LABEL Check if attribute timestamp of Message (email) exists, has type Date and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:timestamp A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA AE ADV ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message, serviceError,
-    serviceSuccess, messageService, addDraftError, addDraftSuccess, oldDate;
-
-t.step(function () {
-    addDraftSuccess = t.step_func(function () {
-        assert_type(message.timestamp, "date", "timestamp is not a Date");
-
-        oldDate = message.timestamp;
-        message.timestamp = new Date();
-        assert_equals(message.timestamp.getTime(), oldDate.getTime(), "timestamp can be modified");
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (service) {
-        messageService = service;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        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("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_to_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_to_attribute.html
deleted file mode 100755 (executable)
index 08fc52b..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_to_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_to_attribute
-//==== LABEL Check if attribute to of Message (email) exists, has type Array
-//==== PRIORITY P1
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (service) {
-        message = new tizen.Message("messaging.email");
-
-        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 = null;
-        assert_array_equals(message.to, [], "'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");
-
-        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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html b/common/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html
deleted file mode 100755 (executable)
index 1952ef9..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_email_type_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>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_email_type_attribute
-//==== LABEL Check if attribute type of Message (email) exists, has type MessageServiceTag and is readonly
-//==== PRIORITY P1
-//==== 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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message;
-
-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>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_exist.html b/common/tct-messaging-email-tizen-tests/messaging/Message_exist.html
deleted file mode 100755 (executable)
index 64dbd96..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_exist
-//==== LABEL Check if Message exists
-//==== PRIORITY P0
-//==== 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 CONSTRF
-
-test(function () {
-    check_constructor("Message");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Message_hasAttachment_exist.html b/common/tct-messaging-email-tizen-tests/messaging/Message_hasAttachment_exist.html
deleted file mode 100755 (executable)
index 1702d30..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>Message_hasAttachment_exist</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: Message_hasAttachment_exist
-//==== LABEL Check if attribute hasAttachment in Message
-//==== PRIORITY P1
-//==== 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
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message;
-
-t.step(function () {
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        message = new tizen.Message("messaging.email");
-        assert_true("hasAttachment" in message, "hasAttachment attribute not found");
-        t.done();
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_with_filter.html b/common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_with_filter.html
deleted file mode 100755 (executable)
index df46604..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_email_messagesadded_with_filter</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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessagesChangeCallback_email_messagesadded_with_filter
-//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - email, filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA CBT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, watcherId, filter,
-    matchMessage, mismatchMessage, changeCallback, addDraftError;
-
-t.step(function () {
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(watcherId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_type(addedMessages, "array", "Not an array.");
-            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);
-            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");
-            assert_equals(addedMessages[0].subject, matchMessage.subject, "Incorrect subject.");
-            assert_equals(addedMessages[0].id, matchMessage.id, "Incorrect id.");
-            t.done();
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_unreached("memssagesupdated callback invoked.");
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_unreached("messagesremoved callback invoked.");
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        mismatchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        matchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        filter = new tizen.AttributeFilter("subject", "EXACTLY", matchMessage.subject);
-        watcherId = service.messageStorage.addMessagesChangeListener(changeCallback, filter);
-
-        service.messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);
-        service.messageStorage.addDraftMessage(matchMessage, null, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_without_filter.html b/common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_without_filter.html
deleted file mode 100755 (executable)
index 7416ea4..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_email_messagesadded_without_filter</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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessagesChangeCallback_email_messagesadded_without_filter
-//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - email, no filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA CBT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, service, watcherId,
-    message, changeCallback, addDraftError, i;
-t.step(function () {
-
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(watcherId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_type(addedMessages, "array", "Not an array.");
-            assert_greater_than(addedMessages.length, 0, "Received incorrect number of messages");
-
-            for (i = 0; i < addedMessages.length; i++) {
-                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");
-                assert_equals(addedMessages[i].subject, message.subject, "Incorrect subject.");
-
-                if (addedMessages[i].id === message.id) {
-                    t.done();
-                }
-            }
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        watcherId = service.messageStorage.addMessagesChangeListener(changeCallback);
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, null, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_with_filter.html b/common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_with_filter.html
deleted file mode 100755 (executable)
index a99c521..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_email_messagesremoved_with_filter</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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessagesChangeCallback_email_messagesremoved_with_filter
-//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - email, filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA CBT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), i,
-    serviceSuccess, serviceError, service, watcherId, filter, matchMessage, mismatchMessage,
-    changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0, removeError;
-
-t.step(function () {
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(watcherId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    changeCallback = {
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_type(removedMessages, "array", "Not an array.");
-            assert_greater_than(removedMessages.length, 0, "Received empty messages array");
-
-            for (i = 0; i < removedMessages.length; i++) {
-                assert_true(removedMessages[i] instanceof tizen.Message, "Not a message.");
-
-                if (removedMessages[i].id === matchMessage.id) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            filter = new tizen.AttributeFilter("id", "EXACTLY", matchMessage.id);
-
-            watcherId = service.messageStorage.addMessagesChangeListener(changeCallback, filter);
-
-            service.messageStorage.removeMessages([mismatchMessage, matchMessage], null, removeError);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        mismatchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        service.messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);
-
-        matchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        service.messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_without_filter.html b/common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_without_filter.html
deleted file mode 100755 (executable)
index 548cb22..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_email_messagesremoved_without_filter</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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessagesChangeCallback_email_messagesremoved_without_filter
-//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - email, no filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA CBT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    watcherId, message, changeCallback, addDraftSuccess, addDraftError, removeError, i;
-t.step(function () {
-
-    add_result_callback(function (res) {
-        try {
-            messageService.messageStorage.removeChangeListener(watcherId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    changeCallback = {
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_type(removedMessages, "array", "Not an array.");
-            assert_greater_than(removedMessages.length, 0, "Received incorrect number of messages");
-
-            for (i = 0; i < removedMessages.length; i++) {
-                assert_true(removedMessages[i] instanceof tizen.Message, "Not a message.");
-
-                if (removedMessages[i].id === message.id) {
-                    t.done();
-                }
-            }
-        })
-    };
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        watcherId = messageStorage.addMessagesChangeListener(changeCallback);
-
-        messageStorage.removeMessages([message], null, removeError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_with_filter.html b/common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_with_filter.html
deleted file mode 100755 (executable)
index c10e756..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_email_messagesupdated_with_filter</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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessagesChangeCallback_email_messagesupdated_with_filter
-//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - email, filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBOA CBT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, watcherId, filter,
-    matchMessage, mismatchMessage, changeCallback,
-    addDraftError, addDraftSuccess, addDraftSuccessCounter = 0, updateError;
-
-t.step(function () {
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(watcherId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_unreached("messagesadded callback invoked.");
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_type(updatedMessages, "array", "Not an array.");
-            assert_equals(updatedMessages.length, 1, "Received incorrect number of messages: " + updatedMessages.length);
-            assert_true(updatedMessages[0] instanceof tizen.Message, "Not a message.");
-            assert_equals(updatedMessages[0].subject, matchMessage.subject, "Incorrect subject.");
-            assert_equals(updatedMessages[0].id, matchMessage.id, "Incorrect id.");
-            t.done();
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_unreached("messagesremoved callback invoked.");
-        })
-    };
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            filter = new tizen.AttributeFilter("id", "EXACTLY", matchMessage.id);
-            watcherId = service.messageStorage.addMessagesChangeListener(changeCallback, filter);
-
-            mismatchMessage.subject = generateSubject();
-            matchMessage.subject = generateSubject();
-
-            service.messageStorage.updateMessages([mismatchMessage, matchMessage], null, updateError);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        mismatchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-        matchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);
-        service.messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_without_filter.html b/common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_without_filter.html
deleted file mode 100755 (executable)
index e3fbf82..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_email_messagesupdated_without_filter</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>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessagesChangeCallback_email_messagesupdated_without_filter
-//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - email, no filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, watcherId, message,
-    changeCallback, addDraftSuccess, addDraftError, updateError, i;
-
-t.step(function () {
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(watcherId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    changeCallback = {
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_type(updatedMessages, "array", "Not an array.");
-            assert_greater_than(updatedMessages.length, 0, "Received empty updatedMessages array");
-
-            for (i = 0; i < updatedMessages.length; i++) {
-                assert_true(updatedMessages[i] instanceof tizen.Message, "Not a message.");
-
-                if (updatedMessages[i].id === message.id) {
-                    assert_equals(updatedMessages[i].subject, message.subject, "Incorrect subject.");
-                    t.done();
-                }
-            }
-
-        })
-    };
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        watcherId = service.messageStorage.addMessagesChangeListener(changeCallback);
-
-        message.subject = generateSubject();
-
-        service.messageStorage.updateMessages([message], null, updateError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getEmailService(t, serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_notexist.html
deleted file mode 100755 (executable)
index 9e2a2f6..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessagesChangeCallback_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface MessagesChangeCallback exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:MessagesChangeCallback U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBNIO
-
-test(function () {
-    check_no_interface_object("MessagesChangeCallback");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html b/common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html
deleted file mode 100755 (executable)
index d9cd367..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_email_getMessageServices</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_email_getMessageServices
-//==== LABEL Check if getMessageServices works properly (email)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MR MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, i, returnedValue = null;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (services) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value.");
-
-        assert_type(services, "array", "Not an array");
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        for(i = 0; i< services.length; i++){
-            assert_true("type" in services[i], "Name type doesn't exist in provided object.");
-            assert_equals(services[i].type, "messaging.email", "Type is not equal email");
-        }
-
-        t.done();
-    });
-
-    returnedValue = tizen.messaging.getMessageServices("messaging.email", serviceSuccess);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 8637bda..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_email_getMessageServices_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_email_getMessageServices_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of Messaging.getMessageServices method (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    exceptionName, serviceSuccess, i, incorrectCallback, conversionTable;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function () {
-        assert_unreached("getMessageServices() success callback invoked.");
-    });
-
-    conversionTable = getTypeConversionExceptions("functionObject", true);
-
-    for(i = 0; i < conversionTable.length; i++) {
-        incorrectCallback = conversionTable[i][0];
-        exceptionName = conversionTable[i][1];
-
-        assert_throws({name: exceptionName},
-        function () {
-            tizen.messaging.getMessageServices("messaging.email", serviceSuccess, incorrectCallback);
-        }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-    }
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index c374f49..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_email_getMessageServices_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_email_getMessageServices_errorCallback_invalid_cb
-//==== LABEL Check if Messaging.getMessageServices method throws exception when errorCallback is invalid (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    exceptionName = "TypeMismatchError", serviceSuccess, incorrectCallback;
-
-t.step(function () {
-    incorrectCallback = {
-        onerror: t.step_func(function () {
-            assert_unreached("getMessageServices() error callback invoked.");
-        })
-    };
-
-    serviceSuccess = t.step_func(function () {
-        assert_unreached("getMessageServices() success callback invoked.");
-    });
-
-    assert_throws({name: exceptionName},
-        function () {
-            tizen.messaging.getMessageServices("messaging.email", serviceSuccess, incorrectCallback);
-        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index a3e13f7..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_email_getMessageServices_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_email_getMessageServices_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of Messaging.getMessageServices method (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    exceptionName, serviceError, i, incorrectCallback, conversionTable;
-
-t.step(function () {
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    conversionTable = getTypeConversionExceptions("functionObject", false);
-
-    for(i = 0; i < conversionTable.length; i++) {
-        incorrectCallback = conversionTable[i][0];
-        exceptionName = conversionTable[i][1];
-
-        assert_throws({name: exceptionName},
-        function () {
-            tizen.messaging.getMessageServices("messaging.email", incorrectCallback, serviceError);
-        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-    }
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_invalid_cb.html b/common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 0ec00b8..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_email_getMessageServices_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_email_getMessageServices_successCallback_invalid_cb
-//==== LABEL Check if Messaging.getMessageServices method throws exception when successCallback is invalid (email)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    exceptionName = "TypeMismatchError", serviceError, incorrectCallback;
-
-t.step(function () {
-    incorrectCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("getMessageServices() success callback invoked.");
-        })
-    };
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    assert_throws({name: exceptionName},
-        function () {
-            tizen.messaging.getMessageServices("messaging.email", incorrectCallback, serviceError);
-        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html b/common/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html
deleted file mode 100755 (executable)
index 86b68fb..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_email_getMessageServices_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_email_getMessageServices_with_errorCallback
-//==== LABEL Check if getMessageServices works properly with all arguments (email)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MR MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, i, returnedValue = null;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value.");
-
-        assert_type(services, "array", "Not an array");
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        for(i = 0; i< services.length; i++){
-            assert_true("type" in services[i], "Name type doesn't exist in provided object.");
-            assert_equals(services[i].type, "messaging.email", "Type is not equal email");
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    returnedValue = tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Messaging_extend.html b/common/tct-messaging-email-tizen-tests/messaging/Messaging_extend.html
deleted file mode 100755 (executable)
index b5a0891..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-
-<head>
-<title>Messaging_extend</title>
-<script src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: Messaging_extend
-//==== LABEL Check if Messaging is extendable
-//==== PRIORITY P3
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:Messaging U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA OBX
-
-test(function () {
-    check_extensibility(tizen.messaging);
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_exist.html b/common/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_exist.html
deleted file mode 100755 (executable)
index 9ac128e..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_getMessageServices_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_getMessageServices_exist
-//==== LABEL Check if method getMessageServices exists
-//==== PRIORITY P0
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-
-test(function () {
-    assert_true("getMessageServices" in tizen.messaging, "No getMessageServices method in messaging");
-    check_method_exists(tizen.messaging, "getMessageServices");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_messageServiceType_TypeMismatch.html b/common/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_messageServiceType_TypeMismatch.html
deleted file mode 100755 (executable)
index b9a3d56..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_getMessageServices_messageServiceType_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_getMessageServices_messageServiceType_TypeMismatch
-//==== LABEL Check type conversions for messageServiceType argument of Messaging.getMessageServices method
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, conversionTable, i, invalidType, exceptionName;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (services) {
-        assert_unreached("Shouldn't be here");
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    conversionTable = getTypeConversionExceptions("enum", false);
-
-    for(i = 0; i < conversionTable.length; i++) {
-        invalidType = conversionTable[i][0];
-        exceptionName = conversionTable[i][1];
-
-        assert_throws ({name: exceptionName},
-            function () {
-                tizen.messaging.getMessageServices(invalidType, serviceSuccess, serviceError);
-            }, "Constructed object with invalid MessageServiceType - " + invalidType);
-    }
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_missarg.html b/common/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_missarg.html
deleted file mode 100755 (executable)
index b995be5..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_getMessageServices_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_getMessageServices_missarg
-//==== LABEL Check with missing non-optional argument - Messaging.getMessageServices
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMA
-test(function () {
-    assert_throws(TYPE_MISMATCH_EXCEPTION,
-        function () {
-            tizen.messaging.getMessageServices();
-        }, TYPE_MISMATCH_ERR + " should be thrown - missing argument");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/Messaging_notexist.html b/common/tct-messaging-email-tizen-tests/messaging/Messaging_notexist.html
deleted file mode 100755 (executable)
index 0972413..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_notexist</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_notexist
-//==== PRIORITY P3
-//==== LABEL Check if interface Messaging exists, it should not.
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:Messaging U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA NIO
-
-test(function () {
-    check_no_interface_object("Messaging");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/messaging/support/getJsonConf.js b/common/tct-messaging-email-tizen-tests/messaging/support/getJsonConf.js
deleted file mode 100755 (executable)
index 913dfe7..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-Copyright (c) 2013 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Hao <haox.li@intel.com>
-        Zhongyuan Yuan <zy123.yuan@samsung.com>
-
-*/
-var RESOURCE_DIR;
-
-$.ajax({
-  url:"/opt/usr/home/owner/share/TCT_CONFIG",
-  data:{},
-  async:false,
-  success:function(data){
-    var regEx = /DEVICE_SUITE_TARGET_30=(.+)/i;
-    var path = regEx.exec(data);
-    RESOURCE_DIR = path[1];
-    TEST_DIR = "file://" + RESOURCE_DIR + "/tct-messaging-email-tizen-tests/";
-  }
-});
-
-$.ajax({
-  url:RESOURCE_DIR + "/tct/preconfigure.json",
-  dataType:"json",
-  data:{},
-  async:false,
-  success:function(data){
-    TEST_EMAIL_RECIPIENT_1 = data[0]["EMAIL_RECIPIENT_1"];
-    TEST_EMAIL_RECIPIENT_2 = data[0]["EMAIL_RECIPIENT_2"];
-  }
-});
diff --git a/common/tct-messaging-email-tizen-tests/messaging/support/messaging_common.js b/common/tct-messaging-email-tizen-tests/messaging/support/messaging_common.js
deleted file mode 100755 (executable)
index 1ba046d..0000000
+++ /dev/null
@@ -1,249 +0,0 @@
-/*
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        JungHyuk, Park <junghyuk.park@samsung.com>
-
-*/
-
-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
-
-var EMAIL_SYNC_INTERVAL = 10000;
-var EMAIL_RESEND_LIMIT = 30;
-var EMAIL_RESYNC_LIMIT = 30;
-
-var TYPE_MISMATCH_ERR  = 'TypeMismatchError';
-
-var MESSAGE_FOLDER_TYPE_INBOX = "INBOX";
-
-var TEST_DIR = "";
-var MESSAGE_ATTACHMENT_IMAGE_PATH = TEST_DIR + "webapi-tizen-messaging-test_image.jpg";
-var MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE = "image/jpg";
-
-var MESSAGE_ATTACHMENT_SOUND_PATH = TEST_DIR + "webapi-tizen-messaging-test_noise.mp3";
-var MESSAGE_ATTACHMENT_SOUND_MIME_TYPE = "audio/mp3";
-
-var MESSAGE_BODY_PLAIN = "Sample Plain Body"
-var MESSAGE_BODY_HTML = "<p>Sample HTML Body</p>"
-
-var generateSubject = function () {
-    var datetime = new Date().getTime();
-    var count = 0;
-    var subject = function(datetime, count) {
-        return "sample subject: "+datetime+"-"+count;
-    }
-
-    generateSubject = function () {
-        count++;
-        return subject(datetime, count);
-    }
-    return subject(datetime, count);
-};
-
-
-function createSimpleMessageTo(recipient) {
-    return new tizen.Message("messaging.email", {
-        subject: generateSubject(),
-        to: [recipient],
-        plainBody: MESSAGE_BODY_PLAIN
-    }); 
-}
-
-function sendMessage(t, service, msg, onSuccess, onError) {
-    var sendError, requestSending, resend=0;
-
-    sendError = t.step_func(function (error) {
-        if (resend <= EMAIL_RESEND_LIMIT) {
-            setTimeout(requestSending, 5000);
-        } else {
-            onError(error);
-        }
-    });
-
-    requestSending = t.step_func(function () {
-        resend++;
-        service.sendMessage(msg, onSuccess, sendError);
-    });
-
-    requestSending();
-}
-
-
-function sync(t, service, onSuccess, onError, limit) {
-    var syncError, requestSync, argc=arguments.length, resync=0;
-
-    syncError = t.step_func(function (error) {
-        if (resync <= EMAIL_RESYNC_LIMIT) {
-            setTimeout(requestSync, 5000);
-        } else {
-            onError(error);
-        }
-    });
-
-    requestSync = t.step_func(function () {
-        resync++;
-
-        if (argc >= 5) {
-            service.sync(onSuccess, syncError, limit);
-        } else  {
-            service.sync(onSuccess, syncError);
-        }
-    });
-
-    setTimeout(t.step_func(function () {
-        requestSync();
-    }), EMAIL_SYNC_INTERVAL);
-}
-
-
-function getEmailService(t, onSuccess, onError) {
-    t.step(function () {
-        tizen.messaging.getMessageServices(
-            "messaging.email",
-            t.step_func(function (services) {
-                assert_type(services, "array", "Not an array");
-                assert_greater_than(services.length, 0, "Received empty services array");
-                onSuccess(services[0]);
-            }),
-            onError
-        );
-    });
-}
-
-
-function message_conversation_test(t, onReady) {
-    var service, message, serviceSuccess, serviceError, addDraftSuccess, addDraftError,
-    filterConversation, findConversationsSuccess, findConversationsError;
-
-    findConversationsSuccess = t.step_func(function (conversations) {
-        assert_equals(conversations.length, 1, "Incorrect number of conversations found");
-        assert_equals(conversations[0].id, message.conversationId, "Found incorrect convesation");
-        t.step_func(onReady)(service, message, conversations[0]);
-    });
-
-    findConversationsError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filterConversation = new tizen.AttributeFilter("id", "EXACTLY", message.conversationId);
-        service.messageStorage.findConversations(filterConversation, findConversationsSuccess, findConversationsError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
-
-        message = new tizen.Message("messaging.email", {
-            subject: generateSubject(),
-            to: [TEST_EMAIL_RECIPIENT_2],
-            cc: [TEST_EMAIL_RECIPIENT_1],
-            bcc: [TEST_EMAIL_RECIPIENT_1],
-            plainBody: MESSAGE_BODY_PLAIN,
-            htmlBody: MESSAGE_BODY_HTML,
-            isHighPriority: false
-        }); 
-
-        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");
-
-        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    t.step(function () {
-        getEmailService(t, serviceSuccess, serviceError);
-    });
-}
-
-
-function findFolders(t, service, onSuccess, onError) {
-    var filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-    service.messageStorage.findFolders(filter, onSuccess, onError);
-}
-
-
-function getInboxFolder(t, folders) {
-    var i, inboxFolder;
-    t.step(function () {
-        for(i = 0; i < folders.length; i++) {
-            if (folders[i].type === MESSAGE_FOLDER_TYPE_INBOX) {
-                inboxFolder = folders[i];
-                break;
-            }
-        }
-        assert_not_equals(inboxFolder, undefined, "Inbox folder not found");
-    });
-    return inboxFolder;
-}
-
-function findMessages(t, service, folder, subject, onSuccess, onError) {
-    var subjectFilter, folderFilter, compositefilter;
-
-    t.step(function() {
-        folderFilter = new tizen.AttributeFilter("folderId", "EXACTLY", folder.id);
-        subjectFilter = new tizen.AttributeFilter("subject", "EXACTLY", subject);
-        compositefilter = new tizen.CompositeFilter("INTERSECTION", [folderFilter, subjectFilter]);
-        service.messageStorage.findMessages(compositefilter, onSuccess, onError);
-    });
-}
-
-function assert_message_equals(t, messages, message, folder) {
-    t.step(function() {
-        assert_type(messages, "array", "Not an array");
-        assert_equals(messages.length, 1, "incorrect messages found");
-        assert_true(messages[0] instanceof tizen.Message, "Not a Message");
-        assert_equals(messages[0].subject, message.subject, "Incorrect subject.");
-
-        if (arguments.length >= 4) {
-            assert_equals(messages[0].folderId, folder.id, "Incorrect folderId.");
-        }
-    });
-}
-
-function assert_draft_message_equals(t, messages, message) {
-    t.step(function() {
-        assert_type(messages, "array", "Not an array");
-        assert_equals(messages.length, 1, "incorrect messages found");
-        assert_true(messages[0] instanceof tizen.Message, "Not a Message");
-        assert_equals(messages[0].id, message.id, "Incorrect folderId.");
-        assert_equals(messages[0].subject, message.subject, "Incorrect subject.");
-    });
-}
-
-function assert_inbox_message_equals(t, messages, message, folder) {
-    t.step(function() {
-        assert_type(messages, "array", "Not an array");
-        assert_equals(messages.length, 1, "incorrect messages found");
-        assert_true(messages[0] instanceof tizen.Message, "Not a Message");
-        assert_equals(messages[0].subject, message.subject, "Incorrect subject.");
-        assert_equals(messages[0].folderId, folder.id, "Incorrect folderId.");
-    });
-}
-
-// change TEST_EMAIL_RECIPIENT_1 and TEST_EMAIL_RECIPIENT_2
-document.write('<script src="../webrunner/jquery-1.10.2.min.js"></script>');
-document.write('<script src="support/getJsonConf.js"></script>');
diff --git a/common/tct-messaging-email-tizen-tests/messaging/support/unitcommon.js b/common/tct-messaging-email-tizen-tests/messaging/support/unitcommon.js
deleted file mode 100755 (executable)
index 25c9664..0000000
+++ /dev/null
@@ -1,578 +0,0 @@
-/*
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-
- */
-
-
-MIN_BYTE = -128;
-MAX_BYTE = 127;
-MIN_OCTET = 0;
-MAX_OCTET = 255;
-MIN_SHORT = -32768;
-MAX_SHORT = 32767;
-MIN_UNSIGNED_SHORT = 0;
-MAX_UNSIGNED_SHORT = 65535;
-MIN_LONG = -2147483648;
-MAX_LONG = 2147483647;
-MIN_UNSIGNED_LONG = 0;
-MAX_UNSIGNED_LONG = 4294967295;
-MIN_LONG_LONG = -9223372036854775808;
-MAX_LONG_LONG = 9223372036854775807;
-MIN_UNSIGNED_LONG_LONG = 0;
-MAX_UNSIGNED_LONG_LONG = 18446744073709551615;
-
-TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'};
-NOT_FOUND_EXCEPTION = {name: 'NotFoundError'};
-INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'};
-IO_EXCEPTION = {name: 'IOError'};
-SECURITY_EXCEPTION = {name: 'SecurityError'};
-
-
-(function () {
-   var head_src = document.head.innerHTML;
-   if (head_src.search(/\/testharness.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharness.js"></script>\n');
-   }
-   if (head_src.search(/\/testharnessreport.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\n');
-   }
-})();
-
-var _registered_types = {};
-
-function _resolve_registered_type(type) {
-    while (type in _registered_types) {
-        type = _registered_types[type];
-    }
-    return type;
-}
-
-/**
- * Method checks extra argument for none argument method.
- * The only check is that method will not throw an exception.
- * Example usage:
- * checkExtraArgument(tizen.notification, "removeAll");
- *
- * @param object object
- * @param methodName string - name of the method
- */
-function checkExtraArgument(object, methodName) {
-    var extraArgument = [
-        null,
-        undefined,
-        "Tizen",
-        1,
-        false,
-        ["one", "two"],
-        {argument: 1},
-        function () {}
-    ], i;
-
-    for (i = 0; i < extraArgument.length; i++) {
-        object[methodName](extraArgument[i]);
-    }
-}
-
-/**
- * Method to validate conversion.
- * Example usage:
- *   conversionTable = getTypeConversionExceptions("functionObject", true);
- *   for(i = 0; i < conversionTable.length; i++) {
- *       errorCallback = conversionTable[i][0];
- *       exceptionName = conversionTable[i][1];
- *
- *       assert_throws({name : exceptionName},
- *       function () {
- *           tizen.systemsetting.setProperty("HOME_SCREEN",
- *               propertyValue, successCallback, errorCallback);
- *       }, exceptionName + " should be thrown - given incorrect errorCallback.");
- *   }
- *
- * @param conversionType
- * @param isOptional
- * @returns table of tables which contain value (index 0) and exceptionName (index 1)
- *
- */
-function getTypeConversionExceptions(conversionType, isOptional) {
-    var exceptionName = "TypeMismatchError",
-        conversionTable;
-    switch (conversionType) {
-        case "enum":
-            conversionTable = [
-                [undefined, exceptionName],
-                [0, exceptionName],
-                [true, exceptionName],
-                ["dummyInvalidEnumValue", exceptionName],
-                [{ }, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "double":
-            conversionTable = [
-                [undefined, exceptionName],
-                [NaN, exceptionName],
-                [Number.POSITIVE_INFINITY, exceptionName],
-                [Number.NEGATIVE_INFINITY, exceptionName],
-                ["TIZEN", exceptionName],
-                [{ name : "TIZEN" }, exceptionName],
-                [function () { }, exceptionName]
-            ];
-            break;
-        case "object":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "functionObject":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [[], exceptionName],
-                [{ }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "array":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [{ }, exceptionName],
-                [function () { }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "dictionary":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "long":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [[], exceptionName],
-                [{ }, exceptionName],
-                [function () { }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        default:
-            assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
-    };
-
-    return conversionTable;
-}
-
-
-function assert_type(obj, type, description) {
-    var org_type = type, prop_name, prop_type, prop_value;
-
-    type = _resolve_registered_type(type);
-
-    if (typeof (type) === 'string') {
-        type = type.toLowerCase();
-        switch (type) {
-            case 'object':
-            case 'string':
-            case 'number':
-            case 'function':
-            case 'boolean':
-            case 'undefined':
-            case 'xml':
-                assert_equals(typeof (obj), type, description);
-                break;
-            case 'null':
-                assert_true(obj === null, description);
-                break;
-            case 'array':
-                assert_true(Array.isArray(obj), description);
-                break;
-            case 'date':
-                assert_true(obj instanceof Date, description);
-                break;
-            case 'byte':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'octet':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'short':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned short':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'long long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned long long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'double':
-                assert_equals(typeof (obj), 'number', description);
-                break;
-            default:
-                assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
-        }
-    } else if (typeof (type) === 'function') {
-        assert_true(obj instanceof type, description);
-    } else if (typeof (type) === 'object') {
-        for (prop_name in type) {
-            prop_type = type[prop_name];
-            if (prop_type === 'function') {
-                assert_inherits(obj, prop_name);
-                assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
-            } else {
-                assert_own_property(obj, prop_name);
-            }
-        }
-    } else {
-        assert_unreached('Fix your test. Wrong type ' + org_type);
-    }
-}
-
-function register_type(alias, type_spec) {
-    _registered_types[alias] = type_spec;
-}
-
-/**
- * Method to check if attribute is const.
- * Example usage:
- * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
- *
- * @param obj  object to test which  has const attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    var tmp;
-    if (expectedValue === valueToAssign) {
-        assert_unreached("Fix your test. The same values given for "  + attributeName +
-            " in 'value' and 'valueToSet' arguments.");
-    }
-    if (typeof (attributeName) === "string") {
-        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
-        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
-        if (typeof (expectedType) !== "undefined") {
-            if (expectedValue === null) {
-                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
-            } else {
-                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
-            }
-        } else {
-            assert_unreached("Fix your test. Wrong type " + expectedType);
-        }
-        tmp = obj[attributeName];
-        obj[attributeName] = valueToAssign;
-        assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
-    } else {
-        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
-    }
-}
-
-/**
- * Method to check if attribute is readonly.
- * Example usage:
- * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
- *
- * @param obj  object to test which  has readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
-}
-
-/**
- * Method to check if attribute can be set to null.
- * Example usage:
- * check_not_nullable(syncInfo, "mode");
- *
- * @param obj object to test which has not nullable attribute
- * @param attributeName attribute name.
- */
-function check_not_nullable(obj, attributeName)
-{   var old_value = obj[attributeName];
-    obj[attributeName] = null;
-    assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
-    obj[attributeName] = old_value;
-}
-
-/**
- * Method to check NoInterfaceObject
- * Example usage:
- * check_no_interface_object("BluetoothAdapter")
- *
- * @param interfaceName interface name
- */
-function check_no_interface_object(interfaceName) {
-    assert_throws({name: "TypeError"}, function () {
-        tizen[interfaceName]();
-    },"Wrong call as a function");
-    assert_throws({name: "TypeError"}, function () {
-        new tizen[interfaceName]();
-    },"Wrong call as a new function");
-    assert_throws({name: "TypeError"}, function () {
-        ({}) instanceof tizen[interfaceName];
-    },"instanceof exception");
-    assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
-}
-
-
-/**
- * Method to check Constructors
- * Example usage:
- * check_constructor("BluetoothAdapter")
- *
- * @param constructorName constructor name
- */
-
-function check_constructor(constructorName) {
-    assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
-    assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
-    assert_throws({
-        name: "TypeError"
-    }, function () {
-        tizen[constructorName]();
-    }, "Constructor called as function.");
-}
-
-/**
- * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
- * That method also checks if given method exists in a given object.
- * Example usage:
- * check_method_exists(tizen.notification, "get");
- *
- * @param obj object with method
- * @param methodName name of the method to check.
- */
-function check_method_exists(obj, methodName) {
-    assert_type(obj[methodName], 'function', "Method does not exist.");
-}
-
-/**
- * Method to check extensibility of given object.
- * Method checks if new attribute and method can be added.
- * Example usage:
- * check_extensibility(tizen.notification);
- *
- * @param obj object to check
- */
-function check_extensibility(obj) {
-    var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
-    obj.newDummyMethod = function() {
-        return dummyMethodResult;
-    }
-    assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
-
-    obj.newDummyAttribute = dummyAttribute;
-    assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
-}
-
-/**
- * Method to check if attribute can be modify.
- * Example usage:
- * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
- *
- * @param obj  object to test which has not readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    if (expectedValue === valueToAssign) {
-        assert_unreached("Fix your test. The same values given for "  + attributeName +
-            " in 'value' and 'valueToSet' arguments.");
-    }
-    if (typeof (attributeName) === "string") {
-        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
-        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
-        if (typeof (expectedType) !== "undefined") {
-            if (expectedValue === null) {
-                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
-            } else {
-                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
-            }
-        } else {
-            assert_unreached("Fix your test. Wrong type " + expectedType);
-        }
-        obj[attributeName] = valueToAssign;
-        assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
-    } else {
-        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
-    }
-}
-
-/**
- * Method to check if whole array can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_array_assignments(message, "to", false);
- *
- * @param obj object which has the array as its property
- * @param array name of the array to check
- * @param isNullable indicates if the array can be null
- */
-function check_invalid_array_assignments(obj, array, isNullable) {
-    var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
-        val = obj[array], i;
-
-    if (!isNullable) {
-        obj[array] = null;
-        assert_not_equals(obj[array], null, "Non-nullable array was set to null");
-        assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
-        assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
-    }
-
-    for (i = 0 ; i < args.length ; i++) {
-        obj[array] = args[i];
-        assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
-        assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
-    }
-}
-
-/**
- * Method to check if an object can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_object_assignments(message, "body", false);
- *
- * @param parentObj object which has the 'obj' object as its property
- * @param obj name of the object to check
- * @param isNullable indicates if the object can be null
- */
-function check_invalid_obj_assignments(parentObj, obj, isNullable) {
-    var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
-        val = parentObj[obj], i;
-
-    if (!isNullable) {
-        parentObj[obj] = null;
-        assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
-    }
-
-    for (i = 0 ; i < args.length ; i++) {
-        parentObj[obj] = args[i];
-        assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
-    }
-}
-
-/**
- * Method to validate conversion for listeners.
- * Example usage:
- * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
- * for(i = 0; i < incorrectListeners.length; i++) {
- *     packageInformationEventCallback  = incorrectListeners[i][0];
- *     exceptionName = incorrectListeners[i][1];
- *     assert_throws({name : exceptionName},
- *        function () {
- *             tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
- *         }, exceptionName + " should be thrown - given incorrect successCallback.");
- * }
- *
- *
- * @param callbackNames Array with names
- * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
- *
- */
-function getListenerConversionExceptions(callbackNames) {
-    var result = [], conversionTable, i, j, listenerName;
-    conversionTable = getTypeConversionExceptions("functionObject", false);
-
-    for (i = 0; i < callbackNames.length; i++) {
-        for (j = 0; j < conversionTable.length; j++) {
-            listenerName = {};
-            listenerName[callbackNames[i]] = conversionTable[j][0];
-            result.push([listenerName, conversionTable[j][1]]);
-        }
-    }
-
-    return result;
-}
diff --git a/common/tct-messaging-email-tizen-tests/pack.py b/common/tct-messaging-email-tizen-tests/pack.py
deleted file mode 100755 (executable)
index f1f0cb4..0000000
+++ /dev/null
@@ -1,1104 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright (c) 2014 Intel Corporation.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# * Redistributions of works must retain the original copyright notice, this
-#   list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the original copyright
-#   notice, this list of conditions and the following disclaimer in the
-#   documentation and/or other materials provided with the distribution.
-# * Neither the name of Intel Corporation nor the names of its contributors
-#   may be used to endorse or promote products derived from this work without
-#   specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# Authors:
-#         Fan, Yugang <yugang.fan@intel.com>
-
-import os
-import shutil
-import glob
-import time
-import sys
-import stat
-import random
-import json
-import logging
-import zipfile
-import signal
-import subprocess
-import imp
-from optparse import OptionParser
-
-imp.reload(sys)
-
-TOOL_VERSION = "v0.1"
-VERSION_FILE = "VERSION"
-DEFAULT_CMD_TIMEOUT = 600
-PKG_TYPES = ["apk", "xpk", "wgt", "apk-aio", "cordova-aio", "cordova", "embeddingapi"]
-PKG_MODES = ["shared", "embedded"]
-PKG_ARCHS = ["x86", "arm"]
-PKG_BLACK_LIST = []
-PKG_NAME = None
-BUILD_PARAMETERS = None
-BUILD_ROOT = None
-BUILD_ROOT_SRC = None
-BUILD_ROOT_SRC_PKG = None
-BUILD_ROOT_SRC_PKG_APP = None
-BUILD_ROOT_SRC_SUB_APP = None
-BUILD_ROOT_PKG = None
-BUILD_ROOT_PKG_APP = None
-LOG = None
-LOG_LEVEL = logging.DEBUG
-
-
-class ColorFormatter(logging.Formatter):
-
-    def __init__(self, msg):
-        logging.Formatter.__init__(self, msg)
-
-    def format(self, record):
-        red, green, yellow, blue = range(4)
-        colors = {'INFO': green, 'DEBUG': blue,
-                  'WARNING': yellow, 'ERROR': red}
-        msg = record.msg
-        if msg[0] == "+":
-            msg = "\33[01m" + msg[1:] + "\033[0m"
-        elif msg[0] == "=":
-            msg = "\33[07m" + msg + "\033[0m"
-        levelname = record.levelname
-        if levelname in colors:
-            msg_color = "\033[0;%dm" % (
-                31 + colors[levelname]) + msg + "\033[0m"
-            record.msg = msg_color
-
-        return logging.Formatter.format(self, record)
-
-
-def pidExists(pid):
-    if pid < 0:
-        return False
-    try:
-        os.kill(pid, 0)
-    except OSError:
-        return False
-    else:
-        return True
-
-
-def isWindows():
-    return sys.platform == "cygwin" or sys.platform.startswith("win")
-
-
-def killProcesses(ppid=None):
-    if isWindows():
-        subprocess.check_call("TASKKILL /F /PID %s /T" % ppid)
-    else:
-        ppid = str(ppid)
-        pidgrp = []
-
-        def GetChildPids(ppid):
-            command = "ps -ef | awk '{if ($3 ==%s) print $2;}'" % str(ppid)
-            pids = os.popen(command).read()
-            pids = pids.split()
-            return pids
-
-        pidgrp.extend(GetChildPids(ppid))
-        for pid in pidgrp:
-            pidgrp.extend(GetChildPids(pid))
-
-        pidgrp.insert(0, ppid)
-        while len(pidgrp) > 0:
-            pid = pidgrp.pop()
-            try:
-                os.kill(int(pid), signal.SIGKILL)
-                return True
-            except OSError:
-                try:
-                    os.popen("kill -9 %d" % int(pid))
-                    return True
-                except Exception:
-                    return False
-
-
-def safelyGetValue(origin_json=None, key=None):
-    if origin_json and key and key in origin_json:
-        return origin_json[key]
-    return None
-
-
-def checkContains(origin_str=None, key_str=None):
-    if origin_str.upper().find(key_str.upper()) >= 0:
-        return True
-    return False
-
-
-def getRandomStr():
-    str_pool = list("abcdefghijklmnopqrstuvwxyz1234567890")
-    random_str = ""
-    for i in range(15):
-        index = random.randint(0, len(str_pool) - 1)
-        random_str = random_str + str_pool[index]
-
-    return random_str
-
-
-def zipDir(dir_path, zip_file):
-    try:
-        if os.path.exists(zip_file):
-            if not doRemove([zip_file]):
-                return False
-        if not os.path.exists(os.path.dirname(zip_file)):
-            os.makedirs(os.path.dirname(zip_file))
-        z_file = zipfile.ZipFile(zip_file, "w")
-        orig_dir = os.getcwd()
-        os.chdir(dir_path)
-        for root, dirs, files in os.walk("."):
-            for i_file in files:
-                LOG.info("zip %s" % os.path.join(root, i_file))
-                z_file.write(os.path.join(root, i_file))
-        z_file.close()
-        os.chdir(orig_dir)
-    except Exception as e:
-        LOG.error("Fail to pack %s to %s: %s" % (dir_path, zip_file, e))
-        return False
-    LOG.info("Done to zip %s to %s" % (dir_path, zip_file))
-    return True
-
-
-def overwriteCopy(src, dest, symlinks=False, ignore=None):
-    if not os.path.exists(dest):
-        os.makedirs(dest)
-        shutil.copystat(src, dest)
-    sub_list = os.listdir(src)
-    if ignore:
-        excl = ignore(src, sub_list)
-        sub_list = [x for x in sub_list if x not in excl]
-    for i_sub in sub_list:
-        s_path = os.path.join(src, i_sub)
-        d_path = os.path.join(dest, i_sub)
-        if symlinks and os.path.islink(s_path):
-            if os.path.lexists(d_path):
-                os.remove(d_path)
-            os.symlink(os.readlink(s_path), d_path)
-            try:
-                s_path_s = os.lstat(s_path)
-                s_path_mode = stat.S_IMODE(s_path_s.st_mode)
-                os.lchmod(d_path, s_path_mode)
-            except Exception:
-                pass
-        elif os.path.isdir(s_path):
-            overwriteCopy(s_path, d_path, symlinks, ignore)
-        else:
-            shutil.copy2(s_path, d_path)
-
-
-def doCopy(src_item=None, dest_item=None):
-    LOG.info("Copying %s to %s" % (src_item, dest_item))
-    try:
-        if os.path.isdir(src_item):
-            overwriteCopy(src_item, dest_item, symlinks=True)
-        else:
-            if not os.path.exists(os.path.dirname(dest_item)):
-                LOG.info("Create non-existent dir: %s" %
-                         os.path.dirname(dest_item))
-                os.makedirs(os.path.dirname(dest_item))
-            shutil.copy2(src_item, dest_item)
-    except Exception as e:
-        LOG.error("Fail to copy file %s: %s" % (src_item, e))
-        return False
-
-    return True
-
-
-def doRemove(target_file_list=None):
-    for i_file in target_file_list:
-        LOG.info("Removing %s" % i_file)
-        try:
-            if os.path.isdir(i_file):
-                shutil.rmtree(i_file)
-            else:
-                os.remove(i_file)
-        except Exception as e:
-            LOG.error("Fail to remove file %s: %s" % (i_file, e))
-            return False
-    return True
-
-
-def updateCopylistPrefix(src_default, dest_default, src_sub, dest_sub):
-    src_new = ""
-    dest_new = ""
-    PACK_TOOL_TAG = "PACK-TOOL-ROOT"
-
-    if src_sub[0:len(PACK_TOOL_TAG)] == PACK_TOOL_TAG:
-        src_new = src_sub.replace(PACK_TOOL_TAG, BUILD_PARAMETERS.pkgpacktools)
-    else:
-        src_new = os.path.join(src_default, src_sub)
-
-    if dest_sub[0:len(PACK_TOOL_TAG)] == PACK_TOOL_TAG:
-        dest_new = dest_sub.replace(PACK_TOOL_TAG, BUILD_ROOT)
-    else:
-        dest_new = os.path.join(dest_default, dest_sub)
-
-    return (src_new, dest_new)
-
-
-def buildSRC(src=None, dest=None, build_json=None):
-    if not os.path.exists(src):
-        LOG.info("+Src dir does not exist, skip build src process ...")
-        return True
-    if not doCopy(src, dest):
-        return False
-    if "blacklist" in build_json:
-        if build_json["blacklist"].count("") > 0:
-            build_json["blacklist"].remove("")
-        black_file_list = []
-        for i_black in build_json["blacklist"]:
-            black_file_list = black_file_list + \
-                glob.glob(os.path.join(dest, i_black))
-
-        black_file_list = list(set(black_file_list))
-        if not doRemove(black_file_list):
-            return False
-
-    if "copylist" in build_json:
-        for i_s_key in build_json["copylist"].keys():
-            if i_s_key and build_json["copylist"][i_s_key]:
-                (src_updated, dest_updated) = updateCopylistPrefix(
-                    src, dest, i_s_key, build_json["copylist"][i_s_key])
-                if not doCopy(src_updated, dest_updated):
-                    return False
-
-    return True
-
-
-def exitHandler(return_code=1):
-    LOG.info("+Cleaning build root folder ...")
-    if not BUILD_PARAMETERS.bnotclean and os.path.exists(BUILD_ROOT):
-        if not doRemove([BUILD_ROOT]):
-            LOG.error("Fail to clean build root, exit ...")
-            sys.exit(1)
-
-    if return_code == 0:
-        LOG.info("================ DONE ================")
-    else:
-        LOG.error(
-            "================ Found Something Wrong !!! ================")
-    sys.exit(return_code)
-
-
-def prepareBuildRoot():
-    LOG.info("+Preparing build root folder ...")
-    global BUILD_ROOT
-    global BUILD_ROOT_SRC
-    global BUILD_ROOT_SRC_PKG
-    global BUILD_ROOT_SRC_PKG_APP
-    global BUILD_ROOT_SRC_SUB_APP
-    global BUILD_ROOT_PKG
-    global BUILD_ROOT_PKG_APP
-
-    while True:
-        BUILD_ROOT = os.path.join("/tmp", getRandomStr())
-        if os.path.exists(BUILD_ROOT):
-            continue
-        else:
-            break
-
-    BUILD_ROOT_SRC = os.path.join(BUILD_ROOT, PKG_NAME)
-    BUILD_ROOT_SRC_PKG = os.path.join(BUILD_ROOT, "pkg")
-    BUILD_ROOT_SRC_PKG_APP = os.path.join(BUILD_ROOT, "pkg-app")
-    BUILD_ROOT_SRC_SUB_APP = os.path.join(BUILD_ROOT, "sub-app")
-    BUILD_ROOT_PKG = os.path.join(BUILD_ROOT, "pkg", "opt", PKG_NAME)
-    BUILD_ROOT_PKG_APP = os.path.join(BUILD_ROOT, "pkg-app", "opt", PKG_NAME)
-
-    if not doCopy(BUILD_PARAMETERS.srcdir, BUILD_ROOT_SRC):
-        return False
-    if not doRemove(
-            glob.glob(os.path.join(BUILD_ROOT_SRC, "%s*.zip" % PKG_NAME))):
-        return False
-
-    return True
-
-
-def doCMD(cmd, time_out=DEFAULT_CMD_TIMEOUT, no_check_return=False):
-    LOG.info("Doing CMD: [ %s ]" % cmd)
-    pre_time = time.time()
-    cmd_proc = subprocess.Popen(args=cmd, shell=True)
-    while True:
-        cmd_exit_code = cmd_proc.poll()
-        elapsed_time = time.time() - pre_time
-        if cmd_exit_code is None:
-            if elapsed_time >= time_out:
-                killProcesses(ppid=cmd_proc.pid)
-                LOG.error("Timeout to exe CMD")
-                return False
-        else:
-            if not no_check_return and cmd_exit_code != 0:
-                LOG.error("Fail to exe CMD")
-                return False
-            break
-        time.sleep(2)
-    return True
-
-
-def doCMDWithOutput(cmd, time_out=DEFAULT_CMD_TIMEOUT):
-    LOG.info("Doing CMD: [ %s ]" % cmd)
-    pre_time = time.time()
-    output = []
-    cmd_return_code = 1
-    cmd_proc = subprocess.Popen(
-        cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
-
-    while True:
-        output_line = cmd_proc.stdout.readline().decode("UTF-8").strip("\r\n")
-        cmd_return_code = cmd_proc.poll()
-        elapsed_time = time.time() - pre_time
-        if cmd_return_code is None:
-            if elapsed_time >= time_out:
-                killProcesses(ppid=cmd_proc.pid)
-                LOG.error("Timeout to exe CMD")
-                return False
-        elif output_line == '' and cmd_return_code is not None:
-            break
-
-        sys.stdout.write("%s\n" % output_line)
-        sys.stdout.flush()
-        output.append(output_line)
-    if cmd_return_code != 0:
-        LOG.error("Fail to exe CMD")
-
-    return (cmd_return_code, output)
-
-
-def packXPK(build_json=None, app_src=None, app_dest=None, app_name=None):
-    pack_tool = os.path.join(BUILD_ROOT, "make_xpk.py")
-    if not os.path.exists(pack_tool):
-        if not doCopy(
-                os.path.join(BUILD_PARAMETERS.pkgpacktools, "make_xpk.py"),
-                pack_tool):
-            return False
-    orig_dir = os.getcwd()
-    os.chdir(BUILD_ROOT)
-    if os.path.exists("key.file"):
-        if not doRemove(["key.file"]):
-            os.chdir(orig_dir)
-            return False
-
-    key_file = safelyGetValue(build_json, "key-file")
-    if key_file == "key.file":
-        LOG.error(
-            "\"key.file\" is reserved name for default key file, "
-            "pls change the key file name ...")
-        os.chdir(orig_dir)
-        return False
-    if key_file:
-        pack_cmd = "python make_xpk.py %s %s -o %s" % (
-            app_src, key_file, os.path.join(app_dest, "%s.xpk" % app_name))
-    else:
-        pack_cmd = "python make_xpk.py %s key.file -o %s" % (
-            app_src, os.path.join(app_dest, "%s.xpk" % app_name))
-    if not doCMD(pack_cmd, DEFAULT_CMD_TIMEOUT):
-        os.chdir(orig_dir)
-        return False
-
-    os.chdir(orig_dir)
-    return True
-
-
-def packWGT(build_json=None, app_src=None, app_dest=None, app_name=None):
-    if not zipDir(app_src, os.path.join(app_dest, "%s.wgt" % app_name)):
-        return False
-
-    if BUILD_PARAMETERS.signature == True:
-        if safelyGetValue(build_json, "sign-flag") == "true":
-            if not os.path.exists(os.path.join(BUILD_ROOT, "signing")):
-                if not doCopy(
-                        os.path.join(BUILD_PARAMETERS.pkgpacktools, "signing"),
-                        os.path.join(BUILD_ROOT, "signing")):
-                    return False
-            signing_cmd = "%s --dist platform %s" % (
-                os.path.join(BUILD_ROOT, "signing", "sign-widget.sh"),
-                os.path.join(app_dest, "%s.wgt" % app_name))
-            if not doCMD(signing_cmd, DEFAULT_CMD_TIMEOUT):
-                return False
-
-    return True
-
-
-def packAPK(build_json=None, app_src=None, app_dest=None, app_name=None):
-    app_name = app_name.replace("-", "_")
-
-    if not os.path.exists(os.path.join(BUILD_ROOT, "crosswalk")):
-        if not doCopy(
-                os.path.join(BUILD_PARAMETERS.pkgpacktools, "crosswalk"),
-                os.path.join(BUILD_ROOT, "crosswalk")):
-            return False
-
-    files = glob.glob(os.path.join(BUILD_ROOT, "crosswalk", "*.apk"))
-    if files:
-        if not doRemove(files):
-            return False
-
-    ext_opt = ""
-    cmd_opt = ""
-    url_opt = ""
-    mode_opt = ""
-    arch_opt = ""
-    icon_opt = ""
-
-    common_opts = safelyGetValue(build_json, "apk-common-opts")
-    if common_opts is None:
-        common_opts = ""
-
-    tmp_opt = safelyGetValue(build_json, "apk-ext-opt")
-    if tmp_opt:
-        ext_opt = "--extensions='%s'" % os.path.join(BUILD_ROOT_SRC, tmp_opt)
-
-    tmp_opt = safelyGetValue(build_json, "apk-cmd-opt")
-    if tmp_opt:
-        cmd_opt = "--xwalk-command-line='%s'" % tmp_opt
-
-    tmp_opt = safelyGetValue(build_json, "apk-url-opt")
-    if tmp_opt:
-        url_opt = "--app-url='%s'" % tmp_opt
-
-    tmp_opt = safelyGetValue(build_json, "apk-mode-opt")
-    if tmp_opt:
-        if tmp_opt in PKG_MODES:
-            mode_opt = "--mode=%s" % tmp_opt
-        else:
-            LOG.error("Got wrong app mode: %s" % tmp_opt)
-            return False
-    else:
-        mode_opt = "--mode=%s" % BUILD_PARAMETERS.pkgmode
-
-    tmp_opt = safelyGetValue(build_json, "apk-arch-opt")
-    if tmp_opt:
-        if tmp_opt in PKG_ARCHS:
-            arch_opt = "--arch=%s" % tmp_opt
-        else:
-            LOG.error("Got wrong app arch: %s" % tmp_opt)
-            return False
-    else:
-        arch_opt = "--arch=%s" % BUILD_PARAMETERS.pkgarch
-
-    tmp_opt = safelyGetValue(build_json, "apk-icon-opt")
-    if tmp_opt:
-        icon_opt = "--icon=%s" % tmp_opt
-    elif tmp_opt == "":
-        icon_opt = ""
-    else:
-        icon_opt = "--icon=%s/icon.png" % app_src
-
-    if safelyGetValue(build_json, "apk-type") == "MANIFEST":
-        pack_cmd = "python make_apk.py --package=org.xwalk.%s " \
-            "--manifest=%s/manifest.json  %s %s %s %s %s" % (
-                app_name, app_src, mode_opt, arch_opt,
-                ext_opt, cmd_opt, common_opts)
-    elif safelyGetValue(build_json, "apk-type") == "HOSTEDAPP":
-        if not url_opt:
-            LOG.error(
-                "Fail to find the key \"apk-url-opt\" for hosted APP packing")
-            return False
-        pack_cmd = "python make_apk.py --package=org.xwalk.%s --name=%s %s " \
-                   "%s %s %s %s %s" % (
-                       app_name, app_name, mode_opt, arch_opt, ext_opt,
-                       cmd_opt, url_opt, common_opts)
-    else:
-        pack_cmd = "python make_apk.py --package=org.xwalk.%s --name=%s " \
-                   "--app-root=%s --app-local-path=index.html %s %s " \
-                   "%s %s %s %s" % (
-                       app_name, app_name, app_src, icon_opt, mode_opt,
-                       arch_opt, ext_opt, cmd_opt, common_opts)
-
-    orig_dir = os.getcwd()
-    os.chdir(os.path.join(BUILD_ROOT, "crosswalk"))
-    if not doCMD(pack_cmd, DEFAULT_CMD_TIMEOUT):
-        os.chdir(orig_dir)
-        return False
-
-    files = glob.glob(os.path.join(BUILD_ROOT, "crosswalk", "*.apk"))
-    if files:
-        if not doCopy(files[0], os.path.join(app_dest, "%s.apk" % app_name)):
-            os.chdir(orig_dir)
-            return False
-    else:
-        LOG.error("Fail to find the apk file")
-        os.chdir(orig_dir)
-        return False
-
-    os.chdir(orig_dir)
-    return True
-
-
-def packCordova(build_json=None, app_src=None, app_dest=None, app_name=None):
-    pack_tool = os.path.join(BUILD_ROOT, "cordova")
-    app_name = app_name.replace("-", "_")
-    if not os.path.exists(pack_tool):
-        if not doCopy(
-                os.path.join(BUILD_PARAMETERS.pkgpacktools, "cordova"),
-                pack_tool):
-            return False
-
-    plugin_tool = os.path.join(BUILD_ROOT, "cordova_plugins")
-    if not os.path.exists(plugin_tool):
-        if not doCopy(
-                os.path.join(BUILD_PARAMETERS.pkgpacktools, "cordova_plugins"),
-                plugin_tool):
-            return False
-
-    orig_dir = os.getcwd()
-    os.chdir(pack_tool)
-    pack_cmd = "bin/create %s org.xwalk.%s %s" % (
-        app_name, app_name, app_name)
-    if not doCMD(pack_cmd, DEFAULT_CMD_TIMEOUT):
-        os.chdir(orig_dir)
-        return False
-
-    os.chdir(os.path.join(pack_tool, app_name))
-    plugin_dirs = os.listdir(plugin_tool)
-    for i_dir in plugin_dirs:
-        i_plugin_dir = os.path.join(plugin_tool, i_dir)
-        plugin_install_cmd = "plugman install --platform android --project " \
-                             "./ --plugin %s" % i_plugin_dir
-        if not doCMD(plugin_install_cmd, DEFAULT_CMD_TIMEOUT):
-            os.chdir(orig_dir)
-            return False
-    os.chdir(pack_tool)
-
-    if not doCopy(app_src, os.path.join(pack_tool, app_name, "assets", "www")):
-        os.chdir(orig_dir)
-        return False
-    os.chdir(os.path.join(BUILD_ROOT, "cordova", app_name))
-    pack_cmd = "./cordova/build"
-    if not doCMD(pack_cmd, DEFAULT_CMD_TIMEOUT):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(os.path.join(
-            BUILD_ROOT, "cordova", app_name, "bin", "%s-debug.apk" %
-            app_name),
-            os.path.join(app_dest, "%s.apk" % app_name)):
-        os.chdir(orig_dir)
-        return False
-    os.chdir(orig_dir)
-    return True
-
-
-def packEmbeddingAPI(
-        build_json=None, app_src=None, app_dest=None, app_name=None):
-    app_name = app_name.replace("-", "_")
-
-    library_dir_name = safelyGetValue(build_json, "embeddingapi-library-name")
-    if not library_dir_name:
-        LOG.error("Fail to get embeddingapi-library-name ...")
-        return False
-
-    new_library_dir_name = "core_library"
-    pack_tool = os.path.join(app_src, "..", new_library_dir_name)
-
-    if os.path.exists(pack_tool):
-        if not doRemove([pack_tool]):
-            return False
-
-    if not doCopy(
-            os.path.join(BUILD_PARAMETERS.pkgpacktools, library_dir_name),
-            pack_tool):
-        return False
-
-    if os.path.exists(os.path.join(pack_tool, "bin", "res", "crunch")):
-        if not doRemove([os.path.join(pack_tool, "bin", "res", "crunch")]):
-            return False
-
-    orig_dir = os.getcwd()
-    android_project_path = os.path.join(app_src, "android-project")
-    try:
-        os.makedirs(android_project_path)
-    except Exception as e:
-        LOG.error("Fail to create tmp project dir: %s" % e)
-        return False
-
-    (return_code, output) = doCMDWithOutput("android list target")
-    api_level = ""
-    for line in output:
-        if "API level" in line:
-            api_level = line.split(":")[1].strip()
-            break
-    if not api_level:
-        LOG.error("Fail to get Android API Level")
-        os.chdir(orig_dir)
-        return False
-
-    android_project_cmd = "android create project --name %s --target " \
-                          "android-%s --path %s --package com.%s " \
-                          "--activity MainActivity" % (
-                              app_name, api_level, android_project_path, app_name)
-    if not doCMD(android_project_cmd):
-        os.chdir(orig_dir)
-        return False
-
-    try:
-        update_file = open(
-            os.path.join(android_project_path, "project.properties"), "a+")
-        update_file.writelines(
-            "{0}\n".format(
-                "android.library.reference.1=../%s" %
-                new_library_dir_name))
-        update_file.close()
-    except Exception as e:
-        LOG.error(
-            "Fail to update %s: %s" %
-            (os.path.join(
-                android_project_path,
-                "project.properties"),
-                e))
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(os.path.join(android_project_path, "build.xml"),
-                  os.path.join(app_src, "build.xml")):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(
-            os.path.join(android_project_path, "project.properties"),
-            os.path.join(app_src, "project.properties")):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(
-            os.path.join(android_project_path, "local.properties"),
-            os.path.join(app_src, "local.properties")):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(
-            os.path.join(android_project_path, "local.properties"),
-            os.path.join(pack_tool, "local.properties")):
-        os.chdir(orig_dir)
-        return False
-
-    os.chdir(app_src)
-    if not doCMD("ant debug"):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(
-            os.path.join(app_src, "bin", "%s-debug.apk" % app_name),
-            os.path.join(app_dest, "%s.apk" % app_name)):
-        os.chdir(orig_dir)
-        return False
-    os.chdir(orig_dir)
-    return True
-
-
-def packAPP(build_json=None, app_src=None, app_dest=None, app_name=None):
-    LOG.info("Packing %s(%s)" % (app_name, app_src))
-    if not os.path.exists(app_dest):
-        try:
-            os.makedirs(app_dest)
-        except Exception as e:
-            LOG.error("Fail to init package install dest dir: %s" % e)
-            return False
-
-    if checkContains(BUILD_PARAMETERS.pkgtype, "XPK"):
-        if not packXPK(build_json, app_src, app_dest, app_name):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "WGT"):
-        if not packWGT(build_json, app_src, app_dest, app_name):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "APK"):
-        if not packAPK(build_json, app_src, app_dest, app_name):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "CORDOVA"):
-        if not packCordova(build_json, app_src, app_dest, app_name):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "EMBEDDINGAPI"):
-        if not packEmbeddingAPI(build_json, app_src, app_dest, app_name):
-            return False
-    else:
-        LOG.error("Got wrong pkg type: %s" % BUILD_PARAMETERS.pkgtype)
-        return False
-
-    LOG.info("Success to pack APP: %s" % app_name)
-    return True
-
-
-def createIndexFile(index_file_path=None, hosted_app=None):
-    try:
-        if hosted_app:
-            index_url = "http://127.0.0.1/opt/%s/webrunner/index.html?" \
-                "testsuite=../tests.xml&testprefix=../../.." % PKG_NAME
-        else:
-            index_url = "opt/%s/webrunner/index.html?testsuite=../tests.xml" \
-                        "&testprefix=../../.." % PKG_NAME
-        html_content = "<!doctype html><head><meta http-equiv='Refresh' " \
-                       "content='1; url=%s'></head>" % index_url
-        index_file = open(index_file_path, "w")
-        index_file.write(html_content)
-        index_file.close()
-    except Exception as e:
-        LOG.error("Fail to create index.html for top-app: %s" % e)
-        return False
-    LOG.info("Success to create index file %s" % index_file_path)
-    return True
-
-
-def buildSubAPP(app_dir=None, build_json=None, app_dest_default=None):
-    app_dir_inside = safelyGetValue(build_json, "app-dir")
-    if app_dir_inside:
-        app_dir = app_dir_inside
-    LOG.info("+Building sub APP(s) from %s ..." % app_dir)
-    app_dir = os.path.join(BUILD_ROOT_SRC, app_dir)
-    app_name = safelyGetValue(build_json, "app-name")
-    if not app_name:
-        app_name = os.path.basename(app_dir)
-
-    app_src = os.path.join(BUILD_ROOT_SRC_SUB_APP, app_name)
-    if buildSRC(app_dir, app_src, build_json):
-        app_dest = safelyGetValue(build_json, "install-path")
-        if app_dest:
-            app_dest = os.path.join(app_dest_default, app_dest)
-        else:
-            app_dest = app_dest_default
-
-        if safelyGetValue(build_json, "all-apps") == "true":
-            app_dirs = os.listdir(app_src)
-            apps_num = 0
-            for i_app_dir in app_dirs:
-                if os.path.isdir(os.path.join(app_src, i_app_dir)):
-                    i_app_name = os.path.basename(i_app_dir)
-                    if not packAPP(
-                            build_json, os.path.join(app_src, i_app_name),
-                            app_dest, i_app_name):
-                        return False
-                    else:
-                        apps_num = apps_num + 1
-            if apps_num > 0:
-                LOG.info("Totally packed %d apps in %s" % (apps_num, app_dir))
-                return True
-        else:
-            return packAPP(build_json, app_src, app_dest, app_name)
-    return False
-
-
-def buildPKGAPP(build_json=None):
-    LOG.info("+Building package APP ...")
-    if not doCopy(os.path.join(BUILD_ROOT_SRC, "icon.png"),
-                  os.path.join(BUILD_ROOT_SRC_PKG_APP, "icon.png")):
-        return False
-
-    if checkContains(BUILD_PARAMETERS.pkgtype, "XPK"):
-        if not doCopy(
-                os.path.join(BUILD_ROOT_SRC, "manifest.json"),
-                os.path.join(BUILD_ROOT_SRC_PKG_APP, "manifest.json")):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "WGT"):
-        if not doCopy(os.path.join(BUILD_ROOT_SRC, "config.xml"),
-                      os.path.join(BUILD_ROOT_SRC_PKG_APP, "config.xml")):
-            return False
-
-    hosted_app = False
-    if safelyGetValue(build_json, "hosted-app") == "true":
-        hosted_app = True
-    if not createIndexFile(
-            os.path.join(BUILD_ROOT_SRC_PKG_APP, "index.html"), hosted_app):
-        return False
-
-    if not hosted_app:
-        if "blacklist" not in build_json:
-            build_json.update({"blacklist": []})
-        build_json["blacklist"].extend(PKG_BLACK_LIST)
-        if not buildSRC(BUILD_ROOT_SRC, BUILD_ROOT_PKG_APP, build_json):
-            return False
-
-        if "subapp-list" in build_json:
-            for i_sub_app in build_json["subapp-list"].keys():
-                if not buildSubAPP(
-                        i_sub_app, build_json["subapp-list"][i_sub_app],
-                        BUILD_ROOT_PKG_APP):
-                    return False
-
-    if not packAPP(
-            build_json, BUILD_ROOT_SRC_PKG_APP, BUILD_ROOT_PKG, PKG_NAME):
-        return False
-
-    return True
-
-
-def buildPKG(build_json=None):
-    if "blacklist" not in build_json:
-        build_json.update({"blacklist": []})
-    build_json["blacklist"].extend(PKG_BLACK_LIST)
-    if not buildSRC(BUILD_ROOT_SRC, BUILD_ROOT_PKG, build_json):
-        return False
-
-    if "subapp-list" in build_json:
-        for i_sub_app in build_json["subapp-list"].keys():
-            if not buildSubAPP(
-                    i_sub_app, build_json["subapp-list"][i_sub_app],
-                    BUILD_ROOT_PKG):
-                return False
-
-    if "pkg-app" in build_json:
-        if not buildPKGAPP(build_json["pkg-app"]):
-            return False
-
-    return True
-
-
-def main():
-    global LOG
-    LOG = logging.getLogger("pack-tool")
-    LOG.setLevel(LOG_LEVEL)
-    stream_handler = logging.StreamHandler()
-    stream_handler.setLevel(LOG_LEVEL)
-    stream_formatter = ColorFormatter("[%(asctime)s] %(message)s")
-    stream_handler.setFormatter(stream_formatter)
-    LOG.addHandler(stream_handler)
-
-    try:
-        usage = "Usage: ./pack.py -t apk -m shared -a x86"
-        opts_parser = OptionParser(usage=usage)
-        opts_parser.add_option(
-            "-c",
-            "--cfg",
-            dest="pkgcfg",
-            help="specify the path of config json file")
-        opts_parser.add_option(
-            "-t",
-            "--type",
-            dest="pkgtype",
-            help="specify the pkg type, e.g. apk, xpk, wgt ...")
-        opts_parser.add_option(
-            "-m",
-            "--mode",
-            dest="pkgmode",
-            help="specify the apk mode, e.g. shared, embedded")
-        opts_parser.add_option(
-            "-a",
-            "--arch",
-            dest="pkgarch",
-            help="specify the apk arch, e.g. x86, arm")
-        opts_parser.add_option(
-            "-d",
-            "--dest",
-            dest="destdir",
-            help="specify the installation folder for packed package")
-        opts_parser.add_option(
-            "-s",
-            "--src",
-            dest="srcdir",
-            help="specify the path of pkg resource for packing")
-        opts_parser.add_option(
-            "--tools",
-            dest="pkgpacktools",
-            help="specify the parent folder of pack tools")
-        opts_parser.add_option(
-            "--notclean",
-            dest="bnotclean",
-            action="store_true",
-            help="disable the build root clean after the packing")
-        opts_parser.add_option(
-            "--sign",
-            dest="signature",
-            action="store_true",
-            help="signature operation will be done when packing wgt")
-        opts_parser.add_option(
-            "-v",
-            "--version",
-            dest="bversion",
-            action="store_true",
-            help="show this tool's version")
-        opts_parser.add_option(
-            "--pkg-version",
-            dest="pkgversion",
-            help="specify the pkg version, e.g. 0.0.0.1")
-
-        if len(sys.argv) == 1:
-            sys.argv.append("-h")
-
-        global BUILD_PARAMETERS
-        (BUILD_PARAMETERS, args) = opts_parser.parse_args()
-    except Exception as e:
-        LOG.error("Got wrong options: %s, exit ..." % e)
-        sys.exit(1)
-
-    if BUILD_PARAMETERS.bversion:
-        LOG.info("Version: %s" % TOOL_VERSION)
-        sys.exit(0)
-
-    if not BUILD_PARAMETERS.srcdir:
-        BUILD_PARAMETERS.srcdir = os.getcwd()
-    BUILD_PARAMETERS.srcdir = os.path.expanduser(BUILD_PARAMETERS.srcdir)
-
-    if not os.path.exists(
-            os.path.join(BUILD_PARAMETERS.srcdir, "..", "..", VERSION_FILE)):
-        if not os.path.exists(
-                os.path.join(BUILD_PARAMETERS.srcdir, "..", VERSION_FILE)):
-            if not os.path.exists(
-                    os.path.join(BUILD_PARAMETERS.srcdir, VERSION_FILE)):
-                LOG.info(
-                    "Not found pkg version file, try to use option --pkg-version")
-                pkg_version_file_path = None
-            else:
-                pkg_version_file_path = os.path.join(
-                    BUILD_PARAMETERS.srcdir, VERSION_FILE)
-        else:
-            pkg_version_file_path = os.path.join(
-                BUILD_PARAMETERS.srcdir, "..", VERSION_FILE)
-    else:
-        pkg_version_file_path = os.path.join(
-            BUILD_PARAMETERS.srcdir, "..", "..", VERSION_FILE)
-
-    try:
-        pkg_main_version = 0
-        pkg_release_version = 0
-        if BUILD_PARAMETERS.pkgversion:
-            LOG.info("Using %s as pkg version " % BUILD_PARAMETERS.pkgversion)
-            pkg_main_version = BUILD_PARAMETERS.pkgversion
-        else:
-            if pkg_version_file_path is not None:
-                LOG.info("Using pkg version file: %s" % pkg_version_file_path)
-                with open(pkg_version_file_path, "rt") as pkg_version_file:
-                    pkg_version_raw = pkg_version_file.read()
-                    pkg_version_file.close()
-                    pkg_version_json = json.loads(pkg_version_raw)
-                    pkg_main_version = pkg_version_json["main-version"]
-                    pkg_release_version = pkg_version_json["release-version"]
-    except Exception as e:
-        LOG.error("Fail to read pkg version file: %s, exit ..." % e)
-        sys.exit(1)
-
-    if not BUILD_PARAMETERS.pkgtype:
-        LOG.error("No pkg type provided, exit ...")
-        sys.exit(1)
-    elif not BUILD_PARAMETERS.pkgtype in PKG_TYPES:
-        LOG.error("Wrong pkg type, only support: %s, exit ..." %
-                  PKG_TYPES)
-        sys.exit(1)
-
-    if BUILD_PARAMETERS.pkgtype == "apk" or \
-       BUILD_PARAMETERS.pkgtype == "apk-aio":
-        if not BUILD_PARAMETERS.pkgmode:
-            LOG.error("No pkg mode option provided, exit ...")
-            sys.exit(1)
-        elif not BUILD_PARAMETERS.pkgmode in PKG_MODES:
-            LOG.error(
-                "Wrong pkg mode option provided, only support:%s, exit ..." %
-                PKG_MODES)
-            sys.exit(1)
-
-        if not BUILD_PARAMETERS.pkgarch:
-            LOG.error("No pkg arch option provided, exit ...")
-            sys.exit(1)
-        elif not BUILD_PARAMETERS.pkgarch in PKG_ARCHS:
-            LOG.error(
-                "Wrong pkg arch option provided, only support:%s, exit ..." %
-                PKG_ARCHS)
-            sys.exit(1)
-
-    if BUILD_PARAMETERS.pkgtype == "apk-aio" or \
-       BUILD_PARAMETERS.pkgtype == "cordova-aio":
-        if not BUILD_PARAMETERS.destdir or not os.path.exists(
-                BUILD_PARAMETERS.destdir):
-            LOG.error("No all-in-one installation dest dir found, exit ...")
-            sys.exit(1)
-
-    elif not BUILD_PARAMETERS.destdir:
-        BUILD_PARAMETERS.destdir = BUILD_PARAMETERS.srcdir
-    BUILD_PARAMETERS.destdir = os.path.expanduser(BUILD_PARAMETERS.destdir)
-
-    if not BUILD_PARAMETERS.pkgpacktools:
-        BUILD_PARAMETERS.pkgpacktools = os.path.join(
-            BUILD_PARAMETERS.srcdir, "..", "..", "..", "tools")
-    BUILD_PARAMETERS.pkgpacktools = os.path.expanduser(
-        BUILD_PARAMETERS.pkgpacktools)
-
-    config_json = None
-    if BUILD_PARAMETERS.pkgcfg:
-        config_json_file_path = BUILD_PARAMETERS.pkgcfg
-    else:
-        config_json_file_path = os.path.join(
-            BUILD_PARAMETERS.srcdir, "suite.json")
-    try:
-        LOG.info("Using config json file: %s" % config_json_file_path)
-        with open(config_json_file_path, "rt") as config_json_file:
-            config_raw = config_json_file.read()
-            config_json_file.close()
-            config_json = json.loads(config_raw)
-    except Exception as e:
-        LOG.error("Fail to read config json file: %s, exit ..." % e)
-        sys.exit(1)
-
-    global PKG_NAME
-    PKG_NAME = safelyGetValue(config_json, "pkg-name")
-    if not PKG_NAME:
-        PKG_NAME = os.path.basename(BUILD_PARAMETERS.srcdir)
-        LOG.warning(
-            "Fail to read pkg name from json, "
-            "using src dir name as pkg name ...")
-
-    LOG.info("================= %s (%s-%s) ================" %
-             (PKG_NAME, pkg_main_version, pkg_release_version))
-
-    if not safelyGetValue(config_json, "pkg-list"):
-        LOG.error("Fail to read pkg-list, exit ...")
-        sys.exit(1)
-
-    pkg_json = None
-    for i_pkg in config_json["pkg-list"].keys():
-        i_pkg_list = i_pkg.replace(" ", "").split(",")
-        if BUILD_PARAMETERS.pkgtype in i_pkg_list:
-            pkg_json = config_json["pkg-list"][i_pkg]
-
-    if not pkg_json:
-        LOG.error("Fail to read pkg json, exit ...")
-        sys.exit(1)
-
-    if not prepareBuildRoot():
-        exitHandler(1)
-
-    if "pkg-blacklist" in config_json:
-        PKG_BLACK_LIST.extend(config_json["pkg-blacklist"])
-
-    if not buildPKG(pkg_json):
-        exitHandler(1)
-
-    LOG.info("+Building package ...")
-    if BUILD_PARAMETERS.pkgtype == "apk-aio" or \
-       BUILD_PARAMETERS.pkgtype == "cordova-aio":
-        pkg_file_list = os.listdir(os.path.join(BUILD_ROOT, "pkg"))
-        for i_file in pkg_file_list:
-            if not doCopy(
-                    os.path.join(BUILD_ROOT, "pkg", i_file),
-                    os.path.join(BUILD_PARAMETERS.destdir, i_file)):
-                exitHandler(1)
-    else:
-        pkg_file = os.path.join(
-            BUILD_PARAMETERS.destdir,
-            "%s-%s.%s.zip" %
-            (PKG_NAME,
-             pkg_main_version,
-             pkg_release_version))
-             
-
-        if not zipDir(os.path.join(BUILD_ROOT, "pkg"), pkg_file):
-            exitHandler(1)
-
-if __name__ == "__main__":
-    main()
-    exitHandler(0)
diff --git a/common/tct-messaging-email-tizen-tests/resources/COPYING b/common/tct-messaging-email-tizen-tests/resources/COPYING
deleted file mode 100755 (executable)
index 1866d2d..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-All test files under this folder except COPYING and Makefile.am come from
-https://github.com/w3c/testharness.js (commit 81649066b179216eed02dfb58f631eb8bb6c7629)
-without any modification besides the necessary adjustment on reference path to test harness
-
-These tests are copyright by W3C and/or the author listed in the test
-file. The tests are dual-licensed under the W3C Test Suite License:
-http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
-and the BSD 3-clause License:
-http://www.w3.org/Consortium/Legal/2008/03-bsd-license
-under W3C's test suite licensing policy:
-http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
-
diff --git a/common/tct-messaging-email-tizen-tests/resources/testharness.css b/common/tct-messaging-email-tizen-tests/resources/testharness.css
deleted file mode 100755 (executable)
index 365084f..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-html {
-    font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;
-}
-
-#log .warning,
-#log .warning a {
-  color: black;
-  background: yellow;
-}
-
-#log .error,
-#log .error a {
-  color: white;
-  background: red;
-}
-
-#log pre {
-  border: 1px solid black;
-  padding: 1em;
-}
-
-section#summary {
-    margin-bottom:1em;
-}
-
-table#results {
-    border-collapse:collapse;
-    table-layout:fixed;
-    width:100%;
-}
-
-table#results th:first-child,
-table#results td:first-child {
-    width:4em;
-}
-
-table#results th:last-child,
-table#results td:last-child {
-    width:50%;
-}
-
-table#results.assertions th:last-child,
-table#results.assertions td:last-child {
-    width:35%;
-}
-
-table#results th {
-    padding:0;
-    padding-bottom:0.5em;
-    border-bottom:medium solid black;
-}
-
-table#results td {
-    padding:1em;
-    padding-bottom:0.5em;
-    border-bottom:thin solid black;
-}
-
-tr.pass > td:first-child {
-    color:green;
-}
-
-tr.fail > td:first-child {
-    color:red;
-}
-
-tr.timeout > td:first-child {
-    color:red;
-}
-
-tr.notrun > td:first-child {
-    color:blue;
-}
-
-.pass > td:first-child, .fail > td:first-child, .timeout > td:first-child, .notrun > td:first-child {
-    font-variant:small-caps;
-}
-
-table#results span {
-    display:block;
-}
-
-table#results span.expected {
-    font-family:DejaVu Sans Mono, Bitstream Vera Sans Mono, Monospace;
-    white-space:pre;
-}
-
-table#results span.actual {
-    font-family:DejaVu Sans Mono, Bitstream Vera Sans Mono, Monospace;
-    white-space:pre;
-}
-
diff --git a/common/tct-messaging-email-tizen-tests/resources/testharness.js b/common/tct-messaging-email-tizen-tests/resources/testharness.js
deleted file mode 100755 (executable)
index 6fb5a65..0000000
+++ /dev/null
@@ -1,2353 +0,0 @@
-/*global self*/
-/*jshint latedef: nofunc*/
-/*
-Distributed under both the W3C Test Suite License [1] and the W3C
-3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
-policies and contribution forms [3].
-
-[1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
-[2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
-[3] http://www.w3.org/2004/10/27-testcases
-*/
-
-/* Documentation is in docs/api.md */
-
-(function ()
-{
-    var debug = false;
-    // default timeout is 10 seconds, test can override if needed
-    var settings = {
-        output:true,
-        harness_timeout:{
-            "normal":90000,
-            "long":60000
-        },
-        test_timeout:null
-    };
-
-    var xhtml_ns = "http://www.w3.org/1999/xhtml";
-
-    /*
-     * TestEnvironment is an abstraction for the environment in which the test
-     * harness is used. Each implementation of a test environment has to provide
-     * the following interface:
-     *
-     * interface TestEnvironment {
-     *   // Invoked after the global 'tests' object has been created and it's
-     *   // safe to call add_*_callback() to register event handlers.
-     *   void on_tests_ready();
-     *
-     *   // Invoked after setup() has been called to notify the test environment
-     *   // of changes to the test harness properties.
-     *   void on_new_harness_properties(object properties);
-     *
-     *   // Should return a new unique default test name.
-     *   DOMString next_default_test_name();
-     *
-     *   // Should return the test harness timeout duration in milliseconds.
-     *   float test_timeout();
-     *
-     *   // Should return the global scope object.
-     *   object global_scope();
-     * };
-     */
-
-    /*
-     * A test environment with a DOM. The global object is 'window'. By default
-     * test results are displayed in a table. Any parent windows receive
-     * callbacks or messages via postMessage() when test events occur. See
-     * apisample11.html and apisample12.html.
-     */
-    function WindowTestEnvironment() {
-        this.name_counter = 0;
-        this.window_cache = null;
-        this.output_handler = null;
-        this.all_loaded = false;
-        var this_obj = this;
-        on_event(window, 'load', function() {
-            this_obj.all_loaded = true;
-        });
-    }
-
-    WindowTestEnvironment.prototype._dispatch = function(selector, callback_args, message_arg) {
-        this._forEach_windows(
-                function(w, is_same_origin) {
-                    if (is_same_origin && selector in w) {
-                        try {
-                            w[selector].apply(undefined, callback_args);
-                        } catch (e) {
-                            if (debug) {
-                                throw e;
-                            }
-                        }
-                    }
-                    if (supports_post_message(w) && w !== self) {
-                        w.postMessage(message_arg, "*");
-                    }
-                });
-    };
-
-    WindowTestEnvironment.prototype._forEach_windows = function(callback) {
-        // Iterate of the the windows [self ... top, opener]. The callback is passed
-        // two objects, the first one is the windows object itself, the second one
-        // is a boolean indicating whether or not its on the same origin as the
-        // current window.
-        var cache = this.window_cache;
-        if (!cache) {
-            cache = [[self, true]];
-            var w = self;
-            var i = 0;
-            var so;
-            var origins = location.ancestorOrigins;
-            while (w != w.parent) {
-                w = w.parent;
-                // In WebKit, calls to parent windows' properties that aren't on the same
-                // origin cause an error message to be displayed in the error console but
-                // don't throw an exception. This is a deviation from the current HTML5
-                // spec. See: https://bugs.webkit.org/show_bug.cgi?id=43504
-                // The problem with WebKit's behavior is that it pollutes the error console
-                // with error messages that can't be caught.
-                //
-                // This issue can be mitigated by relying on the (for now) proprietary
-                // `location.ancestorOrigins` property which returns an ordered list of
-                // the origins of enclosing windows. See:
-                // http://trac.webkit.org/changeset/113945.
-                if (origins) {
-                    so = (location.origin == origins[i]);
-                } else {
-                    so = is_same_origin(w);
-                }
-                cache.push([w, so]);
-                i++;
-            }
-            w = window.opener;
-            if (w) {
-                // window.opener isn't included in the `location.ancestorOrigins` prop.
-                // We'll just have to deal with a simple check and an error msg on WebKit
-                // browsers in this case.
-                cache.push([w, is_same_origin(w)]);
-            }
-            this.window_cache = cache;
-        }
-
-        forEach(cache,
-                function(a) {
-                    callback.apply(null, a);
-                });
-    };
-
-    WindowTestEnvironment.prototype.on_tests_ready = function() {
-        var output = new Output();
-        this.output_handler = output;
-
-        var this_obj = this;
-        add_start_callback(function (properties) {
-            this_obj.output_handler.init(properties);
-            this_obj._dispatch("start_callback", [properties],
-                           { type: "start", properties: properties });
-        });
-        add_test_state_callback(function(test) {
-            this_obj.output_handler.show_status();
-            this_obj._dispatch("test_state_callback", [test],
-                               { type: "test_state", test: test.structured_clone() });
-        });
-        add_result_callback(function (test) {
-            this_obj.output_handler.show_status();
-            this_obj._dispatch("result_callback", [test],
-                               { type: "result", test: test.structured_clone() });
-        });
-        add_completion_callback(function (tests, harness_status) {
-            this_obj.output_handler.show_results(tests, harness_status);
-            var cloned_tests = map(tests, function(test) { return test.structured_clone(); });
-            this_obj._dispatch("completion_callback", [tests, harness_status],
-                               { type: "complete", tests: cloned_tests,
-                                 status: harness_status.structured_clone() });
-        });
-    };
-
-    WindowTestEnvironment.prototype.next_default_test_name = function() {
-        //Don't use document.title to work around an Opera bug in XHTML documents
-        var title = document.getElementsByTagName("title")[0];
-        var prefix = (title && title.firstChild && title.firstChild.data) || "Untitled";
-        var suffix = this.name_counter > 0 ? " " + this.name_counter : "";
-        this.name_counter++;
-        return prefix + suffix;
-    };
-
-    WindowTestEnvironment.prototype.on_new_harness_properties = function(properties) {
-        this.output_handler.setup(properties);
-    };
-
-    WindowTestEnvironment.prototype.add_on_loaded_callback = function(callback) {
-        on_event(window, 'load', callback);
-    };
-
-    WindowTestEnvironment.prototype.test_timeout = function() {
-        var metas = document.getElementsByTagName("meta");
-        for (var i = 0; i < metas.length; i++) {
-            if (metas[i].name == "timeout") {
-                if (metas[i].content == "long") {
-                    return settings.harness_timeout.long;
-                }
-                break;
-            }
-        }
-        return settings.harness_timeout.normal;
-    };
-
-    WindowTestEnvironment.prototype.global_scope = function() {
-        return window;
-    };
-
-    /*
-     * Base TestEnvironment implementation for a generic web worker.
-     *
-     * Workers accumulate test results. One or more clients can connect and
-     * retrieve results from a worker at any time.
-     *
-     * WorkerTestEnvironment supports communicating with a client via a
-     * MessagePort.  The mechanism for determining the appropriate MessagePort
-     * for communicating with a client depends on the type of worker and is
-     * implemented by the various specializations of WorkerTestEnvironment
-     * below.
-     *
-     * A client document using testharness can use fetch_tests_from_worker() to
-     * retrieve results from a worker. See apisample16.html.
-     */
-    function WorkerTestEnvironment() {
-        this.name_counter = 0;
-        this.all_loaded = true;
-        this.message_list = [];
-        this.message_ports = [];
-    }
-
-    WorkerTestEnvironment.prototype._dispatch = function(message) {
-        this.message_list.push(message);
-        for (var i = 0; i < this.message_ports.length; ++i)
-        {
-            this.message_ports[i].postMessage(message);
-        }
-    };
-
-    // The only requirement is that port has a postMessage() method. It doesn't
-    // have to be an instance of a MessagePort, and often isn't.
-    WorkerTestEnvironment.prototype._add_message_port = function(port) {
-        this.message_ports.push(port);
-        for (var i = 0; i < this.message_list.length; ++i)
-        {
-            port.postMessage(this.message_list[i]);
-        }
-    };
-
-    WorkerTestEnvironment.prototype.next_default_test_name = function() {
-        var suffix = this.name_counter > 0 ? " " + this.name_counter : "";
-        this.name_counter++;
-        return "Untitled" + suffix;
-    };
-
-    WorkerTestEnvironment.prototype.on_new_harness_properties = function() {};
-
-    WorkerTestEnvironment.prototype.on_tests_ready = function() {
-        var this_obj = this;
-        add_start_callback(
-                function(properties) {
-                    this_obj._dispatch({
-                        type: "start",
-                        properties: properties,
-                    });
-                });
-        add_test_state_callback(
-                function(test) {
-                    this_obj._dispatch({
-                        type: "test_state",
-                        test: test.structured_clone()
-                    });
-                });
-        add_result_callback(
-                function(test) {
-                    this_obj._dispatch({
-                        type: "result",
-                        test: test.structured_clone()
-                    });
-                });
-        add_completion_callback(
-                function(tests, harness_status) {
-                    this_obj._dispatch({
-                        type: "complete",
-                        tests: map(tests,
-                            function(test) {
-                                return test.structured_clone();
-                            }),
-                        status: harness_status.structured_clone()
-                    });
-                });
-    };
-
-    WorkerTestEnvironment.prototype.add_on_loaded_callback = function() {};
-
-    WorkerTestEnvironment.prototype.test_timeout = function() {
-        // Tests running in a worker don't have a default timeout. I.e. all
-        // worker tests behave as if settings.explicit_timeout is true.
-        return null;
-    };
-
-    WorkerTestEnvironment.prototype.global_scope = function() {
-        return self;
-    };
-
-    /*
-     * Dedicated web workers.
-     * https://html.spec.whatwg.org/multipage/workers.html#dedicatedworkerglobalscope
-     *
-     * This class is used as the test_environment when testharness is running
-     * inside a dedicated worker.
-     */
-    function DedicatedWorkerTestEnvironment() {
-        WorkerTestEnvironment.call(this);
-        // self is an instance of DedicatedWorkerGlobalScope which exposes
-        // a postMessage() method for communicating via the message channel
-        // established when the worker is created.
-        this._add_message_port(self);
-    }
-    DedicatedWorkerTestEnvironment.prototype = Object.create(WorkerTestEnvironment.prototype);
-
-    DedicatedWorkerTestEnvironment.prototype.on_tests_ready = function() {
-        WorkerTestEnvironment.prototype.on_tests_ready.call(this);
-        // In the absence of an onload notification, we a require dedicated
-        // workers to explicitly signal when the tests are done.
-        tests.wait_for_finish = true;
-    };
-
-    /*
-     * Shared web workers.
-     * https://html.spec.whatwg.org/multipage/workers.html#sharedworkerglobalscope
-     *
-     * This class is used as the test_environment when testharness is running
-     * inside a shared web worker.
-     */
-    function SharedWorkerTestEnvironment() {
-        WorkerTestEnvironment.call(this);
-        var this_obj = this;
-        // Shared workers receive message ports via the 'onconnect' event for
-        // each connection.
-        self.addEventListener("connect",
-                function(message_event) {
-                    this_obj._add_message_port(message_event.source);
-                });
-    }
-    SharedWorkerTestEnvironment.prototype = Object.create(WorkerTestEnvironment.prototype);
-
-    SharedWorkerTestEnvironment.prototype.on_tests_ready = function() {
-        WorkerTestEnvironment.prototype.on_tests_ready.call(this);
-        // In the absence of an onload notification, we a require shared
-        // workers to explicitly signal when the tests are done.
-        tests.wait_for_finish = true;
-    };
-
-    /*
-     * Service workers.
-     * http://www.w3.org/TR/service-workers/
-     *
-     * This class is used as the test_environment when testharness is running
-     * inside a service worker.
-     */
-    function ServiceWorkerTestEnvironment() {
-        WorkerTestEnvironment.call(this);
-        this.all_loaded = false;
-        this.on_loaded_callback = null;
-        var this_obj = this;
-        self.addEventListener("message",
-                function(event) {
-                    if (event.data.type && event.data.type === "connect") {
-                        this_obj._add_message_port(event.ports[0]);
-                        event.ports[0].start();
-                    }
-                });
-
-        // The oninstall event is received after the service worker script and
-        // all imported scripts have been fetched and executed. It's the
-        // equivalent of an onload event for a document. All tests should have
-        // been added by the time this event is received, thus it's not
-        // necessary to wait until the onactivate event.
-        on_event(self, "install",
-                function(event) {
-                    this_obj.all_loaded = true;
-                    if (this_obj.on_loaded_callback) {
-                        this_obj.on_loaded_callback();
-                    }
-                });
-    }
-    ServiceWorkerTestEnvironment.prototype = Object.create(WorkerTestEnvironment.prototype);
-
-    ServiceWorkerTestEnvironment.prototype.add_on_loaded_callback = function(callback) {
-        if (this.all_loaded) {
-            callback();
-        } else {
-            this.on_loaded_callback = callback;
-        }
-    };
-
-    function create_test_environment() {
-        if ('document' in self) {
-            return new WindowTestEnvironment();
-        }
-        if ('DedicatedWorkerGlobalScope' in self &&
-            self instanceof DedicatedWorkerGlobalScope) {
-            return new DedicatedWorkerTestEnvironment();
-        }
-        if ('SharedWorkerGlobalScope' in self &&
-            self instanceof SharedWorkerGlobalScope) {
-            return new SharedWorkerTestEnvironment();
-        }
-        if ('ServiceWorkerGlobalScope' in self &&
-            self instanceof ServiceWorkerGlobalScope) {
-            return new ServiceWorkerTestEnvironment();
-        }
-        throw new Error("Unsupported test environment");
-    }
-
-    var test_environment = create_test_environment();
-
-    function is_shared_worker(worker) {
-        return 'SharedWorker' in self && worker instanceof SharedWorker;
-    }
-
-    function is_service_worker(worker) {
-        return 'ServiceWorker' in self && worker instanceof ServiceWorker;
-    }
-
-    /*
-     * API functions
-     */
-
-    function test(func, name, properties)
-    {
-        var test_name = name ? name : test_environment.next_default_test_name();
-        properties = properties ? properties : {};
-        var test_obj = new Test(test_name, properties);
-        test_obj.step(func, test_obj, test_obj);
-        if (test_obj.phase === test_obj.phases.STARTED) {
-            test_obj.done();
-        }
-    }
-
-    function async_test(func, name, properties)
-    {
-        if (typeof func !== "function") {
-            properties = name;
-            name = func;
-            func = null;
-        }
-        var test_name = name ? name : test_environment.next_default_test_name();
-        properties = properties ? properties : {};
-        var test_obj = new Test(test_name, properties);
-        if (func) {
-            test_obj.step(func, test_obj, test_obj);
-        }
-        return test_obj;
-    }
-
-    function promise_test(func, name, properties) {
-        var test = async_test(name, properties);
-        Promise.resolve(test.step(func, test, test))
-            .then(
-                function() {
-                    test.done();
-                })
-            .catch(test.step_func(
-                function(value) {
-                    if (value instanceof AssertionError) {
-                        throw value;
-                    }
-                    assert(false, "promise_test", null,
-                           "Unhandled rejection with value: ${value}", {value:value});
-                }));
-    }
-
-    function setup(func_or_properties, maybe_properties)
-    {
-        var func = null;
-        var properties = {};
-        if (arguments.length === 2) {
-            func = func_or_properties;
-            properties = maybe_properties;
-        } else if (func_or_properties instanceof Function) {
-            func = func_or_properties;
-        } else {
-            properties = func_or_properties;
-        }
-        tests.setup(func, properties);
-        test_environment.on_new_harness_properties(properties);
-    }
-
-    function done() {
-        if (tests.tests.length === 0) {
-            tests.set_file_is_test();
-        }
-        if (tests.file_is_test) {
-            tests.tests[0].done();
-        }
-        tests.end_wait();
-    }
-
-    function generate_tests(func, args, properties) {
-        forEach(args, function(x, i)
-                {
-                    var name = x[0];
-                    test(function()
-                         {
-                             func.apply(this, x.slice(1));
-                         },
-                         name,
-                         Array.isArray(properties) ? properties[i] : properties);
-                });
-    }
-
-    function on_event(object, event, callback)
-    {
-        object.addEventListener(event, callback, false);
-    }
-
-    expose(test, 'test');
-    expose(async_test, 'async_test');
-    expose(promise_test, 'promise_test');
-    expose(generate_tests, 'generate_tests');
-    expose(setup, 'setup');
-    expose(done, 'done');
-    expose(on_event, 'on_event');
-
-    /*
-     * Return a string truncated to the given length, with ... added at the end
-     * if it was longer.
-     */
-    function truncate(s, len)
-    {
-        if (s.length > len) {
-            return s.substring(0, len - 3) + "...";
-        }
-        return s;
-    }
-
-    /*
-     * Return true if object is probably a Node object.
-     */
-    function is_node(object)
-    {
-        // I use duck-typing instead of instanceof, because
-        // instanceof doesn't work if the node is from another window (like an
-        // iframe's contentWindow):
-        // http://www.w3.org/Bugs/Public/show_bug.cgi?id=12295
-        if ("nodeType" in object &&
-            "nodeName" in object &&
-            "nodeValue" in object &&
-            "childNodes" in object) {
-            try {
-                object.nodeType;
-            } catch (e) {
-                // The object is probably Node.prototype or another prototype
-                // object that inherits from it, and not a Node instance.
-                return false;
-            }
-            return true;
-        }
-        return false;
-    }
-
-    /*
-     * Convert a value to a nice, human-readable string
-     */
-    function format_value(val, seen)
-    {
-        if (!seen) {
-            seen = [];
-        }
-        if (typeof val === "object" && val !== null) {
-            if (seen.indexOf(val) >= 0) {
-                return "[...]";
-            }
-            seen.push(val);
-        }
-        if (Array.isArray(val)) {
-            return "[" + val.map(function(x) {return format_value(x, seen);}).join(", ") + "]";
-        }
-
-        switch (typeof val) {
-        case "string":
-            val = val.replace("\\", "\\\\");
-            for (var i = 0; i < 32; i++) {
-                var replace = "\\";
-                switch (i) {
-                case 0: replace += "0"; break;
-                case 1: replace += "x01"; break;
-                case 2: replace += "x02"; break;
-                case 3: replace += "x03"; break;
-                case 4: replace += "x04"; break;
-                case 5: replace += "x05"; break;
-                case 6: replace += "x06"; break;
-                case 7: replace += "x07"; break;
-                case 8: replace += "b"; break;
-                case 9: replace += "t"; break;
-                case 10: replace += "n"; break;
-                case 11: replace += "v"; break;
-                case 12: replace += "f"; break;
-                case 13: replace += "r"; break;
-                case 14: replace += "x0e"; break;
-                case 15: replace += "x0f"; break;
-                case 16: replace += "x10"; break;
-                case 17: replace += "x11"; break;
-                case 18: replace += "x12"; break;
-                case 19: replace += "x13"; break;
-                case 20: replace += "x14"; break;
-                case 21: replace += "x15"; break;
-                case 22: replace += "x16"; break;
-                case 23: replace += "x17"; break;
-                case 24: replace += "x18"; break;
-                case 25: replace += "x19"; break;
-                case 26: replace += "x1a"; break;
-                case 27: replace += "x1b"; break;
-                case 28: replace += "x1c"; break;
-                case 29: replace += "x1d"; break;
-                case 30: replace += "x1e"; break;
-                case 31: replace += "x1f"; break;
-                }
-                val = val.replace(RegExp(String.fromCharCode(i), "g"), replace);
-            }
-            return '"' + val.replace(/"/g, '\\"') + '"';
-        case "boolean":
-        case "undefined":
-            return String(val);
-        case "number":
-            // In JavaScript, -0 === 0 and String(-0) == "0", so we have to
-            // special-case.
-            if (val === -0 && 1/val === -Infinity) {
-                return "-0";
-            }
-            return String(val);
-        case "object":
-            if (val === null) {
-                return "null";
-            }
-
-            // Special-case Node objects, since those come up a lot in my tests.  I
-            // ignore namespaces.
-            if (is_node(val)) {
-                switch (val.nodeType) {
-                case Node.ELEMENT_NODE:
-                    var ret = "<" + val.localName;
-                    for (var i = 0; i < val.attributes.length; i++) {
-                        ret += " " + val.attributes[i].name + '="' + val.attributes[i].value + '"';
-                    }
-                    ret += ">" + val.innerHTML + "</" + val.localName + ">";
-                    return "Element node " + truncate(ret, 60);
-                case Node.TEXT_NODE:
-                    return 'Text node "' + truncate(val.data, 60) + '"';
-                case Node.PROCESSING_INSTRUCTION_NODE:
-                    return "ProcessingInstruction node with target " + format_value(truncate(val.target, 60)) + " and data " + format_value(truncate(val.data, 60));
-                case Node.COMMENT_NODE:
-                    return "Comment node <!--" + truncate(val.data, 60) + "-->";
-                case Node.DOCUMENT_NODE:
-                    return "Document node with " + val.childNodes.length + (val.childNodes.length == 1 ? " child" : " children");
-                case Node.DOCUMENT_TYPE_NODE:
-                    return "DocumentType node";
-                case Node.DOCUMENT_FRAGMENT_NODE:
-                    return "DocumentFragment node with " + val.childNodes.length + (val.childNodes.length == 1 ? " child" : " children");
-                default:
-                    return "Node object of unknown type";
-                }
-            }
-
-        /* falls through */
-        default:
-            return typeof val + ' "' + truncate(String(val), 60) + '"';
-        }
-    }
-    expose(format_value, "format_value");
-
-    /*
-     * Assertions
-     */
-
-    function assert_true(actual, description)
-    {
-        assert(actual === true, "assert_true", description,
-                                "expected true got ${actual}", {actual:actual});
-    }
-    expose(assert_true, "assert_true");
-
-    function assert_false(actual, description)
-    {
-        assert(actual === false, "assert_false", description,
-                                 "expected false got ${actual}", {actual:actual});
-    }
-    expose(assert_false, "assert_false");
-
-    function same_value(x, y) {
-        if (y !== y) {
-            //NaN case
-            return x !== x;
-        }
-        if (x === 0 && y === 0) {
-            //Distinguish +0 and -0
-            return 1/x === 1/y;
-        }
-        return x === y;
-    }
-
-    function assert_equals(actual, expected, description)
-    {
-         /*
-          * Test if two primitives are equal or two objects
-          * are the same object
-          */
-        if (typeof actual != typeof expected) {
-            assert(false, "assert_equals", description,
-                          "expected (" + typeof expected + ") ${expected} but got (" + typeof actual + ") ${actual}",
-                          {expected:expected, actual:actual});
-            return;
-        }
-        assert(same_value(actual, expected), "assert_equals", description,
-                                             "expected ${expected} but got ${actual}",
-                                             {expected:expected, actual:actual});
-    }
-    expose(assert_equals, "assert_equals");
-
-    function assert_not_equals(actual, expected, description)
-    {
-         /*
-          * Test if two primitives are unequal or two objects
-          * are different objects
-          */
-        assert(!same_value(actual, expected), "assert_not_equals", description,
-                                              "got disallowed value ${actual}",
-                                              {actual:actual});
-    }
-    expose(assert_not_equals, "assert_not_equals");
-
-    function assert_in_array(actual, expected, description)
-    {
-        assert(expected.indexOf(actual) != -1, "assert_in_array", description,
-                                               "value ${actual} not in array ${expected}",
-                                               {actual:actual, expected:expected});
-    }
-    expose(assert_in_array, "assert_in_array");
-
-    function assert_object_equals(actual, expected, description)
-    {
-         //This needs to be improved a great deal
-         function check_equal(actual, expected, stack)
-         {
-             stack.push(actual);
-
-             var p;
-             for (p in actual) {
-                 assert(expected.hasOwnProperty(p), "assert_object_equals", description,
-                                                    "unexpected property ${p}", {p:p});
-
-                 if (typeof actual[p] === "object" && actual[p] !== null) {
-                     if (stack.indexOf(actual[p]) === -1) {
-                         check_equal(actual[p], expected[p], stack);
-                     }
-                 } else {
-                     assert(same_value(actual[p], expected[p]), "assert_object_equals", description,
-                                                       "property ${p} expected ${expected} got ${actual}",
-                                                       {p:p, expected:expected, actual:actual});
-                 }
-             }
-             for (p in expected) {
-                 assert(actual.hasOwnProperty(p),
-                        "assert_object_equals", description,
-                        "expected property ${p} missing", {p:p});
-             }
-             stack.pop();
-         }
-         check_equal(actual, expected, []);
-    }
-    expose(assert_object_equals, "assert_object_equals");
-
-    function assert_array_equals(actual, expected, description)
-    {
-        assert(actual.length === expected.length,
-               "assert_array_equals", description,
-               "lengths differ, expected ${expected} got ${actual}",
-               {expected:expected.length, actual:actual.length});
-
-        for (var i = 0; i < actual.length; i++) {
-            assert(actual.hasOwnProperty(i) === expected.hasOwnProperty(i),
-                   "assert_array_equals", description,
-                   "property ${i}, property expected to be ${expected} but was ${actual}",
-                   {i:i, expected:expected.hasOwnProperty(i) ? "present" : "missing",
-                   actual:actual.hasOwnProperty(i) ? "present" : "missing"});
-            assert(same_value(expected[i], actual[i]),
-                   "assert_array_equals", description,
-                   "property ${i}, expected ${expected} but got ${actual}",
-                   {i:i, expected:expected[i], actual:actual[i]});
-        }
-    }
-    expose(assert_array_equals, "assert_array_equals");
-
-    function assert_approx_equals(actual, expected, epsilon, description)
-    {
-        /*
-         * Test if two primitive numbers are equal withing +/- epsilon
-         */
-        assert(typeof actual === "number",
-               "assert_approx_equals", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(Math.abs(actual - expected) <= epsilon,
-               "assert_approx_equals", description,
-               "expected ${expected} +/- ${epsilon} but got ${actual}",
-               {expected:expected, actual:actual, epsilon:epsilon});
-    }
-    expose(assert_approx_equals, "assert_approx_equals");
-
-    function assert_less_than(actual, expected, description)
-    {
-        /*
-         * Test if a primitive number is less than another
-         */
-        assert(typeof actual === "number",
-               "assert_less_than", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(actual < expected,
-               "assert_less_than", description,
-               "expected a number less than ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_less_than, "assert_less_than");
-
-    function assert_greater_than(actual, expected, description)
-    {
-        /*
-         * Test if a primitive number is greater than another
-         */
-        assert(typeof actual === "number",
-               "assert_greater_than", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(actual > expected,
-               "assert_greater_than", description,
-               "expected a number greater than ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_greater_than, "assert_greater_than");
-
-    function assert_less_than_equal(actual, expected, description)
-    {
-        /*
-         * Test if a primitive number is less than or equal to another
-         */
-        assert(typeof actual === "number",
-               "assert_less_than_equal", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(actual <= expected,
-               "assert_less_than", description,
-               "expected a number less than or equal to ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_less_than_equal, "assert_less_than_equal");
-
-    function assert_greater_than_equal(actual, expected, description)
-    {
-        /*
-         * Test if a primitive number is greater than or equal to another
-         */
-        assert(typeof actual === "number",
-               "assert_greater_than_equal", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(actual >= expected,
-               "assert_greater_than_equal", description,
-               "expected a number greater than or equal to ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_greater_than_equal, "assert_greater_than_equal");
-
-    function assert_regexp_match(actual, expected, description) {
-        /*
-         * Test if a string (actual) matches a regexp (expected)
-         */
-        assert(expected.test(actual),
-               "assert_regexp_match", description,
-               "expected ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_regexp_match, "assert_regexp_match");
-
-    function assert_class_string(object, class_string, description) {
-        assert_equals({}.toString.call(object), "[object " + class_string + "]",
-                      description);
-    }
-    expose(assert_class_string, "assert_class_string");
-
-
-    function _assert_own_property(name) {
-        return function(object, property_name, description)
-        {
-            assert(property_name in object,
-                   name, description,
-                   "expected property ${p} missing", {p:property_name});
-        };
-    }
-    expose(_assert_own_property("assert_exists"), "assert_exists");
-    expose(_assert_own_property("assert_own_property"), "assert_own_property");
-
-    function assert_not_exists(object, property_name, description)
-    {
-        assert(!object.hasOwnProperty(property_name),
-               "assert_not_exists", description,
-               "unexpected property ${p} found", {p:property_name});
-    }
-    expose(assert_not_exists, "assert_not_exists");
-
-    function _assert_inherits(name) {
-        return function (object, property_name, description)
-        {
-            assert(typeof object === "object",
-                   name, description,
-                   "provided value is not an object");
-
-            assert("hasOwnProperty" in object,
-                   name, description,
-                   "provided value is an object but has no hasOwnProperty method");
-
-            assert(!object.hasOwnProperty(property_name),
-                   name, description,
-                   "property ${p} found on object expected in prototype chain",
-                   {p:property_name});
-
-            assert(property_name in object,
-                   name, description,
-                   "property ${p} not found in prototype chain",
-                   {p:property_name});
-        };
-    }
-    expose(_assert_inherits("assert_inherits"), "assert_inherits");
-    expose(_assert_inherits("assert_idl_attribute"), "assert_idl_attribute");
-
-    function assert_readonly(object, property_name, description)
-    {
-         var initial_value = object[property_name];
-         try {
-             //Note that this can have side effects in the case where
-             //the property has PutForwards
-             object[property_name] = initial_value + "a"; //XXX use some other value here?
-             assert(same_value(object[property_name], initial_value),
-                    "assert_readonly", description,
-                    "changing property ${p} succeeded",
-                    {p:property_name});
-         } finally {
-             object[property_name] = initial_value;
-         }
-    }
-    expose(assert_readonly, "assert_readonly");
-
-    function assert_throws(code, func, description)
-    {
-        try {
-            func.call(this);
-            assert(false, "assert_throws", description,
-                   "${func} did not throw", {func:func});
-        } catch (e) {
-            if (e instanceof AssertionError) {
-                throw e;
-            }
-            if (code === null) {
-                return;
-            }
-            if (typeof code === "object") {
-                assert(typeof e == "object" && "name" in e && e.name == code.name,
-                       "assert_throws", description,
-                       "${func} threw ${actual} (${actual_name}) expected ${expected} (${expected_name})",
-                                    {func:func, actual:e, actual_name:e.name,
-                                     expected:code,
-                                     expected_name:code.name});
-                return;
-            }
-
-            var code_name_map = {
-                INDEX_SIZE_ERR: 'IndexSizeError',
-                HIERARCHY_REQUEST_ERR: 'HierarchyRequestError',
-                WRONG_DOCUMENT_ERR: 'WrongDocumentError',
-                INVALID_CHARACTER_ERR: 'InvalidCharacterError',
-                NO_MODIFICATION_ALLOWED_ERR: 'NoModificationAllowedError',
-                NOT_FOUND_ERR: 'NotFoundError',
-                NOT_SUPPORTED_ERR: 'NotSupportedError',
-                INVALID_STATE_ERR: 'InvalidStateError',
-                SYNTAX_ERR: 'SyntaxError',
-                INVALID_MODIFICATION_ERR: 'InvalidModificationError',
-                NAMESPACE_ERR: 'NamespaceError',
-                INVALID_ACCESS_ERR: 'InvalidAccessError',
-                TYPE_MISMATCH_ERR: 'TypeMismatchError',
-                SECURITY_ERR: 'SecurityError',
-                NETWORK_ERR: 'NetworkError',
-                ABORT_ERR: 'AbortError',
-                URL_MISMATCH_ERR: 'URLMismatchError',
-                QUOTA_EXCEEDED_ERR: 'QuotaExceededError',
-                TIMEOUT_ERR: 'TimeoutError',
-                INVALID_NODE_TYPE_ERR: 'InvalidNodeTypeError',
-                DATA_CLONE_ERR: 'DataCloneError'
-            };
-
-            var name = code in code_name_map ? code_name_map[code] : code;
-
-            var name_code_map = {
-                IndexSizeError: 1,
-                HierarchyRequestError: 3,
-                WrongDocumentError: 4,
-                InvalidCharacterError: 5,
-                NoModificationAllowedError: 7,
-                NotFoundError: 8,
-                NotSupportedError: 9,
-                InvalidStateError: 11,
-                SyntaxError: 12,
-                InvalidModificationError: 13,
-                NamespaceError: 14,
-                InvalidAccessError: 15,
-                TypeMismatchError: 17,
-                SecurityError: 18,
-                NetworkError: 19,
-                AbortError: 20,
-                URLMismatchError: 21,
-                QuotaExceededError: 22,
-                TimeoutError: 23,
-                InvalidNodeTypeError: 24,
-                DataCloneError: 25,
-
-                UnknownError: 0,
-                ConstraintError: 0,
-                DataError: 0,
-                TransactionInactiveError: 0,
-                ReadOnlyError: 0,
-                VersionError: 0
-            };
-
-            if (!(name in name_code_map)) {
-                throw new AssertionError('Test bug: unrecognized DOMException code "' + code + '" passed to assert_throws()');
-            }
-
-            var required_props = { code: name_code_map[name] };
-
-            if (required_props.code === 0 ||
-               ("name" in e && e.name !== e.name.toUpperCase() && e.name !== "DOMException")) {
-                // New style exception: also test the name property.
-                required_props.name = name;
-            }
-
-            //We'd like to test that e instanceof the appropriate interface,
-            //but we can't, because we don't know what window it was created
-            //in.  It might be an instanceof the appropriate interface on some
-            //unknown other window.  TODO: Work around this somehow?
-
-            assert(typeof e == "object",
-                   "assert_throws", description,
-                   "${func} threw ${e} with type ${type}, not an object",
-                   {func:func, e:e, type:typeof e});
-
-            for (var prop in required_props) {
-                assert(typeof e == "object" && prop in e && e[prop] == required_props[prop],
-                       "assert_throws", description,
-                       "${func} threw ${e} that is not a DOMException " + code + ": property ${prop} is equal to ${actual}, expected ${expected}",
-                       {func:func, e:e, prop:prop, actual:e[prop], expected:required_props[prop]});
-            }
-        }
-    }
-    expose(assert_throws, "assert_throws");
-
-    function assert_unreached(description) {
-         assert(false, "assert_unreached", description,
-                "Reached unreachable code");
-    }
-    expose(assert_unreached, "assert_unreached");
-
-    function assert_any(assert_func, actual, expected_array)
-    {
-        var args = [].slice.call(arguments, 3);
-        var errors = [];
-        var passed = false;
-        forEach(expected_array,
-                function(expected)
-                {
-                    try {
-                        assert_func.apply(this, [actual, expected].concat(args));
-                        passed = true;
-                    } catch (e) {
-                        errors.push(e.message);
-                    }
-                });
-        if (!passed) {
-            throw new AssertionError(errors.join("\n\n"));
-        }
-    }
-    expose(assert_any, "assert_any");
-
-    function Test(name, properties)
-    {
-        if (tests.file_is_test && tests.tests.length) {
-            throw new Error("Tried to create a test with file_is_test");
-        }
-        this.name = name;
-
-        this.phase = this.phases.INITIAL;
-
-        this.status = this.NOTRUN;
-        this.timeout_id = null;
-        this.index = null;
-
-        this.properties = properties;
-        var timeout = properties.timeout ? properties.timeout : settings.test_timeout;
-        if (timeout !== null) {
-            this.timeout_length = timeout * tests.timeout_multiplier;
-        } else {
-            this.timeout_length = null;
-        }
-
-        this.message = null;
-
-        this.steps = [];
-
-        this.cleanup_callbacks = [];
-
-        tests.push(this);
-    }
-
-    Test.statuses = {
-        PASS:0,
-        FAIL:1,
-        TIMEOUT:2,
-        NOTRUN:3
-    };
-
-    Test.prototype = merge({}, Test.statuses);
-
-    Test.prototype.phases = {
-        INITIAL:0,
-        STARTED:1,
-        HAS_RESULT:2,
-        COMPLETE:3
-    };
-
-    Test.prototype.structured_clone = function()
-    {
-        if (!this._structured_clone) {
-            var msg = this.message;
-            msg = msg ? String(msg) : msg;
-            this._structured_clone = merge({
-                name:String(this.name),
-                properties:merge({}, this.properties),
-            }, Test.statuses);
-        }
-        this._structured_clone.status = this.status;
-        this._structured_clone.message = this.message;
-        this._structured_clone.index = this.index;
-        return this._structured_clone;
-    };
-
-    Test.prototype.step = function(func, this_obj)
-    {
-        if (this.phase > this.phases.STARTED) {
-            return;
-        }
-        this.phase = this.phases.STARTED;
-        //If we don't get a result before the harness times out that will be a test timout
-        this.set_status(this.TIMEOUT, "Test timed out");
-
-        tests.started = true;
-        tests.notify_test_state(this);
-
-        if (this.timeout_id === null) {
-            this.set_timeout();
-        }
-
-        this.steps.push(func);
-
-        if (arguments.length === 1) {
-            this_obj = this;
-        }
-
-        try {
-            return func.apply(this_obj, Array.prototype.slice.call(arguments, 2));
-        } catch (e) {
-            if (this.phase >= this.phases.HAS_RESULT) {
-                return;
-            }
-            var message = (typeof e === "object" && e !== null) ? e.message : e;
-            if (typeof e.stack != "undefined" && typeof e.message == "string") {
-                //Try to make it more informative for some exceptions, at least
-                //in Gecko and WebKit.  This results in a stack dump instead of
-                //just errors like "Cannot read property 'parentNode' of null"
-                //or "root is null".  Makes it a lot longer, of course.
-                message += "(stack: " + e.stack + ")";
-            }
-            this.set_status(this.FAIL, message);
-            this.phase = this.phases.HAS_RESULT;
-            this.done();
-        }
-    };
-
-    Test.prototype.step_func = function(func, this_obj)
-    {
-        var test_this = this;
-
-        if (arguments.length === 1) {
-            this_obj = test_this;
-        }
-
-        return function()
-        {
-            return test_this.step.apply(test_this, [func, this_obj].concat(
-                Array.prototype.slice.call(arguments)));
-        };
-    };
-
-    Test.prototype.step_func_done = function(func, this_obj)
-    {
-        var test_this = this;
-
-        if (arguments.length === 1) {
-            this_obj = test_this;
-        }
-
-        return function()
-        {
-            if (func) {
-                test_this.step.apply(test_this, [func, this_obj].concat(
-                    Array.prototype.slice.call(arguments)));
-            }
-            test_this.done();
-        };
-    };
-
-    Test.prototype.unreached_func = function(description)
-    {
-        return this.step_func(function() {
-            assert_unreached(description);
-        });
-    };
-
-    Test.prototype.add_cleanup = function(callback) {
-        this.cleanup_callbacks.push(callback);
-    };
-
-    Test.prototype.force_timeout = function() {
-        this.set_status(this.TIMEOUT);
-        this.phase = this.phases.HAS_RESULT;
-    };
-
-    Test.prototype.set_timeout = function()
-    {
-        if (this.timeout_length !== null) {
-            var this_obj = this;
-            this.timeout_id = setTimeout(function()
-                                         {
-                                             this_obj.timeout();
-                                         }, this.timeout_length);
-        }
-    };
-
-    Test.prototype.set_status = function(status, message)
-    {
-        this.status = status;
-        this.message = message;
-    };
-
-    Test.prototype.timeout = function()
-    {
-        this.timeout_id = null;
-        this.set_status(this.TIMEOUT, "Test timed out");
-        this.phase = this.phases.HAS_RESULT;
-        this.done();
-    };
-
-    Test.prototype.done = function()
-    {
-        if (this.phase == this.phases.COMPLETE) {
-            return;
-        }
-
-        if (this.phase <= this.phases.STARTED) {
-            this.set_status(this.PASS, null);
-        }
-
-        this.phase = this.phases.COMPLETE;
-
-        clearTimeout(this.timeout_id);
-        tests.result(this);
-        this.cleanup();
-    };
-
-    Test.prototype.cleanup = function() {
-        forEach(this.cleanup_callbacks,
-                function(cleanup_callback) {
-                    cleanup_callback();
-                });
-    };
-
-    /*
-     * A RemoteTest object mirrors a Test object on a remote worker. The
-     * associated RemoteWorker updates the RemoteTest object in response to
-     * received events. In turn, the RemoteTest object replicates these events
-     * on the local document. This allows listeners (test result reporting
-     * etc..) to transparently handle local and remote events.
-     */
-    function RemoteTest(clone) {
-        var this_obj = this;
-        Object.keys(clone).forEach(
-                function(key) {
-                    this_obj[key] = clone[key];
-                });
-        this.index = null;
-        this.phase = this.phases.INITIAL;
-        this.update_state_from(clone);
-        tests.push(this);
-    }
-
-    RemoteTest.prototype.structured_clone = function() {
-        var clone = {};
-        Object.keys(this).forEach(
-                function(key) {
-                    if (typeof(this[key]) === "object") {
-                        clone[key] = merge({}, this[key]);
-                    } else {
-                        clone[key] = this[key];
-                    }
-                });
-        clone.phases = merge({}, this.phases);
-        return clone;
-    };
-
-    RemoteTest.prototype.cleanup = function() {};
-    RemoteTest.prototype.phases = Test.prototype.phases;
-    RemoteTest.prototype.update_state_from = function(clone) {
-        this.status = clone.status;
-        this.message = clone.message;
-        if (this.phase === this.phases.INITIAL) {
-            this.phase = this.phases.STARTED;
-        }
-    };
-    RemoteTest.prototype.done = function() {
-        this.phase = this.phases.COMPLETE;
-    }
-
-    /*
-     * A RemoteWorker listens for test events from a worker. These events are
-     * then used to construct and maintain RemoteTest objects that mirror the
-     * tests running on the remote worker.
-     */
-    function RemoteWorker(worker) {
-        this.running = true;
-        this.tests = new Array();
-
-        var this_obj = this;
-        worker.onerror = function(error) { this_obj.worker_error(error); };
-
-        var message_port;
-
-        if (is_service_worker(worker)) {
-            // The ServiceWorker's implicit MessagePort is currently not
-            // reliably accessible from the ServiceWorkerGlobalScope due to
-            // Blink setting MessageEvent.source to null for messages sent via
-            // ServiceWorker.postMessage(). Until that's resolved, create an
-            // explicit MessageChannel and pass one end to the worker.
-            var message_channel = new MessageChannel();
-            message_port = message_channel.port1;
-            message_port.start();
-            worker.postMessage({type: "connect"}, [message_channel.port2]);
-        } else if (is_shared_worker(worker)) {
-            message_port = worker.port;
-        } else {
-            message_port = worker;
-        }
-
-        // Keeping a reference to the worker until worker_done() is seen
-        // prevents the Worker object and its MessageChannel from going away
-        // before all the messages are dispatched.
-        this.worker = worker;
-
-        message_port.onmessage =
-            function(message) {
-                if (this_obj.running && (message.data.type in this_obj.message_handlers)) {
-                    this_obj.message_handlers[message.data.type].call(this_obj, message.data);
-                }
-            };
-    }
-
-    RemoteWorker.prototype.worker_error = function(error) {
-        var message = error.message || String(error);
-        var filename = (error.filename ? " " + error.filename: "");
-        // FIXME: Display worker error states separately from main document
-        // error state.
-        this.worker_done({
-            status: {
-                status: tests.status.ERROR,
-                message: "Error in worker" + filename + ": " + message
-            }
-        });
-        error.preventDefault();
-    };
-
-    RemoteWorker.prototype.test_state = function(data) {
-        var remote_test = this.tests[data.test.index];
-        if (!remote_test) {
-            remote_test = new RemoteTest(data.test);
-            this.tests[data.test.index] = remote_test;
-        }
-        remote_test.update_state_from(data.test);
-        tests.notify_test_state(remote_test);
-    };
-
-    RemoteWorker.prototype.test_done = function(data) {
-        var remote_test = this.tests[data.test.index];
-        remote_test.update_state_from(data.test);
-        remote_test.done();
-        tests.result(remote_test);
-    };
-
-    RemoteWorker.prototype.worker_done = function(data) {
-        if (tests.status.status === null &&
-            data.status.status !== data.status.OK) {
-            tests.status.status = data.status.status;
-            tests.status.message = data.status.message;
-        }
-        this.running = false;
-        this.worker = null;
-        if (tests.all_done()) {
-            tests.complete();
-        }
-    };
-
-    RemoteWorker.prototype.message_handlers = {
-        test_state: RemoteWorker.prototype.test_state,
-        result: RemoteWorker.prototype.test_done,
-        complete: RemoteWorker.prototype.worker_done
-    };
-
-    /*
-     * Harness
-     */
-
-    function TestsStatus()
-    {
-        this.status = null;
-        this.message = null;
-    }
-
-    TestsStatus.statuses = {
-        OK:0,
-        ERROR:1,
-        TIMEOUT:2
-    };
-
-    TestsStatus.prototype = merge({}, TestsStatus.statuses);
-
-    TestsStatus.prototype.structured_clone = function()
-    {
-        if (!this._structured_clone) {
-            var msg = this.message;
-            msg = msg ? String(msg) : msg;
-            this._structured_clone = merge({
-                status:this.status,
-                message:msg
-            }, TestsStatus.statuses);
-        }
-        return this._structured_clone;
-    };
-
-    function Tests()
-    {
-        this.tests = [];
-        this.num_pending = 0;
-
-        this.phases = {
-            INITIAL:0,
-            SETUP:1,
-            HAVE_TESTS:2,
-            HAVE_RESULTS:3,
-            COMPLETE:4
-        };
-        this.phase = this.phases.INITIAL;
-
-        this.properties = {};
-
-        this.wait_for_finish = false;
-        this.processing_callbacks = false;
-
-        this.allow_uncaught_exception = false;
-
-        this.file_is_test = false;
-
-        this.timeout_multiplier = 1;
-        this.timeout_length = test_environment.test_timeout();
-        this.timeout_id = null;
-
-        this.start_callbacks = [];
-        this.test_state_callbacks = [];
-        this.test_done_callbacks = [];
-        this.all_done_callbacks = [];
-
-        this.pending_workers = [];
-
-        this.status = new TestsStatus();
-
-        var this_obj = this;
-
-        test_environment.add_on_loaded_callback(function() {
-            if (this_obj.all_done()) {
-                this_obj.complete();
-            }
-        });
-
-        this.set_timeout();
-    }
-
-    Tests.prototype.setup = function(func, properties)
-    {
-        if (this.phase >= this.phases.HAVE_RESULTS) {
-            return;
-        }
-
-        if (this.phase < this.phases.SETUP) {
-            this.phase = this.phases.SETUP;
-        }
-
-        this.properties = properties;
-
-        for (var p in properties) {
-            if (properties.hasOwnProperty(p)) {
-                var value = properties[p];
-                if (p == "allow_uncaught_exception") {
-                    this.allow_uncaught_exception = value;
-                } else if (p == "explicit_done" && value) {
-                    this.wait_for_finish = true;
-                } else if (p == "explicit_timeout" && value) {
-                    this.timeout_length = null;
-                    if (this.timeout_id)
-                    {
-                        clearTimeout(this.timeout_id);
-                    }
-                } else if (p == "timeout_multiplier") {
-                    this.timeout_multiplier = value;
-                }
-            }
-        }
-
-        if (func) {
-            try {
-                func();
-            } catch (e) {
-                this.status.status = this.status.ERROR;
-                this.status.message = String(e);
-            }
-        }
-        this.set_timeout();
-    };
-
-    Tests.prototype.set_file_is_test = function() {
-        if (this.tests.length > 0) {
-            throw new Error("Tried to set file as test after creating a test");
-        }
-        this.wait_for_finish = true;
-        this.file_is_test = true;
-        // Create the test, which will add it to the list of tests
-        async_test();
-    };
-
-    Tests.prototype.set_timeout = function() {
-        var this_obj = this;
-        clearTimeout(this.timeout_id);
-        if (this.timeout_length !== null) {
-            this.timeout_id = setTimeout(function() {
-                                             this_obj.timeout();
-                                         }, this.timeout_length);
-        }
-    };
-
-    Tests.prototype.timeout = function() {
-        if (this.status.status === null) {
-            this.status.status = this.status.TIMEOUT;
-        }
-        this.complete();
-    };
-
-    Tests.prototype.end_wait = function()
-    {
-        this.wait_for_finish = false;
-        if (this.all_done()) {
-            this.complete();
-        }
-    };
-
-    Tests.prototype.push = function(test)
-    {
-        if (this.phase < this.phases.HAVE_TESTS) {
-            this.start();
-        }
-        this.num_pending++;
-        test.index = this.tests.push(test);
-        this.notify_test_state(test);
-    };
-
-    Tests.prototype.notify_test_state = function(test) {
-        var this_obj = this;
-        forEach(this.test_state_callbacks,
-                function(callback) {
-                    callback(test, this_obj);
-                });
-    };
-
-    Tests.prototype.all_done = function() {
-        return (this.tests.length > 0 && test_environment.all_loaded &&
-                this.num_pending === 0 && !this.wait_for_finish &&
-                !this.processing_callbacks &&
-                !this.pending_workers.some(function(w) { return w.running; }));
-    };
-
-    Tests.prototype.start = function() {
-        this.phase = this.phases.HAVE_TESTS;
-        this.notify_start();
-    };
-
-    Tests.prototype.notify_start = function() {
-        var this_obj = this;
-        forEach (this.start_callbacks,
-                 function(callback)
-                 {
-                     callback(this_obj.properties);
-                 });
-    };
-
-    Tests.prototype.result = function(test)
-    {
-        if (this.phase > this.phases.HAVE_RESULTS) {
-            return;
-        }
-        this.phase = this.phases.HAVE_RESULTS;
-        this.num_pending--;
-        this.notify_result(test);
-    };
-
-    Tests.prototype.notify_result = function(test) {
-        var this_obj = this;
-        this.processing_callbacks = true;
-        forEach(this.test_done_callbacks,
-                function(callback)
-                {
-                    callback(test, this_obj);
-                });
-        this.processing_callbacks = false;
-        if (this_obj.all_done()) {
-            this_obj.complete();
-        }
-    };
-
-    Tests.prototype.complete = function() {
-        if (this.phase === this.phases.COMPLETE) {
-            return;
-        }
-        this.phase = this.phases.COMPLETE;
-        var this_obj = this;
-        this.tests.forEach(
-            function(x)
-            {
-                if (x.phase < x.phases.COMPLETE) {
-                    this_obj.notify_result(x);
-                    x.cleanup();
-                    x.phase = x.phases.COMPLETE;
-                }
-            }
-        );
-        this.notify_complete();
-    };
-
-    Tests.prototype.notify_complete = function() {
-        var this_obj = this;
-        if (this.status.status === null) {
-            this.status.status = this.status.OK;
-        }
-
-        forEach (this.all_done_callbacks,
-                 function(callback)
-                 {
-                     callback(this_obj.tests, this_obj.status);
-                 });
-    };
-
-    Tests.prototype.fetch_tests_from_worker = function(worker) {
-        if (this.phase >= this.phases.COMPLETE) {
-            return;
-        }
-
-        this.pending_workers.push(new RemoteWorker(worker));
-    };
-
-    function fetch_tests_from_worker(port) {
-        tests.fetch_tests_from_worker(port);
-    }
-    expose(fetch_tests_from_worker, 'fetch_tests_from_worker');
-
-    function timeout() {
-        if (tests.timeout_length === null) {
-            tests.timeout();
-        }
-    }
-    expose(timeout, 'timeout');
-
-    function add_start_callback(callback) {
-        tests.start_callbacks.push(callback);
-    }
-
-    function add_test_state_callback(callback) {
-        tests.test_state_callbacks.push(callback);
-    }
-
-    function add_result_callback(callback)
-    {
-        tests.test_done_callbacks.push(callback);
-    }
-
-    function add_completion_callback(callback)
-    {
-       tests.all_done_callbacks.push(callback);
-    }
-
-    expose(add_start_callback, 'add_start_callback');
-    expose(add_test_state_callback, 'add_test_state_callback');
-    expose(add_result_callback, 'add_result_callback');
-    expose(add_completion_callback, 'add_completion_callback');
-
-    /*
-     * Output listener
-    */
-
-    function Output() {
-        this.output_document = document;
-        this.output_node = null;
-        this.enabled = settings.output;
-        this.phase = this.INITIAL;
-    }
-
-    Output.prototype.INITIAL = 0;
-    Output.prototype.STARTED = 1;
-    Output.prototype.HAVE_RESULTS = 2;
-    Output.prototype.COMPLETE = 3;
-
-    Output.prototype.setup = function(properties) {
-        if (this.phase > this.INITIAL) {
-            return;
-        }
-
-        //If output is disabled in testharnessreport.js the test shouldn't be
-        //able to override that
-        this.enabled = this.enabled && (properties.hasOwnProperty("output") ?
-                                        properties.output : settings.output);
-    };
-
-    Output.prototype.init = function(properties) {
-        if (this.phase >= this.STARTED) {
-            return;
-        }
-        if (properties.output_document) {
-            this.output_document = properties.output_document;
-        } else {
-            this.output_document = document;
-        }
-        this.phase = this.STARTED;
-    };
-
-    Output.prototype.resolve_log = function() {
-        var output_document;
-        if (typeof this.output_document === "function") {
-            output_document = this.output_document.apply(undefined);
-        } else {
-            output_document = this.output_document;
-        }
-        if (!output_document) {
-            return;
-        }
-        var node = output_document.getElementById("log");
-        if (!node) {
-            if (!document.body || document.readyState == "loading") {
-                return;
-            }
-            node = output_document.createElement("div");
-            node.id = "log";
-            output_document.body.appendChild(node);
-        }
-        this.output_document = output_document;
-        this.output_node = node;
-    };
-
-    Output.prototype.show_status = function() {
-        if (this.phase < this.STARTED) {
-            this.init();
-        }
-        if (!this.enabled) {
-            return;
-        }
-        if (this.phase < this.HAVE_RESULTS) {
-            this.resolve_log();
-            this.phase = this.HAVE_RESULTS;
-        }
-        var done_count = tests.tests.length - tests.num_pending;
-        if (this.output_node) {
-            if (done_count < 100 ||
-                (done_count < 1000 && done_count % 100 === 0) ||
-                done_count % 1000 === 0) {
-                this.output_node.textContent = "Running, " +
-                    done_count + " complete, " +
-                    tests.num_pending + " remain";
-            }
-        }
-    };
-
-    Output.prototype.show_results = function (tests, harness_status) {
-        if (this.phase >= this.COMPLETE) {
-            return;
-        }
-        if (!this.enabled) {
-            return;
-        }
-        if (!this.output_node) {
-            this.resolve_log();
-        }
-        this.phase = this.COMPLETE;
-
-        var log = this.output_node;
-        if (!log) {
-            return;
-        }
-        var output_document = this.output_document;
-
-        while (log.lastChild) {
-            log.removeChild(log.lastChild);
-        }
-
-        var script_prefix = null;
-        var scripts = document.getElementsByTagName("script");
-        for (var i = 0; i < scripts.length; i++) {
-            var src;
-            if (scripts[i].src) {
-                src = scripts[i].src;
-            } else if (scripts[i].href) {
-                //SVG case
-                src = scripts[i].href.baseVal;
-            }
-
-            var matches = src && src.match(/^(.*\/|)testharness\.js$/);
-            if (matches) {
-                script_prefix = matches[1];
-                break;
-            }
-        }
-
-        if (script_prefix !== null) {
-            var stylesheet = output_document.createElementNS(xhtml_ns, "link");
-            stylesheet.setAttribute("rel", "stylesheet");
-            stylesheet.setAttribute("href", script_prefix + "testharness.css");
-            var heads = output_document.getElementsByTagName("head");
-            if (heads.length) {
-                heads[0].appendChild(stylesheet);
-            }
-        }
-
-        var status_text_harness = {};
-        status_text_harness[harness_status.OK] = "OK";
-        status_text_harness[harness_status.ERROR] = "Error";
-        status_text_harness[harness_status.TIMEOUT] = "Timeout";
-
-        var status_text = {};
-        status_text[Test.prototype.PASS] = "Pass";
-        status_text[Test.prototype.FAIL] = "Fail";
-        status_text[Test.prototype.TIMEOUT] = "Timeout";
-        status_text[Test.prototype.NOTRUN] = "Not Run";
-
-        var status_number = {};
-        forEach(tests,
-                function(test) {
-                    var status = status_text[test.status];
-                    if (status_number.hasOwnProperty(status)) {
-                        status_number[status] += 1;
-                    } else {
-                        status_number[status] = 1;
-                    }
-                });
-
-        function status_class(status)
-        {
-            return status.replace(/\s/g, '').toLowerCase();
-        }
-
-        var summary_template = ["section", {"id":"summary"},
-                                ["h2", {}, "Summary"],
-                                function()
-                                {
-
-                                    var status = status_text_harness[harness_status.status];
-                                    var rv = [["section", {},
-                                               ["p", {},
-                                                "Harness status: ",
-                                                ["span", {"class":status_class(status)},
-                                                 status
-                                                ],
-                                               ]
-                                              ]];
-
-                                    if (harness_status.status === harness_status.ERROR) {
-                                        rv[0].push(["pre", {}, harness_status.message]);
-                                    }
-                                    return rv;
-                                },
-                                ["p", {}, "Found ${num_tests} tests"],
-                                function() {
-                                    var rv = [["div", {}]];
-                                    var i = 0;
-                                    while (status_text.hasOwnProperty(i)) {
-                                        if (status_number.hasOwnProperty(status_text[i])) {
-                                            var status = status_text[i];
-                                            rv[0].push(["div", {"class":status_class(status)},
-                                                        ["label", {},
-                                                         ["input", {type:"checkbox", checked:"checked"}],
-                                                         status_number[status] + " " + status]]);
-                                        }
-                                        i++;
-                                    }
-                                    return rv;
-                                },
-                               ];
-
-        log.appendChild(render(summary_template, {num_tests:tests.length}, output_document));
-
-        forEach(output_document.querySelectorAll("section#summary label"),
-                function(element)
-                {
-                    on_event(element, "click",
-                             function(e)
-                             {
-                                 if (output_document.getElementById("results") === null) {
-                                     e.preventDefault();
-                                     return;
-                                 }
-                                 var result_class = element.parentNode.getAttribute("class");
-                                 var style_element = output_document.querySelector("style#hide-" + result_class);
-                                 var input_element = element.querySelector("input");
-                                 if (!style_element && !input_element.checked) {
-                                     style_element = output_document.createElementNS(xhtml_ns, "style");
-                                     style_element.id = "hide-" + result_class;
-                                     style_element.textContent = "table#results > tbody > tr."+result_class+"{display:none}";
-                                     output_document.body.appendChild(style_element);
-                                 } else if (style_element && input_element.checked) {
-                                     style_element.parentNode.removeChild(style_element);
-                                 }
-                             });
-                });
-
-        // This use of innerHTML plus manual escaping is not recommended in
-        // general, but is necessary here for performance.  Using textContent
-        // on each individual <td> adds tens of seconds of execution time for
-        // large test suites (tens of thousands of tests).
-        function escape_html(s)
-        {
-            return s.replace(/\&/g, "&amp;")
-                .replace(/</g, "&lt;")
-                .replace(/"/g, "&quot;")
-                .replace(/'/g, "&#39;");
-        }
-
-        function has_assertions()
-        {
-            for (var i = 0; i < tests.length; i++) {
-                if (tests[i].properties.hasOwnProperty("assert")) {
-                    return true;
-                }
-            }
-            return false;
-        }
-
-        function get_assertion(test)
-        {
-            if (test.properties.hasOwnProperty("assert")) {
-                if (Array.isArray(test.properties.assert)) {
-                    return test.properties.assert.join(' ');
-                }
-                return test.properties.assert;
-            }
-            return '';
-        }
-
-        log.appendChild(document.createElementNS(xhtml_ns, "section"));
-        var assertions = has_assertions();
-        var html = "<h2>Details</h2><table id='results' " + (assertions ? "class='assertions'" : "" ) + ">" +
-            "<thead><tr><th>Result</th><th>Test Name</th>" +
-            (assertions ? "<th>Assertion</th>" : "") +
-            "<th>Message</th></tr></thead>" +
-            "<tbody>";
-        for (var i = 0; i < tests.length; i++) {
-            html += '<tr class="' +
-                escape_html(status_class(status_text[tests[i].status])) +
-                '"><td>' +
-                escape_html(status_text[tests[i].status]) +
-                "</td><td>" +
-                escape_html(tests[i].name) +
-                "</td><td>" +
-                (assertions ? escape_html(get_assertion(tests[i])) + "</td><td>" : "") +
-                escape_html(tests[i].message ? tests[i].message : " ") +
-                "</td></tr>";
-        }
-        html += "</tbody></table>";
-        try {
-            log.lastChild.innerHTML = html;
-        } catch (e) {
-            log.appendChild(document.createElementNS(xhtml_ns, "p"))
-               .textContent = "Setting innerHTML for the log threw an exception.";
-            log.appendChild(document.createElementNS(xhtml_ns, "pre"))
-               .textContent = html;
-        }
-    };
-
-    /*
-     * Template code
-     *
-     * A template is just a javascript structure. An element is represented as:
-     *
-     * [tag_name, {attr_name:attr_value}, child1, child2]
-     *
-     * the children can either be strings (which act like text nodes), other templates or
-     * functions (see below)
-     *
-     * A text node is represented as
-     *
-     * ["{text}", value]
-     *
-     * String values have a simple substitution syntax; ${foo} represents a variable foo.
-     *
-     * It is possible to embed logic in templates by using a function in a place where a
-     * node would usually go. The function must either return part of a template or null.
-     *
-     * In cases where a set of nodes are required as output rather than a single node
-     * with children it is possible to just use a list
-     * [node1, node2, node3]
-     *
-     * Usage:
-     *
-     * render(template, substitutions) - take a template and an object mapping
-     * variable names to parameters and return either a DOM node or a list of DOM nodes
-     *
-     * substitute(template, substitutions) - take a template and variable mapping object,
-     * make the variable substitutions and return the substituted template
-     *
-     */
-
-    function is_single_node(template)
-    {
-        return typeof template[0] === "string";
-    }
-
-    function substitute(template, substitutions)
-    {
-        if (typeof template === "function") {
-            var replacement = template(substitutions);
-            if (!replacement) {
-                return null;
-            }
-
-            return substitute(replacement, substitutions);
-        }
-
-        if (is_single_node(template)) {
-            return substitute_single(template, substitutions);
-        }
-
-        return filter(map(template, function(x) {
-                              return substitute(x, substitutions);
-                          }), function(x) {return x !== null;});
-    }
-
-    function substitute_single(template, substitutions)
-    {
-        var substitution_re = /\$\{([^ }]*)\}/g;
-
-        function do_substitution(input) {
-            var components = input.split(substitution_re);
-            var rv = [];
-            for (var i = 0; i < components.length; i += 2) {
-                rv.push(components[i]);
-                if (components[i + 1]) {
-                    rv.push(String(substitutions[components[i + 1]]));
-                }
-            }
-            return rv;
-        }
-
-        function substitute_attrs(attrs, rv)
-        {
-            rv[1] = {};
-            for (var name in template[1]) {
-                if (attrs.hasOwnProperty(name)) {
-                    var new_name = do_substitution(name).join("");
-                    var new_value = do_substitution(attrs[name]).join("");
-                    rv[1][new_name] = new_value;
-                }
-            }
-        }
-
-        function substitute_children(children, rv)
-        {
-            for (var i = 0; i < children.length; i++) {
-                if (children[i] instanceof Object) {
-                    var replacement = substitute(children[i], substitutions);
-                    if (replacement !== null) {
-                        if (is_single_node(replacement)) {
-                            rv.push(replacement);
-                        } else {
-                            extend(rv, replacement);
-                        }
-                    }
-                } else {
-                    extend(rv, do_substitution(String(children[i])));
-                }
-            }
-            return rv;
-        }
-
-        var rv = [];
-        rv.push(do_substitution(String(template[0])).join(""));
-
-        if (template[0] === "{text}") {
-            substitute_children(template.slice(1), rv);
-        } else {
-            substitute_attrs(template[1], rv);
-            substitute_children(template.slice(2), rv);
-        }
-
-        return rv;
-    }
-
-    function make_dom_single(template, doc)
-    {
-        var output_document = doc || document;
-        var element;
-        if (template[0] === "{text}") {
-            element = output_document.createTextNode("");
-            for (var i = 1; i < template.length; i++) {
-                element.data += template[i];
-            }
-        } else {
-            element = output_document.createElementNS(xhtml_ns, template[0]);
-            for (var name in template[1]) {
-                if (template[1].hasOwnProperty(name)) {
-                    element.setAttribute(name, template[1][name]);
-                }
-            }
-            for (var i = 2; i < template.length; i++) {
-                if (template[i] instanceof Object) {
-                    var sub_element = make_dom(template[i]);
-                    element.appendChild(sub_element);
-                } else {
-                    var text_node = output_document.createTextNode(template[i]);
-                    element.appendChild(text_node);
-                }
-            }
-        }
-
-        return element;
-    }
-
-    function make_dom(template, substitutions, output_document)
-    {
-        if (is_single_node(template)) {
-            return make_dom_single(template, output_document);
-        }
-
-        return map(template, function(x) {
-                       return make_dom_single(x, output_document);
-                   });
-    }
-
-    function render(template, substitutions, output_document)
-    {
-        return make_dom(substitute(template, substitutions), output_document);
-    }
-
-    /*
-     * Utility funcions
-     */
-    function assert(expected_true, function_name, description, error, substitutions)
-    {
-        if (tests.tests.length === 0) {
-            tests.set_file_is_test();
-        }
-        if (expected_true !== true) {
-            var msg = make_message(function_name, description,
-                                   error, substitutions);
-            throw new AssertionError(msg);
-        }
-    }
-
-    function AssertionError(message)
-    {
-        this.message = message;
-    }
-
-    AssertionError.prototype.toString = function() {
-        return this.message;
-    };
-
-    function make_message(function_name, description, error, substitutions)
-    {
-        for (var p in substitutions) {
-            if (substitutions.hasOwnProperty(p)) {
-                substitutions[p] = format_value(substitutions[p]);
-            }
-        }
-        var node_form = substitute(["{text}", "${function_name}: ${description}" + error],
-                                   merge({function_name:function_name,
-                                          description:(description?description + " ":"")},
-                                          substitutions));
-        return node_form.slice(1).join("");
-    }
-
-    function filter(array, callable, thisObj) {
-        var rv = [];
-        for (var i = 0; i < array.length; i++) {
-            if (array.hasOwnProperty(i)) {
-                var pass = callable.call(thisObj, array[i], i, array);
-                if (pass) {
-                    rv.push(array[i]);
-                }
-            }
-        }
-        return rv;
-    }
-
-    function map(array, callable, thisObj)
-    {
-        var rv = [];
-        rv.length = array.length;
-        for (var i = 0; i < array.length; i++) {
-            if (array.hasOwnProperty(i)) {
-                rv[i] = callable.call(thisObj, array[i], i, array);
-            }
-        }
-        return rv;
-    }
-
-    function extend(array, items)
-    {
-        Array.prototype.push.apply(array, items);
-    }
-
-    function forEach (array, callback, thisObj)
-    {
-        for (var i = 0; i < array.length; i++) {
-            if (array.hasOwnProperty(i)) {
-                callback.call(thisObj, array[i], i, array);
-            }
-        }
-    }
-
-    function merge(a,b)
-    {
-        var rv = {};
-        var p;
-        for (p in a) {
-            rv[p] = a[p];
-        }
-        for (p in b) {
-            rv[p] = b[p];
-        }
-        return rv;
-    }
-
-    function expose(object, name)
-    {
-        var components = name.split(".");
-        var target = test_environment.global_scope();
-        for (var i = 0; i < components.length - 1; i++) {
-            if (!(components[i] in target)) {
-                target[components[i]] = {};
-            }
-            target = target[components[i]];
-        }
-        target[components[components.length - 1]] = object;
-    }
-
-    function is_same_origin(w) {
-        try {
-            'random_prop' in w;
-            return true;
-        } catch (e) {
-            return false;
-        }
-    }
-
-    function supports_post_message(w)
-    {
-        var supports;
-        var type;
-        // Given IE  implements postMessage across nested iframes but not across
-        // windows or tabs, you can't infer cross-origin communication from the presence
-        // of postMessage on the current window object only.
-        //
-        // Touching the postMessage prop on a window can throw if the window is
-        // not from the same origin AND post message is not supported in that
-        // browser. So just doing an existence test here won't do, you also need
-        // to wrap it in a try..cacth block.
-        try {
-            type = typeof w.postMessage;
-            if (type === "function") {
-                supports = true;
-            }
-
-            // IE8 supports postMessage, but implements it as a host object which
-            // returns "object" as its `typeof`.
-            else if (type === "object") {
-                supports = true;
-            }
-
-            // This is the case where postMessage isn't supported AND accessing a
-            // window property across origins does NOT throw (e.g. old Safari browser).
-            else {
-                supports = false;
-            }
-        } catch (e) {
-            // This is the case where postMessage isn't supported AND accessing a
-            // window property across origins throws (e.g. old Firefox browser).
-            supports = false;
-        }
-        return supports;
-    }
-
-    /**
-     * Setup globals
-     */
-
-    var tests = new Tests();
-
-    addEventListener("error", function(e) {
-        if (tests.file_is_test) {
-            var test = tests.tests[0];
-            if (test.phase >= test.phases.HAS_RESULT) {
-                return;
-            }
-            var message = e.message;
-            test.set_status(test.FAIL, message);
-            test.phase = test.phases.HAS_RESULT;
-            test.done();
-            done();
-        } else if (!tests.allow_uncaught_exception) {
-            tests.status.status = tests.status.ERROR;
-            tests.status.message = e.message;
-        }
-    });
-
-    test_environment.on_tests_ready();
-
-})();
-// vim: set expandtab shiftwidth=4 tabstop=4:
diff --git a/common/tct-messaging-email-tizen-tests/resources/testharnessreport.js b/common/tct-messaging-email-tizen-tests/resources/testharnessreport.js
deleted file mode 100755 (executable)
index d7df7e2..0000000
+++ /dev/null
@@ -1,397 +0,0 @@
-/*global add_completion_callback, setup */
-/*
- * This file is intended for vendors to implement
- * code needed to integrate testharness.js tests with their own test systems.
- *
- * The default implementation extracts metadata from the tests and validates
- * it against the cached version that should be present in the test source
- * file. If the cache is not found or is out of sync, source code suitable for
- * caching the metadata is optionally generated.
- *
- * The cached metadata is present for extraction by test processing tools that
- * are unable to execute javascript.
- *
- * Metadata is attached to tests via the properties parameter in the test
- * constructor. See testharness.js for details.
- *
- * Typically test system integration will attach callbacks when each test has
- * run, using add_result_callback(callback(test)), or when the whole test file
- * has completed, using
- * add_completion_callback(callback(tests, harness_status)).
- *
- * For more documentation about the callback functions and the
- * parameters they are called with see testharness.js
- */
-
-
-
-var metadata_generator = {
-
-    currentMetadata: {},
-    cachedMetadata: false,
-    metadataProperties: ['help', 'assert', 'author'],
-
-    error: function(message) {
-        var messageElement = document.createElement('p');
-        messageElement.setAttribute('class', 'error');
-        this.appendText(messageElement, message);
-
-        var summary = document.getElementById('summary');
-        if (summary) {
-            summary.parentNode.insertBefore(messageElement, summary);
-        }
-        else {
-            document.body.appendChild(messageElement);
-        }
-    },
-
-    /**
-     * Ensure property value has contact information
-     */
-    validateContact: function(test, propertyName) {
-        var result = true;
-        var value = test.properties[propertyName];
-        var values = Array.isArray(value) ? value : [value];
-        for (var index = 0; index < values.length; index++) {
-            value = values[index];
-            var re = /(\S+)(\s*)<(.*)>(.*)/;
-            if (! re.test(value)) {
-                re = /(\S+)(\s+)(http[s]?:\/\/)(.*)/;
-                if (! re.test(value)) {
-                    this.error('Metadata property "' + propertyName +
-                        '" for test: "' + test.name +
-                        '" must have name and contact information ' +
-                        '("name <email>" or "name http(s)://")');
-                    result = false;
-                }
-            }
-        }
-        return result;
-    },
-
-    /**
-     * Extract metadata from test object
-     */
-    extractFromTest: function(test) {
-        var testMetadata = {};
-        // filter out metadata from other properties in test
-        for (var metaIndex = 0; metaIndex < this.metadataProperties.length;
-             metaIndex++) {
-            var meta = this.metadataProperties[metaIndex];
-            if (test.properties.hasOwnProperty(meta)) {
-                if ('author' == meta) {
-                    this.validateContact(test, meta);
-                }
-                testMetadata[meta] = test.properties[meta];
-            }
-        }
-        return testMetadata;
-    },
-
-    /**
-     * Compare cached metadata to extracted metadata
-     */
-    validateCache: function() {
-        for (var testName in this.currentMetadata) {
-            if (! this.cachedMetadata.hasOwnProperty(testName)) {
-                return false;
-            }
-            var testMetadata = this.currentMetadata[testName];
-            var cachedTestMetadata = this.cachedMetadata[testName];
-            delete this.cachedMetadata[testName];
-
-            for (var metaIndex = 0; metaIndex < this.metadataProperties.length;
-                 metaIndex++) {
-                var meta = this.metadataProperties[metaIndex];
-                if (cachedTestMetadata.hasOwnProperty(meta) &&
-                    testMetadata.hasOwnProperty(meta)) {
-                    if (Array.isArray(cachedTestMetadata[meta])) {
-                      if (! Array.isArray(testMetadata[meta])) {
-                          return false;
-                      }
-                      if (cachedTestMetadata[meta].length ==
-                          testMetadata[meta].length) {
-                          for (var index = 0;
-                               index < cachedTestMetadata[meta].length;
-                               index++) {
-                              if (cachedTestMetadata[meta][index] !=
-                                  testMetadata[meta][index]) {
-                                  return false;
-                              }
-                          }
-                      }
-                      else {
-                          return false;
-                      }
-                    }
-                    else {
-                      if (Array.isArray(testMetadata[meta])) {
-                        return false;
-                      }
-                      if (cachedTestMetadata[meta] != testMetadata[meta]) {
-                        return false;
-                      }
-                    }
-                }
-                else if (cachedTestMetadata.hasOwnProperty(meta) ||
-                         testMetadata.hasOwnProperty(meta)) {
-                    return false;
-                }
-            }
-        }
-        for (var testName in this.cachedMetadata) {
-            return false;
-        }
-        return true;
-    },
-
-    appendText: function(elemement, text) {
-        elemement.appendChild(document.createTextNode(text));
-    },
-
-    jsonifyArray: function(arrayValue, indent) {
-        var output = '[';
-
-        if (1 == arrayValue.length) {
-            output += JSON.stringify(arrayValue[0]);
-        }
-        else {
-            for (var index = 0; index < arrayValue.length; index++) {
-                if (0 < index) {
-                    output += ',\n  ' + indent;
-                }
-                output += JSON.stringify(arrayValue[index]);
-            }
-        }
-        output += ']';
-        return output;
-    },
-
-    jsonifyObject: function(objectValue, indent) {
-        var output = '{';
-        var value;
-
-        var count = 0;
-        for (var property in objectValue) {
-            ++count;
-            if (Array.isArray(objectValue[property]) ||
-                ('object' == typeof(value))) {
-                ++count;
-            }
-        }
-        if (1 == count) {
-            for (var property in objectValue) {
-                output += ' "' + property + '": ' +
-                    JSON.stringify(objectValue[property]) +
-                    ' ';
-            }
-        }
-        else {
-            var first = true;
-            for (var property in objectValue) {
-                if (! first) {
-                    output += ',';
-                }
-                first = false;
-                output += '\n  ' + indent + '"' + property + '": ';
-                value = objectValue[property];
-                if (Array.isArray(value)) {
-                    output += this.jsonifyArray(value, indent +
-                        '                '.substr(0, 5 + property.length));
-                }
-                else if ('object' == typeof(value)) {
-                    output += this.jsonifyObject(value, indent + '  ');
-                }
-                else {
-                    output += JSON.stringify(value);
-                }
-            }
-            if (1 < output.length) {
-                output += '\n' + indent;
-            }
-        }
-        output += '}';
-        return output;
-    },
-
-    /**
-     * Generate javascript source code for captured metadata
-     * Metadata is in pretty-printed JSON format
-     */
-    generateSource: function() {
-        var source =
-            '<script id="metadata_cache">/*\n' +
-            this.jsonifyObject(this.currentMetadata, '') + '\n' +
-            '*/</script>\n';
-        return source;
-    },
-
-    /**
-     * Add element containing metadata source code
-     */
-    addSourceElement: function(event) {
-        var sourceWrapper = document.createElement('div');
-        sourceWrapper.setAttribute('id', 'metadata_source');
-
-        var instructions = document.createElement('p');
-        if (this.cachedMetadata) {
-            this.appendText(instructions,
-                'Replace the existing <script id="metadata_cache"> element ' +
-                'in the test\'s <head> with the following:');
-        }
-        else {
-            this.appendText(instructions,
-                'Copy the following into the <head> element of the test ' +
-                'or the test\'s metadata sidecar file:');
-        }
-        sourceWrapper.appendChild(instructions);
-
-        var sourceElement = document.createElement('pre');
-        this.appendText(sourceElement, this.generateSource());
-
-        sourceWrapper.appendChild(sourceElement);
-
-        var messageElement = document.getElementById('metadata_issue');
-        messageElement.parentNode.insertBefore(sourceWrapper,
-                                               messageElement.nextSibling);
-        messageElement.parentNode.removeChild(messageElement);
-
-        (event.preventDefault) ? event.preventDefault() :
-                                 event.returnValue = false;
-    },
-
-    /**
-     * Extract the metadata cache from the cache element if present
-     */
-    getCachedMetadata: function() {
-        var cacheElement = document.getElementById('metadata_cache');
-
-        if (cacheElement) {
-            var cacheText = cacheElement.firstChild.nodeValue;
-            var openBrace = cacheText.indexOf('{');
-            var closeBrace = cacheText.lastIndexOf('}');
-            if ((-1 < openBrace) && (-1 < closeBrace)) {
-                cacheText = cacheText.slice(openBrace, closeBrace + 1);
-                try {
-                    this.cachedMetadata = JSON.parse(cacheText);
-                }
-                catch (exc) {
-                    this.cachedMetadata = 'Invalid JSON in Cached metadata. ';
-                }
-            }
-            else {
-                this.cachedMetadata = 'Metadata not found in cache element. ';
-            }
-        }
-    },
-
-    /**
-     * Main entry point, extract metadata from tests, compare to cached version
-     * if present.
-     * If cache not present or differs from extrated metadata, generate an error
-     */
-    process: function(tests) {
-        for (var index = 0; index < tests.length; index++) {
-            var test = tests[index];
-            if (this.currentMetadata.hasOwnProperty(test.name)) {
-                this.error('Duplicate test name: ' + test.name);
-            }
-            else {
-                this.currentMetadata[test.name] = this.extractFromTest(test);
-            }
-        }
-
-        this.getCachedMetadata();
-
-        var message = null;
-        var messageClass = 'warning';
-        var showSource = false;
-
-        if (0 === tests.length) {
-            if (this.cachedMetadata) {
-                message = 'Cached metadata present but no tests. ';
-            }
-        }
-        else if (1 === tests.length) {
-            if (this.cachedMetadata) {
-                message = 'Single test files should not have cached metadata. ';
-            }
-            else {
-                var testMetadata = this.currentMetadata[tests[0].name];
-                for (var meta in testMetadata) {
-                    if (testMetadata.hasOwnProperty(meta)) {
-                        message = 'Single tests should not have metadata. ' +
-                                  'Move metadata to <head>. ';
-                        break;
-                    }
-                }
-            }
-        }
-        else {
-            if (this.cachedMetadata) {
-                messageClass = 'error';
-                if ('string' == typeof(this.cachedMetadata)) {
-                    message = this.cachedMetadata;
-                    showSource = true;
-                }
-                else if (! this.validateCache()) {
-                    message = 'Cached metadata out of sync. ';
-                    showSource = true;
-                }
-            }
-        }
-
-        if (message) {
-            var messageElement = document.createElement('p');
-            messageElement.setAttribute('id', 'metadata_issue');
-            messageElement.setAttribute('class', messageClass);
-            this.appendText(messageElement, message);
-
-            if (showSource) {
-                var link = document.createElement('a');
-                this.appendText(link, 'Click for source code.');
-                link.setAttribute('href', '#');
-                link.setAttribute('onclick',
-                                  'metadata_generator.addSourceElement(event)');
-                messageElement.appendChild(link);
-            }
-
-            var summary = document.getElementById('summary');
-            if (summary) {
-                summary.parentNode.insertBefore(messageElement, summary);
-            }
-            else {
-                var log = document.getElementById('log');
-                if (log) {
-                    log.appendChild(messageElement);
-                }
-            }
-        }
-    },
-
-    setup: function() {
-        add_completion_callback(
-            function (tests, harness_status) {
-                metadata_generator.process(tests, harness_status);
-            });
-    }
-};
-
-metadata_generator.setup();
-
-/* If the parent window has a testharness_properties object,
- * we use this to provide the test settings. This is used by the
- * default in-browser runner to configure the timeout and the
- * rendering of results
- */
-try {
-    if (window.opener && "testharness_properties" in window.opener) {
-        /* If we pass the testharness_properties object as-is here without
-         * JSON stringifying and reparsing it, IE fails & emits the message
-         * "Could not complete the operation due to error 80700019".
-         */
-        setup(JSON.parse(JSON.stringify(window.opener.testharness_properties)));
-    }
-} catch (e) {
-}
-// vim: set expandtab shiftwidth=4 tabstop=4:
diff --git a/common/tct-messaging-email-tizen-tests/suite.json b/common/tct-messaging-email-tizen-tests/suite.json
deleted file mode 100755 (executable)
index c04f483..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-{
-    "pkg-blacklist": [
-        "config.xml",
-        "pack.py",
-        "testcase.xsl",
-        "testresult.xsl",
-        "tests.css",
-        "icon.png",
-        "manifest.json",
-        "suite.json",
-        "inst.*"
-    ],
-    "pkg-list": {
-        "apk,cordova": {
-            "blacklist": [
-                "*"
-            ],
-            "copylist": {
-                "inst.apk.py": "inst.py",
-                "tests.full.xml": "tests.full.xml",
-                "tests.xml": "tests.xml"
-            },
-            "pkg-app": {
-                "sign-flag": "true"
-            }
-        },
-        "apk-aio, cordova-aio": {
-            "blacklist": []
-        },
-        "wgt": {
-            "blacklist": [
-                "messaging",
-                "COPYING",
-                "LICENSE.*",
-                "NOTICE",
-                "README",
-                "resources",
-                "tests.full.xml",
-                "webrunner"
-            ],
-            "copylist": {
-                "inst.wgt.py": "inst.py",
-                "askpolicy.sh": "askpolicy.sh",
-                "tests.full.xml": "tests.full.xml",
-                "tests.xml": "tests.xml"
-            },
-            "pkg-app": {
-                "sign-flag": "true"
-            }
-        },
-        "xpk": {
-            "blacklist": [
-                "*"
-            ],
-            "copylist": {
-                "inst.xpk.py": "inst.py",
-                "tests.full.xml": "tests.full.xml",
-                "tests.xml": "tests.xml"
-            },
-            "pkg-app": {
-                "blacklist": [],
-                "sign-flag": "true"
-            }
-        }
-    },
-    "pkg-name": "tct-messaging-email-tizen-tests"
-}
diff --git a/common/tct-messaging-email-tizen-tests/testcase.xsl b/common/tct-messaging-email-tizen-tests/testcase.xsl
deleted file mode 100755 (executable)
index fb32685..0000000
+++ /dev/null
@@ -1,200 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-  <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
-  <xsl:template match="/">
-    <html>
-      <STYLE type="text/css">
-        @import "tests.css";
-      </STYLE>
-      <head>
-        <script type="text/javascript" src="jquery.min.js"/>
-      </head>
-      <body>
-        <div id="testcasepage">
-          <div id="title">
-            <table>
-              <tr>
-                <td>
-                  <h1>Test Cases</h1>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="suites">
-            <a name="contents"/>
-            <table>
-              <tr>
-                <th>Test Suite</th>
-                <th>Total</th>
-                <th>Auto</th>
-                <th>Manual</th>
-              </tr>
-              <tr>
-                <td>
-                  Total
-                </td>
-                <td>
-                  <xsl:value-of select="count(test_definition/suite/set//testcase)"/>
-                </td>
-                <td>
-                  <xsl:value-of select="count(test_definition/suite/set//testcase[@execution_type = 'auto'])"/>
-                </td>
-                <td>
-                  <xsl:value-of select="count(test_definition/suite/set//testcase[@execution_type != 'auto'])"/>
-                </td>
-              </tr>
-              <xsl:for-each select="test_definition/suite">
-                <tr>
-                  <td>
-                    <a>
-                      <xsl:attribute name="href">
-                        #<xsl:value-of select="@name"/>
-                      </xsl:attribute>
-                      <xsl:value-of select="@name"/>
-                    </a>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase)"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set/testcase[@execution_type = 'auto'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set/testcase[@execution_type != 'auto'])"/>
-                  </td>
-                </tr>
-              </xsl:for-each>
-            </table>
-          </div>
-          <div id="title">
-            <table>
-              <tr>
-                <td class="title">
-                  <h1>Detailed Test Cases</h1>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="cases">
-            <xsl:for-each select="test_definition/suite">
-              <xsl:sort select="@name"/>
-              <div id="btc">
-                <a href="#contents">Back to Contents</a>
-              </div>
-              <div id="suite_title">
-                Test Suite:
-                <xsl:value-of select="@name"/>
-                <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
-              </div>
-              <table>
-                <tr>
-                  <th>Case_ID</th>
-                  <th>Purpose</th>
-                  <th>Type</th>
-                  <th>Component</th>
-                  <th>Execution Type</th>
-                  <th>Description</th>
-                  <th>Specification</th>
-                </tr>
-                <xsl:for-each select=".//set">
-                  <xsl:sort select="@name"/>
-                  <tr>
-                    <td colspan="7">
-                      Test Set:
-                      <xsl:value-of select="@name"/>
-                    </td>
-                  </tr>
-                  <xsl:for-each select=".//testcase">
-                    <!-- xsl:sort select="@id" /> -->
-                    <tr>
-                      <td>
-                        <xsl:value-of select="@id"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@purpose"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@type"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@component"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@execution_type"/>
-                      </td>
-                      <td>
-                        <p>
-                          Pre_condition:
-                          <xsl:value-of select=".//description/pre_condition"/>
-                        </p>
-                        <p>
-                          Post_condition:
-                          <xsl:value-of select=".//description/post_condition"/>
-                        </p>
-                        <p>
-                          Test Script Entry:
-                          <xsl:value-of select=".//description/test_script_entry"/>
-                        </p>
-                        <p>
-                          Steps:
-                          <p/>
-                          <xsl:for-each select=".//description/steps/step"><xsl:sort select="@order"/>
-                            Step
-                            <xsl:value-of select="@order"/>
-                            :
-                            <xsl:value-of select="./step_desc"/>
-                            ;
-                            <p/>
-                            Expected Result:
-                            <xsl:value-of select="./expected"/>
-                            <p/>
-                          </xsl:for-each>
-                        </p>
-                      </td>
-                      <td>
-                        <xsl:for-each select=".//specs/spec"><b>[Spec_Assertion]:</b><br/>
-                          [Category]:
-                          <xsl:value-of select="./spec_assertion/@category"/>
-                          <br/>
-                          [Section]:
-                          <xsl:value-of select="./spec_assertion/@section"/>
-                          <br/>
-                          [Specification]:
-                          <xsl:value-of select="./spec_assertion/@specification"/>
-                          <br/>
-                          [Interface]:
-                          <xsl:value-of select="./spec_assertion/@interface"/>
-                          <br/>
-                          <xsl:choose><xsl:when test="./spec_assertion/@element_name">
-                              [<xsl:value-of select="./spec_assertion/@element_type"/>]:
-                              <xsl:value-of select="./spec_assertion/@element_name"/>
-                              <br/>
-                            </xsl:when></xsl:choose>
-                          [URL]:
-                          <xsl:value-of select="./spec_url"/>
-                          <br/>
-                          [Statement]:
-                          <xsl:value-of select="./spec_statement"/>
-                          <br/>
-                        </xsl:for-each>
-                      </td>
-                    </tr>
-                  </xsl:for-each>
-                </xsl:for-each>
-              </table>
-            </xsl:for-each>
-          </div>
-        </div>
-        <div id="goTopBtn">
-          <img border="0" src="./back_top.png"/>
-        </div>
-        <script type="text/javascript" src="application.js"/>
-        <script language="javascript" type="text/javascript">
-          $(document).ready(function(){
-            goTopEx();
-          });
-        </script>
-      </body>
-    </html>
-  </xsl:template>
-</xsl:stylesheet>
diff --git a/common/tct-messaging-email-tizen-tests/testresult.xsl b/common/tct-messaging-email-tizen-tests/testresult.xsl
deleted file mode 100755 (executable)
index c5199c0..0000000
+++ /dev/null
@@ -1,491 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-  <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
-  <xsl:template match="/">
-    <html>
-      <STYLE type="text/css">
-        @import "tests.css";
-      </STYLE>
-      <head>
-        <script type="text/javascript" src="jquery.min.js"/>
-      </head>
-      <body>
-        <div id="testcasepage">
-          <div id="title">
-            <table>
-              <tr>
-                <td>
-                  <h1>Test Report</h1>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="device">
-            <table>
-              <tr>
-                <th colspan="2">Device Information</th>
-              </tr>
-              <tr>
-                <td>Device Name</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@device_name">
-                      <xsl:if test="test_definition/environment/@device_name = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@device_name"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Device Model</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@device_model">
-                      <xsl:if test="test_definition/environment/@device_model = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@device_model"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>OS Version</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@os_version">
-                      <xsl:if test="test_definition/environment/@os_version = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@os_version"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Device ID</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@device_id">
-                      <xsl:if test="test_definition/environment/@device_id = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@device_id"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Firmware Version</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@firmware_version">
-                      <xsl:if test="test_definition/environment/@firmware_version = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@firmware_version"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Build ID</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@build_id">
-                      <xsl:if test="test_definition/environment/@build_id = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@build_id"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Screen Size</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@screen_size">
-                      <xsl:if test="test_definition/environment/@screen_size = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@screen_size"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Resolution</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@resolution">
-                      <xsl:if test="test_definition/environment/@resolution = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@resolution"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Host Info</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@host">
-                      <xsl:if test="test_definition/environment/@host = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@host"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>CTS Version</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@cts_version">
-                      <xsl:if test="test_definition/environment/@cts_version = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@cts_version"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Others</td>
-                <td>
-                  <xsl:if test="test_definition/environment/other = ''">
-                    N/A
-                  </xsl:if>
-                  <xsl:call-template name="br-replace">
-                    <xsl:with-param name="word" select="test_definition/environment/other"/>
-                  </xsl:call-template>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="summary">
-            <table>
-              <tr>
-                <th colspan="2">Test Summary</th>
-              </tr>
-              <tr>
-                <td>Test Plan Name</td>
-                <td>
-                  <xsl:value-of select="test_definition/summary/@test_plan_name"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Tests Total</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase)"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Test Passed</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase[@result = 'PASS'])"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Test Failed</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase[@result = 'FAIL'])"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Test Block</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase[@result = 'BLOCK'])"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Test Not Run</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase) - count(test_definition//suite/set/testcase[@result = 'PASS']) - count(test_definition//suite/set/testcase[@result = 'FAIL']) - count(test_definition//suite/set/testcase[@result = 'BLOCK'])"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Start time</td>
-                <td>
-                  <xsl:value-of select="test_definition/summary/start_at"/>
-                </td>
-              </tr>
-              <tr>
-                <td>End time</td>
-                <td>
-                  <xsl:value-of select="test_definition/summary/end_at"/>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="suite_summary">
-            <div id="title">
-              <a name="contents"/>
-              <table>
-                <tr>
-                  <td class="title">
-                    <h1>Test Summary by Suite</h1>
-                  </td>
-                </tr>
-              </table>
-            </div>
-            <table>
-              <tr>
-                <th>Suite</th>
-                <th>Passed</th>
-                <th>Failed</th>
-                <th>Blocked</th>
-                <th>Not Run</th>
-                <th>Total</th>
-              </tr>
-              <xsl:for-each select="test_definition/suite">
-                <xsl:sort select="@name"/>
-                <tr>
-                  <td>
-                    <a>
-                      <xsl:attribute name="href">
-                        #<xsl:value-of select="@name"/>
-                      </xsl:attribute>
-                      <xsl:value-of select="@name"/>
-                    </a>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase[@result = 'PASS'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase[@result = 'FAIL'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase[@result = 'BLOCK'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase) - count(set//testcase[@result = 'PASS']) - count(set//testcase[@result = 'FAIL']) - count(set//testcase[@result = 'BLOCK'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase)"/>
-                  </td>
-                </tr>
-              </xsl:for-each>
-            </table>
-          </div>
-          <div id="fail_cases">
-            <div id="title">
-              <table>
-                <tr>
-                  <td class="title">
-                    <h1 align="center">
-                      Test Failures (
-                        <xsl:value-of select="count(test_definition/suite/set//testcase[@result = 'FAIL'])"/>
-                      )
-                    </h1>
-                  </td>
-                </tr>
-              </table>
-            </div>
-            <xsl:for-each select="test_definition/suite">
-              <xsl:sort select="@name"/>
-              <div id="btc">
-                <a href="#contents">Back to Contents</a>
-              </div>
-              <div id="suite_title">
-                Test Suite:
-                <xsl:value-of select="@name"/>
-                <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
-              </div>
-              <table>
-                <tr>
-                  <th>Case_ID</th>
-                  <th>Purpose</th>
-                  <th>Result</th>
-                  <th>Stdout</th>
-                </tr>
-                <xsl:for-each select=".//set">
-                  <xsl:sort select="@name"/>
-                  <tr>
-                    <td colspan="4">
-                      Test Set:
-                      <xsl:value-of select="@name"/>
-                    </td>
-                  </tr>
-                  <xsl:for-each select=".//testcase">
-                    <xsl:sort select="@id"/>
-                    <xsl:choose>
-                      <xsl:when test="@result">
-                        <xsl:if test="@result = 'FAIL'">
-                          <tr>
-                            <td>
-                              <xsl:value-of select="@id"/>
-                            </td>
-                            <td>
-                              <xsl:value-of select="@purpose"/>
-                            </td>
-                            <td class="red_rate">
-                              <xsl:value-of select="@result"/>
-                            </td>
-                            <td>
-                              <xsl:value-of select=".//result_info/stdout"/>
-                              <xsl:if test=".//result_info/stdout = ''">
-                                N/A
-                              </xsl:if>
-                            </td>
-                          </tr>
-                        </xsl:if>
-                      </xsl:when>
-                    </xsl:choose>
-                  </xsl:for-each>
-                </xsl:for-each>
-              </table>
-            </xsl:for-each>
-          </div>
-          <div id="cases">
-            <div id="title">
-              <table>
-                <tr>
-                  <td class="title">
-                    <h1 align="center">Detailed Test Results</h1>
-                  </td>
-                </tr>
-              </table>
-            </div>
-            <xsl:for-each select="test_definition/suite">
-              <xsl:sort select="@name"/>
-              <div id="btc">
-                <a href="#contents">Back to Contents</a>
-              </div>
-              <div id="suite_title">
-                Test Suite:
-                <xsl:value-of select="@name"/>
-                <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
-              </div>
-              <table>
-                <tr>
-                  <th>Case_ID</th>
-                  <th>Purpose</th>
-                  <th>Result</th>
-                  <th>Stdout</th>
-                </tr>
-                <xsl:for-each select=".//set">
-                  <xsl:sort select="@name"/>
-                  <tr>
-                    <td colspan="4">
-                      Test Set:
-                      <xsl:value-of select="@name"/>
-                    </td>
-                  </tr>
-                  <xsl:for-each select=".//testcase">
-                    <xsl:sort select="@id"/>
-                    <tr>
-                      <td>
-                        <xsl:value-of select="@id"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@purpose"/>
-                      </td>
-                      <xsl:choose>
-                        <xsl:when test="@result">
-                          <xsl:if test="@result = 'FAIL'">
-                            <td class="red_rate">
-                              <xsl:value-of select="@result"/>
-                            </td>
-                          </xsl:if>
-                          <xsl:if test="@result = 'PASS'">
-                            <td class="green_rate">
-                              <xsl:value-of select="@result"/>
-                            </td>
-                          </xsl:if>
-                          <xsl:if test="@result = 'BLOCK' ">
-                            <td>
-                              BLOCK
-                            </td>
-                          </xsl:if>
-                          <xsl:if test="@result != 'BLOCK' and @result != 'FAIL' and @result != 'PASS' ">
-                            <td>
-                              Not Run
-                            </td>
-                          </xsl:if>
-                        </xsl:when>
-                        <xsl:otherwise>
-                          <td>
-                          </td>
-                        </xsl:otherwise>
-                      </xsl:choose>
-                      <td>
-                        <xsl:value-of select=".//result_info/stdout"/>
-                        <xsl:if test=".//result_info/stdout = ''">
-                          N/A
-                        </xsl:if>
-                      </td>
-                    </tr>
-                  </xsl:for-each>
-                </xsl:for-each>
-              </table>
-            </xsl:for-each>
-          </div>
-        </div>
-        <div id="goTopBtn">
-          <img border="0" src="./back_top.png"/>
-        </div>
-        <script type="text/javascript" src="application.js"/>
-        <script language="javascript" type="text/javascript">
-          $(document).ready(function(){
-            goTopEx();
-          });
-        </script>
-      </body>
-    </html>
-  </xsl:template>
-  <xsl:template name="br-replace">
-    <xsl:param name="word"/>
-    <xsl:variable name="cr">
-      <xsl:text>
-      </xsl:text>
-    </xsl:variable>
-    <xsl:choose>
-      <xsl:when test="contains($word,$cr)">
-        <xsl:value-of select="substring-before($word,$cr)"/>
-        <br/>
-        <xsl:call-template name="br-replace">
-          <xsl:with-param name="word" select="substring-after($word,$cr)"/>
-        </xsl:call-template>
-      </xsl:when>
-      <xsl:otherwise>
-        <xsl:value-of select="$word"/>
-      </xsl:otherwise>
-    </xsl:choose>
-  </xsl:template>
-</xsl:stylesheet>
diff --git a/common/tct-messaging-email-tizen-tests/tests.css b/common/tct-messaging-email-tizen-tests/tests.css
deleted file mode 100755 (executable)
index c2ba69b..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-@charset "UTF-8";\r
-/* CSS Document */\r
-#testcasepage div,\r
-#testcasepage h1,\r
-#testcasepage p,\r
-#testcasepage table,\r
-#testcasepage tr,\r
-#testcasepage th,\r
-#testcasepage td {\r
-  margin: 0;\r
-  padding: 0;\r
-  border: 0;\r
-  font-weight: inherit;\r
-  font-style: inherit;\r
-  font-size: 0.96em;\r
-  font-family: arial;\r
-  vertical-align: baseline;\r
-}\r
-\r
-#testcasepage p {\r
-  text-align: left;\r
-}\r
-\r
-#suite_title {\r
-  text-align: left;\r
-}\r
-\r
-#btc {\r
-  text-align: right;\r
-}\r
-\r
-#testcasepage table {\r
-  border-collapse: separate;\r
-  border-spacing: 0;\r
-  margin-bottom: 1.4em;\r
-  vertical-align: middle;\r
-}\r
-\r
-#testcasepage th,\r
-#testcasepage td {\r
-  text-align: left;\r
-  font-weight: normal;\r
-  padding: 4px 10px 4px 5px;\r
-  vertical-align: middle;\r
-}\r
-\r
-#cases table {\r
-  width: 101%;\r
-}\r
-\r
-#fail_cases table {\r
-  width: 101%;\r
-}\r
-\r
-#title table {\r
-  width: 101%;\r
-}\r
-\r
-#device table {\r
-  width: 50%;\r
-}\r
-\r
-#summary table {\r
-  width: 50%;\r
-}\r
-\r
-#testcasepage th {\r
-  border-bottom: 1px solid #000;\r
-  background-color: #AAAAAA;\r
-  border-left: 1px solid #000;\r
-  border-top: 1px solid #000;\r
-  color: #000;\r
-  font-weight: bold;\r
-  vertical-align: bottom;\r
-}\r
-\r
-#testcasepage th:last-child,\r
-#testcasepage td:last-child {\r
-  border-right: 1px solid #000;\r
-}\r
-\r
-#testcasepage td {\r
-  border-left: 1px solid;\r
-  font-weight: normal;\r
-  border-bottom: 1px solid;\r
-}\r
-\r
-#testcasepage td.yellow_rate {\r
-  background-color: #ffcc00;\r
-}\r
-\r
-#testcasepage td.green_rate {\r
-  background-color: #33cc33;\r
-}\r
-\r
-#testcasepage td.dgreen_rate {\r
-  background-color: #339933;\r
-}\r
-\r
-#testcasepage td.red_rate {\r
-  background-color: #FF3333;\r
-}\r
-\r
-#title table,\r
-#title tr,\r
-#title td {\r
-  border-left: none;\r
-  border-bottom: none;\r
-  text-align: center;\r
-}\r
-\r
-#title td:last-child {\r
-  border-right: none;\r
-}\r
-\r
-#testcasepage h1 {\r
-  font-size: 2em;\r
-  font-family: Arial, sans-serif;\r
-  font-weight: bold;\r
-  line-height: 1;\r
-  color: #000;\r
-  margin-bottom: 0.75em;\r
-  padding-top: 0.25em;\r
-  font-weight: bold;\r
-}\r
-\r
-#goTopBtn {\r
-  right: 0px;\r
-  bottom: 0px;\r
-  position: fixed; +position: absolute;\r
-  top: expression(parseInt(document.body.scrollTop) + document.body.clientHeight - 40);\r
-}\r
diff --git a/common/tct-messaging-email-tizen-tests/tests.full.xml b/common/tct-messaging-email-tizen-tests/tests.full.xml
deleted file mode 100755 (executable)
index f318cd6..0000000
+++ /dev/null
@@ -1,7458 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet type="text/xsl" href="./testcase.xsl"?>
-<test_definition>
-  <suite name="tct-messaging-email-tizen-tests" extension="crosswalk" category="Tizen Web Device APIs">
-    <set name="Messaging-EMAIL-1st_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if interface MessageArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method onsuccess of MessageArraySuccessCallback works" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageAttachmentSuccessCallback, onsuccess, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachmentSuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachmentSuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageAttachmentSuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachmentSuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachmentSuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageAttachment's constructor works" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageAttachment's constructor works with minimum arguments" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor_minargs">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor_minargs.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageAttachment exists" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageAttachment_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageAttachment can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachment_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute filePath of MessageAttachment exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_filePath_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_filePath_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="filePath" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute id of MessageAttachment exists, has type MessageAttachmentId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_id_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageId of MessageAttachment exists, has type MessageId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_messageId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_messageId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute mimeType of MessageAttachment exists, has type DOMString and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_mimeType_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_mimeType_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="mimeType" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type (email message)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBodySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageBodySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBodySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBodySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBodySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageBody (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute htmlBody of MessageBody (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_htmlBody_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_htmlBody_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="htmlBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute inlineAttachments of MessageBody (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_inlineAttachments_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_inlineAttachments_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="inlineAttachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute loaded of MessageBody (email) exists, has type Boolean and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_loaded_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_loaded_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="loaded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageId of MessageBody (email) exists, has type MessageId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_messageId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_messageId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute plainBody of MessageBody (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_plainBody_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_plainBody_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="plainBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageBody exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageConversationArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method onsuccess of MessageConversationArraySuccessCallback works" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationArraySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute bcc of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_bcc_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_bcc_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="bcc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute cc of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_cc_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_cc_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="cc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageConversation can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute from of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_from_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_from_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute id of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_id_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute isRead of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_isRead_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_isRead_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute lastMessageId of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_lastMessageId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_lastMessageId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="lastMessageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute messageCount of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_messageCount_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_messageCount_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="messageCount" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageConversation exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute preview of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_preview_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_preview_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="preview" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute subject of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_subject_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_subject_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="subject" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute timestamp of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_timestamp_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_timestamp_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute to of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_to_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_to_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute type of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute unreadMessages of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_unreadMessages_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_unreadMessages_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="unreadMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if conversationsadded callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsremoved">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsremoved.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsupdated">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsupdated.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageConversationsChangeCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationsChangeCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageFolderArraySuccessCallback, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolderArraySuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolderArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageFolderArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolderArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolderArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if the attribute contentType in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_contentType_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_contentType_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="contentType" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute contentType of MessageFolder (email) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_contentType_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_contentType_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="contentType" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageFolder (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute id of MessageFolder (email) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_id_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute name of MessageFolder (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_name_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_name_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="name" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute parentId of MessageFolder (email) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_parentId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_parentId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="parentId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute path of MessageFolder (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_path_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_path_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="path" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute serviceId of MessageFolder (email) exists, has appropriate type and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_serviceId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_serviceId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="serviceId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute synchronizable of MessageFolder (email) exists, has type Boolean" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_synchronizable_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_synchronizable_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="synchronizable" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageFolder (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if the attribute id in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_id_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_id_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageFolder exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if the attribute path in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_path_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_path_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="path" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if the attribute type in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_type_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_type_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if foldersadded callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersadded">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersadded.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFoldersChangeCallback" element_type="method" element_name="foldersadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if foldersremoved callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersremoved">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersremoved.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFoldersChangeCallback" element_type="method" element_name="foldersremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if foldersupdated callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersupdated">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersupdated.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFoldersChangeCallback" element_type="method" element_name="foldersupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageFoldersChangeCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFoldersChangeCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFoldersChangeCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Checks various message attributes upon message (email) creation" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_email">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_email.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check the attribute messaging in MessageManagerObject" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageManagerObject_messaging">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_messaging.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageManagerObject exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageManagerObject_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageManagerObject" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type, check argument recipients type - DOMString[]" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageRecipientsCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_email_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageRecipientsCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageRecipientsCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageRecipientsCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageRecipientsCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageServiceArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageServiceArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageServiceArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check the function onsuccess in MessageServiceArraySuccessCallback" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageService (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute id of MessageService (email) exists, has appropriate type and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_id_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for attachment argument of MessageService.loadMessageAttachment method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when attachment is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageAttachment method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method loadMessageAttachment of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageAttachment_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageAttachment (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageAttachment method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageBody method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method loadMessageBody of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageBody_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if message argument of MessageService::loadMessageBody will throw exception when given invalid type argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check invalid object for message argument of MessageService::loadMessageBody method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_invalid_obj">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg_message">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg_message.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageBody method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method works properly with errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageStorage of MessageService (email) exists, has type MessageStorage and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_messageStorage_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_messageStorage_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="messageStorage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute name of MessageService (email) exists, has appropriate type and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_name_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_name_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="name" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-2nd_mobile">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if MessageService.sendMessage method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method sendMessage of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sendMessage_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_invalid_obj">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method stopSync of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_stopSync_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService::stopSync (for sync) method silently fails without argument" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_stopSync_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method syncFolder of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_syncFolder_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_syncFolder_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method sync of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sync_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sync_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageService (email) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageService exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageService_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly with bcc (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithBcc">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithBcc.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly with highPriority (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithPriority">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithPriority.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_email_without_callbacks">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.stopSync (for sync) method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_sync">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_sync.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.stopSync (for syncFolder) method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_syncFolder">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_syncFolder.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.syncFolder method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for folder argument of MessageService.syncFolder method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_folder_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_folder_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.syncFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.syncFolder method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method throws exception when successCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method works properly with limit" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_limit">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if syncFolder method with successCallback optional argument works" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly without param" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_emailwithoutparam">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_emailwithoutparam.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sync method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly without arguments" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_foremail">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_foremail.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sync method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method throws exception when successCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly with limit argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_limit">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_limit.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly with successCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addConversationsChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing mandatory argument - MessageStorage.addConversationsChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly with filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addConversationsChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_withoutcb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutcb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addConversationsChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-3rd_mobile">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addDraftMessage_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_invalid_obj">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addFoldersChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addFoldersChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for foldersChangeCallback argument of MessageStorage.addFoldersChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addFoldersChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method works properly when update data" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="manual" priority="P1" id="MessageStorage_email_addFoldersChangeListener_updatedata">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_updatedata.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly with filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addMessagesChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageStorage (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check errorCallback argument of findConversations will be throw exception with invalid argument type" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method findConversations of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findConversations_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage::findConversations method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_from">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_from.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when filter is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_to">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_to.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_type">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_type.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage::findConversations (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage::findConversations method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when sort is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findConversations method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with all optional argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_offset">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_offset.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort by time descending (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort_time_desc">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort_time_desc.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method findFolders of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findFolders_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findFolders_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages and MessageStorage.loadMessageBody methods work properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_and_loadMessageBody">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_and_loadMessageBody.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by bcc (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_bcc_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_bcc_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by cc (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_cc_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_cc_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-4th_mobile">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if method findMessages of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findMessages_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when filter is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by folderId (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_folderId_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_folderId_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by from (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_from_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by hasAttachment (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_hasAttachment_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by id (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_id_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_id_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isHighPriority (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isHighPriority_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isRead (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isRead_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isRead_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check without arguments - MessageStorage::findMessages" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by plainBody (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_plainBody_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_plainBody_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by serviceId (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_serviceId_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_serviceId_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when sort is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by timestamp (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_timestamp_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_timestamp_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by to (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_to_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_to_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by type (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_type_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_type_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method works properly with all optional argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_with_offset">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_with_offset.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeConversations of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeConversations_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeConversations_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeMessages of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeMessages_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_updateMessages_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_messages_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_messages_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing message argument -  MessageStorage.updateMessages (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findFolders method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.findFolders method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders works properly for filter by serviceId" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_filter_serviceId">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_serviceId.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.findFolders" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findFolders method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessage_emailFilterWithoutErrorCb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageStorage exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::removeChangeListener method works properly - for conversation listener (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations_email">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations_email.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method(email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder_email">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder_email.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for conversations argument of MessageStorage.removeConversations method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_conversations_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeConversations method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_foremail">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_foremail.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeConversations method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when successCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly with successCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly without errorCallback" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessage_emailwithouterrcb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessage_emailwithouterrcb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly without non-optional arguments (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.removeMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_messages_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_messages_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeMessages (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly with errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly with successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-5th_mobile">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check: Add a draft message and update it, and then remove it" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_addUpdateRemove">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_addUpdateRemove.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if the attribute attachments in Message" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_attachments_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_attachments_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="attachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute attachments of Message (email) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_attachments_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_attachments_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="attachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute bcc of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_bcc_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_bcc_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="bcc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute body of Message (email) exists, has type MessageBody" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_body_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_body_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="body" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute cc of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_cc_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_cc_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="cc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with function (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_function">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_function.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with empty object (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_object">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_object.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with minimum arguments (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_minargs">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_minargs.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute conversationId of Message (email) exists, has type MessageConvId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_conversationId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_conversationId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="conversationId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface Message (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute folderId of Message (email) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_folderId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_folderId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="folderId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute from of Message (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_from_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_from_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute hasAttachment of Message (email) exists, has type Boolean and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_hasAttachment_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_hasAttachment_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="hasAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute id of Message (email) exists, has type MessageId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_id_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute inResponseTo of Message (email) exists, has type MessageId" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_inResponseTo_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_inResponseTo_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="inResponseTo" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute isHighPriority of Message (email) exists, has type Boolean" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isHighPriority_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isHighPriority_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="isHighPriority" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute isRead of Message (email) exists, has type Boolean" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isRead_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isRead_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageStatus of Message (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_messageStatus_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_messageStatus_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="messageStatus" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute subject of Message (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_subject_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_subject_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="subject" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute timestamp of Message (email) exists, has type Date and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_timestamp_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_timestamp_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute to of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_to_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_to_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type of Message (email) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message exists" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute hasAttachment in Message" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_hasAttachment_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_hasAttachment_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="hasAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, no filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, no filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, no filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessagesChangeCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessagesChangeCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if getMessageServices works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of Messaging.getMessageServices method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Messaging.getMessageServices method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of Messaging.getMessageServices method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Messaging.getMessageServices method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if getMessageServices works properly with all arguments (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Messaging is extendable" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method getMessageServices exists" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Messaging_getMessageServices_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messageServiceType argument of Messaging.getMessageServices method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_messageServiceType_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_messageServiceType_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - Messaging.getMessageServices" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface Messaging exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-1st_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if interface MessageArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method onsuccess of MessageArraySuccessCallback works" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageAttachmentSuccessCallback, onsuccess, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachmentSuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachmentSuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageAttachmentSuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachmentSuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachmentSuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageAttachment's constructor works" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageAttachment's constructor works with minimum arguments" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor_minargs">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor_minargs.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageAttachment exists" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageAttachment_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageAttachment can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachment_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute filePath of MessageAttachment exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_filePath_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_filePath_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="filePath" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute id of MessageAttachment exists, has type MessageAttachmentId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_id_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageId of MessageAttachment exists, has type MessageId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_messageId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_messageId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute mimeType of MessageAttachment exists, has type DOMString and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_mimeType_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_mimeType_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="mimeType" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type (email message)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBodySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageBodySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBodySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBodySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBodySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageBody (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute htmlBody of MessageBody (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_htmlBody_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_htmlBody_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="htmlBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute inlineAttachments of MessageBody (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_inlineAttachments_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_inlineAttachments_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="inlineAttachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute loaded of MessageBody (email) exists, has type Boolean and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_loaded_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_loaded_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="loaded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageId of MessageBody (email) exists, has type MessageId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_messageId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_messageId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute plainBody of MessageBody (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_plainBody_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_plainBody_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="plainBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageBody exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageConversationArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method onsuccess of MessageConversationArraySuccessCallback works" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationArraySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute bcc of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_bcc_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_bcc_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="bcc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute cc of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_cc_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_cc_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="cc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageConversation can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute from of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_from_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_from_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute id of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_id_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute isRead of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_isRead_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_isRead_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute lastMessageId of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_lastMessageId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_lastMessageId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="lastMessageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute messageCount of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_messageCount_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_messageCount_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="messageCount" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageConversation exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute preview of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_preview_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_preview_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="preview" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute subject of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_subject_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_subject_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="subject" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute timestamp of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_timestamp_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_timestamp_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute to of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_to_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_to_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute type of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check attribute unreadMessages of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_unreadMessages_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_unreadMessages_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="unreadMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if conversationsadded callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsremoved">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsremoved.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsupdated">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsupdated.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageConversationsChangeCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationsChangeCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageFolderArraySuccessCallback, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolderArraySuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolderArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageFolderArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolderArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolderArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if the attribute contentType in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_contentType_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_contentType_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="contentType" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute contentType of MessageFolder (email) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_contentType_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_contentType_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="contentType" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageFolder (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute id of MessageFolder (email) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_id_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute name of MessageFolder (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_name_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_name_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="name" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute parentId of MessageFolder (email) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_parentId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_parentId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="parentId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute path of MessageFolder (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_path_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_path_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="path" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute serviceId of MessageFolder (email) exists, has appropriate type and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_serviceId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_serviceId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="serviceId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute synchronizable of MessageFolder (email) exists, has type Boolean" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_synchronizable_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_synchronizable_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="synchronizable" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageFolder (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if the attribute id in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_id_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_id_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageFolder exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if the attribute path in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_path_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_path_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="path" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if the attribute type in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_type_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_type_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if foldersadded callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersadded">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersadded.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFoldersChangeCallback" element_type="method" element_name="foldersadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if foldersremoved callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersremoved">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersremoved.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFoldersChangeCallback" element_type="method" element_name="foldersremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if foldersupdated callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersupdated">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersupdated.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFoldersChangeCallback" element_type="method" element_name="foldersupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageFoldersChangeCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFoldersChangeCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFoldersChangeCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Checks various message attributes upon message (email) creation" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_email">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_email.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check the attribute messaging in MessageManagerObject" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageManagerObject_messaging">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_messaging.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageManagerObject exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageManagerObject_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageManagerObject" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type, check argument recipients type - DOMString[]" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageRecipientsCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_email_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageRecipientsCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageRecipientsCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageRecipientsCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageRecipientsCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageServiceArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageServiceArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageServiceArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check the function onsuccess in MessageServiceArraySuccessCallback" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageService (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute id of MessageService (email) exists, has appropriate type and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_id_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for attachment argument of MessageService.loadMessageAttachment method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when attachment is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageAttachment method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method loadMessageAttachment of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageAttachment_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageAttachment (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageAttachment method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageBody method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method loadMessageBody of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageBody_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if message argument of MessageService::loadMessageBody will throw exception when given invalid type argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check invalid object for message argument of MessageService::loadMessageBody method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_invalid_obj">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg_message">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg_message.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageBody method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method works properly with errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageStorage of MessageService (email) exists, has type MessageStorage and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_messageStorage_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_messageStorage_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="messageStorage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute name of MessageService (email) exists, has appropriate type and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_name_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_name_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="name" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-2nd_iot">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if MessageService.sendMessage method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method sendMessage of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sendMessage_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_invalid_obj">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method stopSync of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_stopSync_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService::stopSync (for sync) method silently fails without argument" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_stopSync_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method syncFolder of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_syncFolder_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_syncFolder_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method sync of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sync_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sync_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageService (email) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageService exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageService_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly with bcc (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithBcc">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithBcc.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly with highPriority (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithPriority">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithPriority.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_email_without_callbacks">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.stopSync (for sync) method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_sync">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_sync.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.stopSync (for syncFolder) method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_syncFolder">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_syncFolder.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.syncFolder method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for folder argument of MessageService.syncFolder method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_folder_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_folder_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.syncFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.syncFolder method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method throws exception when successCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method works properly with limit" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_limit">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if syncFolder method with successCallback optional argument works" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly without param" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_emailwithoutparam">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_emailwithoutparam.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sync method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly without arguments" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_foremail">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_foremail.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sync method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method throws exception when successCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly with limit argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_limit">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_limit.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly with successCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addConversationsChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing mandatory argument - MessageStorage.addConversationsChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly with filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addConversationsChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_withoutcb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutcb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addConversationsChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-3rd_iot">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addDraftMessage_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_invalid_obj">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addFoldersChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addFoldersChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for foldersChangeCallback argument of MessageStorage.addFoldersChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addFoldersChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method works properly when update data" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="manual" priority="P1" id="MessageStorage_email_addFoldersChangeListener_updatedata">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_updatedata.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly with filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addMessagesChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageStorage (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check errorCallback argument of findConversations will be throw exception with invalid argument type" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method findConversations of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findConversations_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage::findConversations method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_from">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_from.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when filter is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_to">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_to.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_type">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_type.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage::findConversations (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage::findConversations method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when sort is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findConversations method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with all optional argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_offset">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_offset.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort by time descending (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort_time_desc">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort_time_desc.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method findFolders of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findFolders_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findFolders_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages and MessageStorage.loadMessageBody methods work properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_and_loadMessageBody">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_and_loadMessageBody.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by bcc (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_bcc_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_bcc_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by cc (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_cc_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_cc_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-4th_iot">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if method findMessages of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findMessages_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when filter is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by folderId (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_folderId_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_folderId_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by from (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_from_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by hasAttachment (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_hasAttachment_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by id (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_id_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_id_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isHighPriority (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isHighPriority_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isRead (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isRead_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isRead_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check without arguments - MessageStorage::findMessages" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by plainBody (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_plainBody_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_plainBody_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by serviceId (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_serviceId_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_serviceId_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when sort is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by timestamp (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_timestamp_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_timestamp_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by to (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_to_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_to_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by type (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_type_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_type_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method works properly with all optional argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_with_offset">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_with_offset.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeConversations of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeConversations_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeConversations_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeMessages of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeMessages_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_updateMessages_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_messages_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_messages_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing message argument -  MessageStorage.updateMessages (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findFolders method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.findFolders method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders works properly for filter by serviceId" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_filter_serviceId">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_serviceId.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.findFolders" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findFolders method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessage_emailFilterWithoutErrorCb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessageStorage exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::removeChangeListener method works properly - for conversation listener (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations_email">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations_email.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method(email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder_email">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder_email.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for conversations argument of MessageStorage.removeConversations method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_conversations_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeConversations method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_foremail">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_foremail.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeConversations method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when successCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly with successCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly without errorCallback" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessage_emailwithouterrcb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessage_emailwithouterrcb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly without non-optional arguments (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.removeMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_messages_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_messages_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeMessages (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly with errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly with successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-5th_iot">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check: Add a draft message and update it, and then remove it" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_addUpdateRemove">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_addUpdateRemove.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if the attribute attachments in Message" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_attachments_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_attachments_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="attachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute attachments of Message (email) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_attachments_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_attachments_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="attachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute bcc of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_bcc_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_bcc_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="bcc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute body of Message (email) exists, has type MessageBody" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_body_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_body_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="body" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute cc of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_cc_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_cc_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="cc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with function (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_function">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_function.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with empty object (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_object">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_object.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with minimum arguments (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_minargs">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_minargs.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute conversationId of Message (email) exists, has type MessageConvId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_conversationId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_conversationId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="conversationId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface Message (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute folderId of Message (email) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_folderId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_folderId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="folderId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute from of Message (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_from_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_from_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute hasAttachment of Message (email) exists, has type Boolean and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_hasAttachment_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_hasAttachment_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="hasAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute id of Message (email) exists, has type MessageId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_id_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute inResponseTo of Message (email) exists, has type MessageId" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_inResponseTo_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_inResponseTo_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="inResponseTo" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute isHighPriority of Message (email) exists, has type Boolean" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isHighPriority_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isHighPriority_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="isHighPriority" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute isRead of Message (email) exists, has type Boolean" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isRead_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isRead_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageStatus of Message (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_messageStatus_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_messageStatus_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="messageStatus" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute subject of Message (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_subject_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_subject_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="subject" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute timestamp of Message (email) exists, has type Date and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_timestamp_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_timestamp_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute to of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_to_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_to_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type of Message (email) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message exists" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute hasAttachment in Message" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_hasAttachment_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_hasAttachment_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="hasAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, no filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, no filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, no filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface MessagesChangeCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessagesChangeCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if getMessageServices works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of Messaging.getMessageServices method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Messaging.getMessageServices method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of Messaging.getMessageServices method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Messaging.getMessageServices method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if getMessageServices works properly with all arguments (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Messaging is extendable" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method getMessageServices exists" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Messaging_getMessageServices_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messageServiceType argument of Messaging.getMessageServices method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_messageServiceType_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_messageServiceType_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - Messaging.getMessageServices" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if interface Messaging exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_notexist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-  </suite>
-</test_definition>
diff --git a/common/tct-messaging-email-tizen-tests/tests.xml b/common/tct-messaging-email-tizen-tests/tests.xml
deleted file mode 100755 (executable)
index b9be466..0000000
+++ /dev/null
@@ -1,3151 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet type="text/xsl" href="./testcase.xsl"?>
-<test_definition>
-  <suite name="tct-messaging-email-tizen-tests" extension="crosswalk" category="Tizen Web Device APIs">
-    <set name="Messaging-EMAIL-1st_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if interface MessageArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method onsuccess of MessageArraySuccessCallback works" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageAttachmentSuccessCallback, onsuccess, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachmentSuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageAttachmentSuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachmentSuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageAttachment's constructor works" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageAttachment's constructor works with minimum arguments" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor_minargs">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor_minargs.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageAttachment exists" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageAttachment_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageAttachment can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachment_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute filePath of MessageAttachment exists, has type DOMString and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_filePath_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_filePath_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute id of MessageAttachment exists, has type MessageAttachmentId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_id_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageId of MessageAttachment exists, has type MessageId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_messageId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_messageId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute mimeType of MessageAttachment exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_mimeType_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_mimeType_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type (email message)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageBodySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBodySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_email_extend">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_htmlBody_attribute">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_inlineAttachments_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_loaded_attribute">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_messageId_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_plainBody_attribute">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageConversationArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method onsuccess of MessageConversationArraySuccessCallback works" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationArraySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute bcc of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_bcc_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_bcc_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute cc of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_cc_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_cc_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageConversation can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute from of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_from_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_from_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute id of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_id_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute isRead of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_isRead_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_isRead_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute lastMessageId of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_lastMessageId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_lastMessageId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute messageCount of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_messageCount_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_messageCount_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageConversation exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute preview of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_preview_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_preview_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute subject of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_subject_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_subject_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute timestamp of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_timestamp_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_timestamp_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute to of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_to_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_to_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute type of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute unreadMessages of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_unreadMessages_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_unreadMessages_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if conversationsadded callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsremoved">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsremoved.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsupdated">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsupdated.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageConversationsChangeCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationsChangeCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageFolderArraySuccessCallback, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolderArraySuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageFolderArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolderArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if the attribute contentType in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_contentType_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_contentType_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute contentType of MessageFolder (email) exists, has type MessageServiceTag and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_contentType_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_contentType_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageFolder (email) can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute id of MessageFolder (email) exists, has type MessageFolderId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_id_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute name of MessageFolder (email) exists, has type DOMString" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_name_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_name_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute parentId of MessageFolder (email) exists, has type MessageFolderId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_parentId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_parentId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute path of MessageFolder (email) exists, has type DOMString and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_path_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_path_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute serviceId of MessageFolder (email) exists, has appropriate type and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_serviceId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_serviceId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute synchronizable of MessageFolder (email) exists, has type Boolean" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_synchronizable_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_synchronizable_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageFolder (email) exists, has type DOMString and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if the attribute id in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_id_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_id_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageFolder exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if the attribute path in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_path_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_path_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if the attribute type in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_type_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_type_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if foldersadded callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersadded">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersadded.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if foldersremoved callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersremoved">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersremoved.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if foldersupdated callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersupdated">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersupdated.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageFoldersChangeCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFoldersChangeCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Checks various message attributes upon message (email) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_email">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_email.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check the attribute messaging in MessageManagerObject" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageManagerObject_messaging">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_messaging.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageManagerObject exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageManagerObject_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type, check argument recipients type - DOMString[]" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageRecipientsCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_email_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageRecipientsCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageRecipientsCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageServiceArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageServiceArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check the function onsuccess in MessageServiceArraySuccessCallback" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageService (email) can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute id of MessageService (email) exists, has appropriate type and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_id_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for attachment argument of MessageService.loadMessageAttachment method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when attachment is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageAttachment method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method loadMessageAttachment of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageAttachment_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageAttachment (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageAttachment method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageBody method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method loadMessageBody of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageBody_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if message argument of MessageService::loadMessageBody will throw exception when given invalid type argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check invalid object for message argument of MessageService::loadMessageBody method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_invalid_obj">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg_message">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg_message.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageBody method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method works properly with errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageStorage of MessageService (email) exists, has type MessageStorage and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_messageStorage_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_messageStorage_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute name of MessageService (email) exists, has appropriate type and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_name_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_name_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-2nd_mobile">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if MessageService.sendMessage method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method sendMessage of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sendMessage_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_invalid_obj">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method stopSync of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_stopSync_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService::stopSync (for sync) method silently fails without argument" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_stopSync_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-     <!-- <testcase purpose="Check if MessageService::stopSync (for sync) method should silently fail with invalid argument types" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_stopSync_opId_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_opId_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase> -->
-      <testcase purpose="Check if method syncFolder of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_syncFolder_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_syncFolder_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method sync of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sync_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sync_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageService (email) exists, has type MessageServiceTag and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageService exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageService_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly with bcc (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithBcc">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithBcc.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly with highPriority (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithPriority">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithPriority.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_email_without_callbacks">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.stopSync (for sync) method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_sync">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_sync.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.stopSync (for syncFolder) method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_syncFolder">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_syncFolder.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.syncFolder method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for folder argument of MessageService.syncFolder method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_folder_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_folder_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.syncFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.syncFolder method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method throws exception when successCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method works properly with limit" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_limit">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if syncFolder method with successCallback optional argument works" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly without param" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_emailwithoutparam">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_emailwithoutparam.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sync method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly without arguments" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_foremail">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_foremail.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sync method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method throws exception when successCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly with limit argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_limit">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_limit.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly with successCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addConversationsChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing mandatory argument - MessageStorage.addConversationsChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly with filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addConversationsChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_withoutcb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutcb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addConversationsChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-3rd_mobile">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addDraftMessage_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_invalid_obj">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addFoldersChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addFoldersChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for foldersChangeCallback argument of MessageStorage.addFoldersChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addFoldersChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method works properly when update data" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="manual" priority="P1" id="MessageStorage_email_addFoldersChangeListener_updatedata">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_updatedata.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly with filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addMessagesChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageStorage (email) can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check errorCallback argument of findConversations will be throw exception with invalid argument type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when errorCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method findConversations of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findConversations_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage::findConversations method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_from">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_from.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when filter is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_to">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_to.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_type">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_type.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage::findConversations (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage::findConversations method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when sort is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findConversations method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when successCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with all optional argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_offset">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_offset.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort by time descending (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort_time_desc">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort_time_desc.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method findFolders of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findFolders_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findFolders_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages and MessageStorage.loadMessageBody methods work properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_and_loadMessageBody">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_and_loadMessageBody.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by bcc (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_bcc_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_bcc_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by cc (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_cc_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_cc_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when errorCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-4th_mobile">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if method findMessages of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findMessages_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when filter is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by folderId (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_folderId_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_folderId_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by from (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_from_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by hasAttachment (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_hasAttachment_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by id (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_id_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_id_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isHighPriority (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isHighPriority_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isRead (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isRead_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isRead_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check without arguments - MessageStorage::findMessages" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by plainBody (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_plainBody_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_plainBody_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by serviceId (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_serviceId_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_serviceId_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when sort is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when successCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by timestamp (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_timestamp_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_timestamp_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by to (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_to_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_to_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by type (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_type_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_type_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method works properly with all optional argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_with_offset">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_with_offset.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeConversations of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeConversations_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeConversations_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeMessages of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeMessages_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_updateMessages_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_messages_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_messages_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing message argument -  MessageStorage.updateMessages (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findFolders method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.findFolders method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders works properly for filter by serviceId" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_filter_serviceId">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_serviceId.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.findFolders" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findFolders method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessage_emailFilterWithoutErrorCb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageStorage exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::removeChangeListener method works properly - for conversation listener (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations_email">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations_email.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method(email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder_email">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder_email.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for conversations argument of MessageStorage.removeConversations method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_conversations_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeConversations method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_foremail">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_foremail.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeConversations method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when successCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly with successCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly without errorCallback" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessage_emailwithouterrcb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessage_emailwithouterrcb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly without non-optional arguments (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.removeMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_messages_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_messages_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeMessages (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly with errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly with successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-5th_mobile">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check: Add a draft message and update it, and then remove it" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_addUpdateRemove">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_addUpdateRemove.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if the attribute attachments in Message" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_attachments_exist">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_attachments_attribute">
-        <description>
-          <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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_bcc_attribute">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_body_attribute">
-        <description>
-          <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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_cc_attribute">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with function (email)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_function">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_function.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with empty object (email)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_object">
-        <description>
-          <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)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_minargs">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_conversationId_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute folderId of Message (email) exists, has type MessageFolderId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_folderId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_folderId_attribute.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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_from_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_hasAttachment_attribute">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_inResponseTo_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isHighPriority_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isRead_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_messageStatus_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_subject_attribute">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_timestamp_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_to_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message exists" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute hasAttachment in Message" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_hasAttachment_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_hasAttachment_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, no filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, no filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, no filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessagesChangeCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessagesChangeCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if getMessageServices works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of Messaging.getMessageServices method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Messaging.getMessageServices method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of Messaging.getMessageServices method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Messaging.getMessageServices method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if getMessageServices works properly with all arguments (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Messaging is extendable" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method getMessageServices exists" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Messaging_getMessageServices_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messageServiceType argument of Messaging.getMessageServices method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_messageServiceType_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_messageServiceType_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - Messaging.getMessageServices" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface Messaging exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-1st_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if interface MessageArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method onsuccess of MessageArraySuccessCallback works" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageAttachmentSuccessCallback, onsuccess, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachmentSuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageAttachmentSuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachmentSuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageAttachment's constructor works" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageAttachment's constructor works with minimum arguments" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor_minargs">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor_minargs.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageAttachment exists" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageAttachment_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageAttachment can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachment_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute filePath of MessageAttachment exists, has type DOMString and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_filePath_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_filePath_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute id of MessageAttachment exists, has type MessageAttachmentId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_id_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageId of MessageAttachment exists, has type MessageId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_messageId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_messageId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute mimeType of MessageAttachment exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_mimeType_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_mimeType_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type (email message)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageBodySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBodySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_email_extend">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_htmlBody_attribute">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_inlineAttachments_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_loaded_attribute">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_messageId_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_plainBody_attribute">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageConversationArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method onsuccess of MessageConversationArraySuccessCallback works" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationArraySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute bcc of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_bcc_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_bcc_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute cc of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_cc_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_cc_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageConversation can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute from of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_from_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_from_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute id of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_id_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute isRead of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_isRead_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_isRead_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute lastMessageId of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_lastMessageId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_lastMessageId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute messageCount of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_messageCount_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_messageCount_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageConversation exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute preview of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_preview_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_preview_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute subject of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_subject_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_subject_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute timestamp of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_timestamp_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_timestamp_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute to of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_to_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_to_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute type of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check attribute unreadMessages of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_unreadMessages_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_unreadMessages_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if conversationsadded callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsremoved">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsremoved.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsupdated">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsupdated.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageConversationsChangeCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationsChangeCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageFolderArraySuccessCallback, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolderArraySuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageFolderArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolderArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if the attribute contentType in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_contentType_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_contentType_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute contentType of MessageFolder (email) exists, has type MessageServiceTag and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_contentType_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_contentType_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageFolder (email) can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute id of MessageFolder (email) exists, has type MessageFolderId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_id_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute name of MessageFolder (email) exists, has type DOMString" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_name_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_name_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute parentId of MessageFolder (email) exists, has type MessageFolderId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_parentId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_parentId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute path of MessageFolder (email) exists, has type DOMString and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_path_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_path_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute serviceId of MessageFolder (email) exists, has appropriate type and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_serviceId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_serviceId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute synchronizable of MessageFolder (email) exists, has type Boolean" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_synchronizable_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_synchronizable_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageFolder (email) exists, has type DOMString and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if the attribute id in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_id_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_id_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageFolder exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if the attribute path in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_path_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_path_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if the attribute type in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_type_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_type_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if foldersadded callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersadded">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersadded.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if foldersremoved callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersremoved">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersremoved.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if foldersupdated callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersupdated">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersupdated.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageFoldersChangeCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFoldersChangeCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Checks various message attributes upon message (email) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_email">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_email.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check the attribute messaging in MessageManagerObject" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageManagerObject_messaging">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_messaging.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageManagerObject exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageManagerObject_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type, check argument recipients type - DOMString[]" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageRecipientsCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_email_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageRecipientsCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageRecipientsCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_email_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_email_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageServiceArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageServiceArraySuccessCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check the function onsuccess in MessageServiceArraySuccessCallback" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_onsuccess">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageService (email) can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute id of MessageService (email) exists, has appropriate type and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_id_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for attachment argument of MessageService.loadMessageAttachment method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when attachment is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageAttachment method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method loadMessageAttachment of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageAttachment_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageAttachment (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageAttachment method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageBody method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method loadMessageBody of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageBody_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if message argument of MessageService::loadMessageBody will throw exception when given invalid type argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check invalid object for message argument of MessageService::loadMessageBody method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_invalid_obj">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg_message">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg_message.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageBody method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method works properly with errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageStorage of MessageService (email) exists, has type MessageStorage and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_messageStorage_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_messageStorage_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute name of MessageService (email) exists, has appropriate type and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_name_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_name_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-2nd_iot">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if MessageService.sendMessage method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method sendMessage of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sendMessage_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_invalid_obj">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method stopSync of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_stopSync_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService::stopSync (for sync) method silently fails without argument" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_stopSync_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method syncFolder of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_syncFolder_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_syncFolder_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method sync of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sync_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sync_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageService (email) exists, has type MessageServiceTag and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageService exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageService_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly with bcc (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithBcc">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithBcc.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly with highPriority (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithPriority">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithPriority.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_email_without_callbacks">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.stopSync (for sync) method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_sync">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_sync.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.stopSync (for syncFolder) method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_syncFolder">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_syncFolder.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.syncFolder method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for folder argument of MessageService.syncFolder method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_folder_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_folder_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.syncFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.syncFolder method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method throws exception when successCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.syncFolder method works properly with limit" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_limit">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if syncFolder method with successCallback optional argument works" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly without param" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_emailwithoutparam">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_emailwithoutparam.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sync method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly without arguments" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_foremail">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_foremail.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sync method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method throws exception when successCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly with limit argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_limit">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_limit.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sync method works properly with successCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addConversationsChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing mandatory argument - MessageStorage.addConversationsChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly with filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addConversationsChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_withoutcb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutcb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addConversationsChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-3rd_iot">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addDraftMessage_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_invalid_obj">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addFoldersChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addFoldersChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for foldersChangeCallback argument of MessageStorage.addFoldersChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addFoldersChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method works properly when update data" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="manual" priority="P1" id="MessageStorage_email_addFoldersChangeListener_updatedata">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_updatedata.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly with filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addMessagesChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageStorage (email) can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check errorCallback argument of findConversations will be throw exception with invalid argument type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when errorCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method findConversations of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findConversations_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage::findConversations method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_from">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_from.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when filter is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_to">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_to.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_type">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_type.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage::findConversations (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage::findConversations method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when sort is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findConversations method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method throws exception when successCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with all optional argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_offset">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_offset.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort by time descending (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort_time_desc">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort_time_desc.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method findFolders of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findFolders_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findFolders_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages and MessageStorage.loadMessageBody methods work properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_and_loadMessageBody">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_and_loadMessageBody.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by bcc (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_bcc_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_bcc_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by cc (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_cc_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_cc_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when errorCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-4th_iot">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check if method findMessages of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findMessages_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when filter is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by folderId (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_folderId_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_folderId_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by from (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_from_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by hasAttachment (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_hasAttachment_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by id (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_id_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_id_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isHighPriority (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isHighPriority_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isRead (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isRead_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isRead_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check without arguments - MessageStorage::findMessages" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by plainBody (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_plainBody_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_plainBody_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by serviceId (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_serviceId_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_serviceId_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when sort is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method throws exception when successCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by timestamp (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_timestamp_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_timestamp_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by to (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_to_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_to_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by type (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_type_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_type_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findMessages method works properly with all optional argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_with_offset">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_with_offset.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeChangeListener_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeConversations of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeConversations_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeConversations_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeMessages of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeMessages_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_updateMessages_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_messages_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_messages_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing message argument -  MessageStorage.updateMessages (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findFolders method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.findFolders method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_filter_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders works properly for filter by serviceId" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_filter_serviceId">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_serviceId.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.findFolders" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findFolders method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findFolders method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessage_emailFilterWithoutErrorCb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessageStorage exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::removeChangeListener method works properly - for conversation listener (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations_email">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations_email.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method(email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder_email">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder_email.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for conversations argument of MessageStorage.removeConversations method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_conversations_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeConversations method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_foremail">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_foremail.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeConversations method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when successCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly with successCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly without errorCallback" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessage_emailwithouterrcb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessage_emailwithouterrcb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly without non-optional arguments (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.removeMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_messages_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_messages_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeMessages (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_missarg">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly with errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeMessages method works properly with successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_successCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-EMAIL-5th_iot">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/email"/>
-      </capabilities>
-      <testcase purpose="Check: Add a draft message and update it, and then remove it" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_addUpdateRemove">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_addUpdateRemove.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if the attribute attachments in Message" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_attachments_exist">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_attachments_attribute">
-        <description>
-          <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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_bcc_attribute">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_body_attribute">
-        <description>
-          <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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_cc_attribute">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with function (email)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_function">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_function.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with empty object (email)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_object">
-        <description>
-          <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)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_minargs">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_conversationId_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_email_extend">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute folderId of Message (email) exists, has type MessageFolderId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_folderId_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_folderId_attribute.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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_from_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_hasAttachment_attribute">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_id_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_inResponseTo_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isHighPriority_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isRead_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_messageStatus_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_subject_attribute">
-        <description>
-          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_timestamp_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_to_attribute">
-        <description>
-          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_type_attribute">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message exists" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute hasAttachment in Message" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_hasAttachment_exist">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_hasAttachment_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, no filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, no filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_with_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, no filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_without_filter">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface MessagesChangeCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessagesChangeCallback_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if getMessageServices works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of Messaging.getMessageServices method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Messaging.getMessageServices method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of Messaging.getMessageServices method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Messaging.getMessageServices method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if getMessageServices works properly with all arguments (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices_with_errorCallback">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Messaging is extendable" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method getMessageServices exists" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Messaging_getMessageServices_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messageServiceType argument of Messaging.getMessageServices method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_messageServiceType_TypeMismatch">
-        <description>
-          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_messageServiceType_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - Messaging.getMessageServices" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if interface Messaging exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_notexist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_notexist.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-  </suite>
-</test_definition>
diff --git a/common/tct-messaging-email-tizen-tests/webapi-tizen-messaging-test_image.jpg b/common/tct-messaging-email-tizen-tests/webapi-tizen-messaging-test_image.jpg
deleted file mode 100755 (executable)
index 7a57964..0000000
Binary files a/common/tct-messaging-email-tizen-tests/webapi-tizen-messaging-test_image.jpg and /dev/null differ
diff --git a/common/tct-messaging-email-tizen-tests/webapi-tizen-messaging-test_noise.mp3 b/common/tct-messaging-email-tizen-tests/webapi-tizen-messaging-test_noise.mp3
deleted file mode 100755 (executable)
index d4d1659..0000000
Binary files a/common/tct-messaging-email-tizen-tests/webapi-tizen-messaging-test_noise.mp3 and /dev/null differ
diff --git a/common/tct-messaging-email-tizen-tests/webrunner/index.html b/common/tct-messaging-email-tizen-tests/webrunner/index.html
deleted file mode 100755 (executable)
index 69cc2d6..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-<!doctype html>
-<!--
-Copyright (c) 2013 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Wang, Jing <jing.j.wang@intel.com>
-
--->
-
-<head>
-<meta name="viewport" content="width=device-width">
-<script src="jquery-1.10.2.min.js"></script>
-<style type="text/css">
-html {
-  font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;
-}
-
-body {
-  background-color: white;
-}
-
-table#browse {
-  border-collapse:collapse;
-  table-layout:fixed;width:85%;
-}
-
-table#browse th:first-child,table#browse td:first-child {width:35%;}
-
-table#browse th:last-child,table#browse td:last-child {width:25%;}
-
-table#browse th {
-  padding:0;
-  padding-bottom:0.5em;
-  text-align:left;
-  border-bottom:medium solid black;
-}
-table#browse td {
-  padding:1em;
-  padding-bottom:0.5em;
-  border-bottom:thin solid black;
-}
-div#navbar{
-  box-sizing: border-box;
-  width: 99%;
-  border: 0px;
-  text-align: left;
-  background: slateblue;
-  color: white;
-}
-div#footbar{
-  width: 99%;
-  border: 0px;
-  text-align: left;
-}
-textarea#testinfo{
-  width: 99%;
-  font-size: 0.8em;
-}
-input{
-  font-size: 1.2em;
-  padding-top: 0.1em;
-  padding-bottom: 0.1em;
-}
-
-#btnPrev,#btnNext{
-  width: 8%;
-}
-#btnExit,#btnRun,#btnSave,#btnBack,#btnPass,#btnFail,#btnBlock{
-  width: 16%;
-  font-weight: bold;
-}
-
-#btnPass { color: green;}
-#btnFail { color: red;}
-#btnBlock { color: orange;}
-#labBatch{ font-size: 0.5em;}
-#textTest { width: 53%; }
-#title { font-size: 1.4em; font-weight: bold;}
-#frmTest { border: none;}
-.listhide { display: none;}
-.short{
-  padding-left: 1em;
-}
-</style>
-</head>
-
-<body>
-<div id="navbar" class="batchhide">
-  <span class="short listhide suitehide"><input type="button" id="btnBack" value="Back"/></span>
-  <span class="short listhide suitehide">
-    <input type="button" id="btnPrev" value="<"/>
-    <input type="text"  id="textTest" readonly />
-    <input type="button" id="btnNext" value=">"/>
-  </span>
-  <span class="short tchide"> <input type="button" id="btnExit" value="Exit"/></span>
-  <span id="title" class="short tchide">Open Web Test</span>
-</div>
-<div id="divSum"> </div>
-<div width="99%" class="batchhide">
-  <textarea class="listhide suitehide" id="testinfo" rows=4 disabled>
-  </textarea>
-</div>
-<div id="footbar" class="batchhide">
-  <span class="short"><input type="button"  id="btnRun" value="Run"/></span>
-  <span class="short listhide tchide"><input type="button" id="btnSave" value="Save"/></span>
-  <span class="short listhide suitehide"><input type="button" id="btnPass" value="PASS"/></span>
-  <span class="short listhide suitehide"><input type="button" id="btnFail" value="FAIL"/></span>
-  <span class="short listhide suitehide"><input type="button" id="btnBlock" value="BLOCK"/></span>
-</div>
-<iframe width="100%" id="frmTest" allowFullScreen="true" mozAllowFullScreen="true" webkitAllowFullscreen="true" src="">
-</iframe>
-<script src="testrunner.js"> </script>
-</body>
-</html>
diff --git a/common/tct-messaging-email-tizen-tests/webrunner/jquery-1.10.2.min.js b/common/tct-messaging-email-tizen-tests/webrunner/jquery-1.10.2.min.js
deleted file mode 100755 (executable)
index da41706..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
-//@ sourceMappingURL=jquery-1.10.2.min.map
-*/
-(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav></:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t
-}({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Ct=/^(?:checkbox|radio)$/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle);
-u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=un(e,t),Pt.detach()),Gt[e]=n),n}function un(e,t){var n=x(t.createElement(e)).appendTo(t.body),r=x.css(n[0],"display");return n.remove(),r}x.each(["height","width"],function(e,n){x.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(x.css(e,"display"))?x.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,i),i):0)}}}),x.support.opacity||(x.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=x.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===x.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),x(function(){x.support.reliableMarginRight||(x.cssHooks.marginRight={get:function(e,n){return n?x.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!x.support.pixelPosition&&x.fn.position&&x.each(["top","left"],function(e,n){x.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?x(e).position()[n]+"px":r):t}}})}),x.expr&&x.expr.filters&&(x.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!x.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||x.css(e,"display"))},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(x.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Ct.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),x.param=function(e,n){var r,i=[],o=function(e,t){t=x.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(x.isArray(t))x.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==x.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var mn,yn,vn=x.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Cn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=x.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=o.href}catch(Ln){yn=a.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(T)||[];if(x.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(l){var u;return o[l]=!0,x.each(e[l]||[],function(e,l){var c=l(n,r,i);return"string"!=typeof c||a||o[c]?a?!(u=c):t:(n.dataTypes.unshift(c),s(c),!1)}),u}return s(n.dataTypes[0])||!o["*"]&&s("*")}function _n(e,n){var r,i,o=x.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&x.extend(!0,e,r),e}x.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,l=e.indexOf(" ");return l>=0&&(i=e.slice(l,e.length),e=e.slice(0,l)),x.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&x.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Cn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,x.ajaxSettings),t):_n(x.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,l,u,c,p=x.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?x(f):x.event,h=x.Deferred(),g=x.Callbacks("once memory"),m=p.statusCode||{},y={},v={},b=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(T)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),qn(An,p,n,C),2===b)return C;l=p.global,l&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)C.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,C,p)===!1||2===b))return C.abort();w="abort";for(i in{success:1,error:1,complete:1})C[i](p[i]);if(u=qn(jn,p,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},p.timeout));try{b=1,u.send(y,k)}catch(N){if(!(2>b))throw N;k(-1,N)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,N=n;2!==b&&(b=2,s&&clearTimeout(s),u=t,a=i||"",C.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=Mn(p,C,r)),w=On(p,w,C,c),c?(p.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(x.lastModified[o]=T),T=C.getResponseHeader("etag"),T&&(x.etag[o]=T)),204===e||"HEAD"===p.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,v=w.error,c=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(f,[y,N,C]):h.rejectWith(f,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,p,c?y:v]),g.fireWith(f,[C,N]),l&&(d.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,o){return x.isFunction(r)&&(o=o||i,i=r,r=t),x.ajax({url:e,type:n,dataType:o,data:r,success:i})}});function Mn(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in l)if(l[s]&&l[s].test(o)){u.unshift(s);break}if(u[0]in r)a=u[0];else{for(s in r){if(!u[0]||e.converters[s+" "+u[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==u[0]&&u.unshift(a),r[a]):t}function On(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=a.head||x("head")[0]||a.documentElement;return{send:function(t,i){n=a.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Fn=[],Bn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fn.pop()||x.expando+"_"+vn++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,l=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Fn.push(o)),s&&x.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=x.ajaxSettings.xhr(),x.support.cors=!!Rn&&"withCredentials"in Rn,Rn=x.support.ajax=!!Rn,Rn&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,p;try{if(r&&(i||4===l.readyState))if(r=t,a&&(l.onreadystatechange=x.noop,$n&&delete Pn[a]),i)4!==l.readyState&&l.abort();else{p={},s=l.status,u=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{c=l.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,u)},n.async?4===l.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},x(e).unload($n)),Pn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Yn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),a=(x.cssNumber[e]||"px"!==o&&+r)&&Yn.exec(x.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,x.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=x.now()}function Zn(e,t,n){var r,i=(Qn[t]||[]).concat(Qn["*"]),o=0,a=i.length;for(;a>o;o++)if(r=i[o].call(n,t,e))return r}function er(e,t,n){var r,i,o=0,a=Gn.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(tr(c,u.opts.specialEasing);a>o;o++)if(r=Gn[o].call(u,e,c,u.opts))return r;return x.map(c,Zn,u),x.isFunction(u.opts.start)&&u.opts.start.call(e,u),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function tr(e,t){var n,r,i,o,a;for(n in e)if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=x.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}x.Animation=x.extend(er,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,l,u=this,c={},p=e.style,f=e.nodeType&&nn(e),d=x._data(e,"fxshow");n.queue||(s=x._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(x.support.inlineBlockNeedsLayout&&"inline"!==ln(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",x.support.shrinkWrapBlocks||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Vn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show"))continue;c[r]=d&&d[r]||x.style(e,r)}if(!x.isEmptyObject(c)){d?"hidden"in d&&(f=d.hidden):d=x._data(e,"fxshow",{}),o&&(d.hidden=!f),f?x(e).show():u.done(function(){x(e).hide()}),u.done(function(){var t;x._removeData(e,"fxshow");for(t in c)x.style(e,t,c[t])});for(r in c)a=Zn(f?d[r]:0,r,u),r in d||(d[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}x.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=er(this,x.extend({},e),o);(i||x._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=x.timers,a=x._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=x._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}x.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=rr.prototype.init,x.fx.tick=function(){var e,n=x.timers,r=0;for(Xn=x.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||x.fx.stop(),Xn=t},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){Un||(Un=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Un),Un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){x.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,x.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},x.offset={setOffset:function(e,t,n){var r=x.css(e,"position");"static"===r&&(e.style.position="relative");var i=x(e),o=i.offset(),a=x.css(e,"top"),s=x.css(e,"left"),l=("absolute"===r||"fixed"===r)&&x.inArray("auto",[a,s])>-1,u={},c={},p,f;l?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),x.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+p),null!=t.left&&(u.left=t.left-o.left+f),"using"in t?t.using.call(e,u):i.css(u)}},x.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===x.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?x(a).scrollLeft():o,r?o:x(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return x.access(this,function(n,r,i){var o;return x.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?x.css(n,r,s):x.style(n,r,i,s)},n,a?i:t,a,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:(e.jQuery=e.$=x,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}))})(window);
diff --git a/common/tct-messaging-email-tizen-tests/webrunner/testrunner.js b/common/tct-messaging-email-tizen-tests/webrunner/testrunner.js
deleted file mode 100755 (executable)
index bb4da28..0000000
+++ /dev/null
@@ -1,935 +0,0 @@
-/*
-Copyright (c) 2013 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Wang, Jing <jing.j.wang@intel.com>
-
-*/
-$(function(){
-  try {
-    var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle");
-    console.log("Shape = " + shape);
-  } catch (error) {
-    console.log("Error name: " + error.name + ", message: " + error.message);
-  }
-
-  if(shape){
-    $('body').css('max-width', '100%');
-    $('body').css('max-height', '100%');
-    $('body').css('background-color', 'white');
-    $('body').css('margin-top', '8%');
-    $('body').css('margin-bottom', '5%');
-    $('body').css('margin-left', '8%');
-    $('body').css('margin-right', '8%');
-  }
-});
-
-var STUB_PORT = "";
-var RESOURCE_DIR;
-$.ajax({
-  url:"/opt/usr/home/owner/share/TCT_CONFIG",
-  data:{},
-  async:false,
-  success:function(data){
-    var regEx = /DEVICE_SUITE_TARGET_30=(.+)/i;
-    var path = regEx.exec(data);
-    RESOURCE_DIR = path[1];
-  }
-});
-$.ajax({
-  url:RESOURCE_DIR + "/tct/portconfigure.json",
-  dataType:"json",
-  data:{},
-  async:false,
-  success:function(data){
-    STUB_PORT = data[0]["STUB_PORT"];
-  }
-});
-(function (window){
-  function TestRunner() {
-    this.start = null;
-    this.ui = null;
-    this.submitResult = function () {};
-    this.report = function (result, message) {};
-    this.doTest = function () {};
-  }
-
-  TestRunner.prototype = (function () {
-    var index = -1;
-    var Tests = [];
-    var Testsuites = {};
-    var TestsuiteSums = {};
-    var TestsetSums =  {};
-    var sum = newSummary();
-    var testContext =  newTestContext();
-    function newSummary(sum) {
-      if (typeof sum === "undefined")
-        return {"TOTAL": 0, "PASS" : 0, "FAIL" : 0, "BLOCK" : 0, "NOTRUN" : 0};
-      return {"TOTAL": sum.TOTAL, "PASS": sum.PASS, "FAIL": sum.FAIL, "BLOCK": sum.BLOCK, "NOTRUN": sum.NOTRUN};
-    }
-    function newTestContext() {
-      return {start_time: null, prev_uri: "", uri: "", sub_index: 0, onload_delay: 0};
-    }
-    function getParms () {
-      var parms = {};
-      var items = location.search.substring(1).split('&');
-      for ( var i = 0, max = items.length; i < max; i++) {
-        var pos = items[i].indexOf('=');
-        if (pos > 0) {
-          var key = items[i].substring(0, pos);
-          var val = items[i].substring(pos + 1);
-          if (!parms[key]) {
-            var rawVal = decodeURI(val);
-            if (rawVal.indexOf(',') < 0)
-              parms[key] = rawVal;
-            else
-              parms[key] = rawVal.split(',');
-          }
-        } else
-           parms[items[i]] = 1;
-      }
-      return parms;
-    }
-    return {
-      constructor: TestRunner,
-      options:  getParms(),
-      addTestsuite: function (testsuite, category) {
-        if (!category)
-          category = "default";
-        if (typeof Testsuites[category] === "undefined")
-          Testsuites[category] = [];
-        Testsuites[category].push(testsuite);
-      },
-
-      goNext: function () {
-        if (Tests.length === 0) return false;
-        if (index >= Tests.length) {
-          index = -1;
-          return false;
-        }
-        index++;
-        return true;
-      },
-
-      goPrev: function () {
-        if (Tests.length === 0) return false;
-        if (index < 0) {
-          index = Tests.length;
-          return false;
-        }
-        index--;
-        return true;
-      },
-
-      runAll: function () {
-        testContext = newTestContext();
-        VIEWFLAGS.add("batch");
-        this.ui.updateView(VIEWFLAGS.del("suite"));
-        this.testIndex(-1);
-        this.doTest();
-      },
-
-      cleanTests: function () {
-        Tests = [];
-      },
-
-      testIndex: function (ind) {
-        if (typeof ind === "undefined")
-          return index;
-        index = ind;
-      },
-
-      getTest: function (ind) {
-        if (typeof ind === "undefined")
-          ind = index;
-        return Tests[ind];
-      },
-
-      addTest: function (test) {
-        if (test instanceof Array)
-          Tests = Tests.concat(test);
-        else
-          Tests.push(test);
-      },
-
-      sumInit: function (num) {
-        if (typeof num === "undefined")
-          num = Tests.length;
-        sum.TOTAL = sum.NOTRUN = num;
-        sum.PASS = sum.FAIL = sum.BLOCK = 0;
-      },
-
-      sumUpdate: function (oldRes, newRes, set) {
-        if (oldRes !== null) {
-          sum[oldRes]--;
-          if (set !== null) TestsetSums[set][oldRes]--;
-        }
-        if (newRes !== null) {
-          sum[newRes]++;
-          if (set != null) TestsetSums[set][newRes]++;
-        }
-      },
-
-      checkResult: function (oTestDoc) {
-        var message = "";
-        if (!oTestDoc) {
-          this.report('FAIL', 'Test page crash');
-          return true;
-        }
-        // Handle sub-index test
-        if (testContext.sub_index > 0) {
-          var oRes = $(oTestDoc).find("table#results");
-          if (oRes.length == 0)
-            return false;
-          var ind = testContext.sub_index - 1;
-          var $n = $(oRes).find('tbody > tr').eq(ind);
-          if ($n.length == 0)
-            return false
-          var result = $n.children("td:eq(0)").text();
-          message = $n.children("td:eq(2)").text();
-          this.report(result.toUpperCase(), message);
-          return true;
-        }
-
-        var oPass = $(oTestDoc).find(".pass");
-        var oFail = $(oTestDoc).find(".fail");
-        // Qunit sub-cases
-        var oUnitRes = $(oTestDoc).find("ol.qunit-assert-list");
-        $(oUnitRes).find('li').each(function() {
-          message += "[assert]" + $(this).attr("class");
-          message += "[message]*" + $(this).children("span").text() + "\n";
-        });
-        // All tests pass
-        if (oPass.length > 0 && oFail.length == 0) {
-          this.report('PASS', message);
-          return true;
-        }
-        // Handle failed tests
-        if (oFail.length > 0) {
-          var oRes = $(oTestDoc).find("table#results");
-          $(oRes).find('tr.fail').each(function() {
-            message += " *" + $(this).children("td:eq(1)").text() + ": ";
-            message += $(this).children("td:eq(2)").text();
-          });
-          this.report('FAIL', message);
-          return true;
-        }
-        return false;
-      },
-
-      testInfo: function (ind) {
-        var info = "";
-        var tc = this.getTest();
-        if (!tc) return info;
-        info += "Test   : (" + (index + 1) + "/" + sum.TOTAL + ") ";
-        info += tc.test_script_entry;
-        info += "\nPurpose: " +  tc.purpose;
-        if (tc.pre_condition)
-          info += "\nPrecondition: " + tc.pre_condition;
-        if (tc.steps)
-          info += "\n" + tc.steps;
-        return info;
-      },
-
-      getTestCaseUrl: function () {
-        function getUriField(uri, param) {
-          var querys = uri.split("?")
-          if (querys.length <= 1)
-            return "";
-          uri = querys[1];
-          var start = uri.indexOf(param);
-          if (start == -1)
-            return "";
-          start += param.length + 1;
-          var end = uri.indexOf("&", start);
-          if (end == -1)
-            return uri.substring(start);
-          return uri.substring(start, end);
-        }
-        var tc = this.getTest();
-        if (!tc) return null;
-        var delay = tc.onload_delay;
-        if (delay)
-          testContext.onload_delay = parseInt(delay) * 1000;
-        else
-          testContext.onload_delay = 5000;
-
-        var uri = tc.test_script_entry;
-        if (typeof this.options.testprefix !== "undefined") {
-          var pos = uri.indexOf('http://');
-          if (pos !== 0)
-            uri = this.options.testprefix + uri
-        }
-        var val = getUriField(uri, "value");
-        if (val && tc.execution_type == "auto" && VIEWFLAGS.has("batch")) { // Need sub index in TC
-          testContext.sub_index = parseInt(val);
-          testContext.uri = uri.split("?")[0];
-          if (testContext.uri == testContext.prev_uri)
-            return "";
-        } else {
-          testContext.uri = uri;
-          testContext.sub_index = 0;
-        }
-        testContext.prev_uri = testContext.uri;
-        testContext.start_time = new Date();
-        return testContext.uri;
-      },
-
-      loadReady: function () {
-        if (!VIEWFLAGS.has("batch"))
-          return;
-        if (!this.ui.testComplete()){
-          if (testContext.onload_delay > 0){
-            var tval = 500;
-            var self = this;
-            setTimeout(function() {self.loadReady();}, tval);
-            testContext.onload_delay -= tval;
-            return
-          }
-          this.report("BLOCK", "Timeout");
-        }
-        this.doTest();
-      },
-
-      getListSum: function () {
-        var sumdata = "";
-        sumdata += "<p><table id='browse'><tr><th>Testsuite</th>";
-        sumdata += "<th>Total</th><th>Pass</th><th>Fail</th><th>Block</th></tr>";
-        $.each(TestsuiteSums, function (key, val){
-          sumdata += "<tr><td>" + key+ "</td>";
-          sumdata += "<td style='color:black;'>" + val.TOTAL + "</td>";
-          sumdata += "<td style='color:green;'>" + val.PASS + "</td>";
-          sumdata += "<td style='color:red;'>" + val.FAIL + "</td>";
-          sumdata += "<td style='color:orange;'>" + val.BLOCK + "</td></tr>";
-        });
-        sumdata += "</table>";
-        return sumdata;
-      },
-
-      getTestSum: function (include_set) {
-        var sumdata = "<section><h3>Total:" + sum.TOTAL
-            + " Pass:<span style='color:green;'>" + sum.PASS
-            + "</span> Fail:<span style='color:red;'>" + sum.FAIL
-            + "</span> Block:<span style='color:orange;'>" + sum.BLOCK
-            + "</span> Notrun:<span style='color:black;'>" + sum.NOTRUN
-            + "</span>";
-                                if (this.options.notifyInfo) {
-          sumdata += "<span style='color:slateblue;'> " + this.options.notifyInfo + "</span>";
-          this.options.notifyInfo = "";
-        }
-        sumdata += "</h3></section>";
-        if (VIEWFLAGS.has("batch")) {
-          var tc = this.getTest();
-          if (tc)  sumdata += "<h4><span style='background-color: wheat'>(#" + index + ") " + tc.id + "</span></h4>";
-        }
-        if (this.options.testsuite_name)
-          TestsuiteSums[this.options.testsuite_name] = newSummary(sum)
-        if (include_set) {
-          sumdata += "<p><table id='browse'><tr><th>Testset</th>";
-          sumdata += "<th>Total</th><th>Pass</th><th>Fail</th><th>Block</th></tr>";
-          $.each(TestsetSums, function (key, val){
-            sumdata += "<tr><td>" + key+ "</td>";
-            sumdata += "<td style='color:black;'>" + val.TOTAL + "</td>";
-            sumdata += "<td style='color:green;'>" + val.PASS + "</td>";
-            sumdata += "<td style='color:red;'>" + val.FAIL + "</td>";
-            sumdata += "<td style='color:orange;'>" + val.BLOCK + "</td></tr>";
-          });
-          sumdata += "</table>";
-        }
-        return sumdata;
-      },
-
-      getListInfo: function () {
-        function createList(category) {
-          var testList = "";
-          $.each(Testsuites[category], function (ind, val) {
-            testList += "<li><input type='checkbox' id='" + val + "'>&nbsp;<a href=''>" + val + "</a>" + "</li>";
-          });
-          return testList;
-        }
-        var data = "<html><head><style>.category{background: #cccccc;border: 1px solid #aaaaaa;} li{list-style-type: none; padding-left: 0.6em; padding-bottom:0.8em; font-size: 1.3em;}html{font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;}</style></head><body>";
-        $.each(Testsuites, function(key, val) {
-          data += "<section><h3 class='category'><input type='checkbox' id='" + key + "'>&nbsp;" + key + "</h3>"
-          data +=  createList(key) + "</section>";
-        });
-        data += "</body></html>";
-        return data;
-      },
-
-      getBrowseInfo: function () {
-        var failList = passList = blockList = notrunList = "";
-        function createTestList(tc, color, ind) {
-          var mtag = (tc.execution_type === "manual") ? "(M)" : "";
-          return "<li>" + mtag + "<a rel='" + ind + "' href='' style ='color:" + color + ";'>" + tc.id + "</a>" + "</li>";
-        }
-        TestsetSums = {};
-        $.each(Tests, function (ind, val) {
-          if (this.set === null)
-            this.set = "default";
-          if (typeof TestsetSums[this.set] === "undefined")
-            TestsetSums[this.set] = newSummary();
-          TestsetSums[this.set][this.result]++;
-          TestsetSums[this.set]["TOTAL"]++;
-          if (this.result == "FAIL")
-            failList += createTestList(this, "red", ind);
-          if (this.result == "PASS")
-            passList += createTestList(this, "green", ind);
-          if (this.result == "BLOCK")
-            blockList += createTestList(this, "orange", ind);
-          if (this.result == "NOTRUN")
-            notrunList += createTestList(this, "black", ind);
-        });
-        var data = "<html><head><style>ul li {padding-bottom:0.8em;font-size: 1.3em;}";
-        data += "html{font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;}</style></head><body>";
-        if (notrunList)
-          data += "<section><h3>Notrun</h3><ul>" + notrunList + "</ul></section>";
-        if (failList)
-          data += "<section><h3 style='color: red;'>Fail</h3><ul>" + failList + "</ul></section>";
-        if (blockList)
-          data += "<section><h3 style='color: orange;'>Block</h3><ul>" + blockList + "</ul></section>";
-        if (passList)
-          data += "<section><h3 style='color: green'>Pass</h3><ul>" + passList + "</ul></section>";
-        data += "</body></html>";
-        return data;
-      },
-
-      TestCase: function () {
-        return {
-          id: null,
-          test_script_entry: null,
-          execution_type: "manual",
-          result: "NOTRUN",
-          purpose: "",
-          set: null,
-          pre_condition: "",
-          onload_delay: 0,
-          steps: "",
-          data: null};
-      },
-
-      TestSuite: function () {
-        return {
-          id: null,
-          sum: null,
-          data: null};
-      }
-
-    };
-     }());
-  // Standalone test runner
-  var master_runner = new TestRunner();
-  master_runner.start = function (ui) {
-    function filter(xml, self) {
-      var set_ind = 0;
-      var manuals = [];
-      $(xml).find("set").each(function () {
-        var setname = $(this).attr("name");
-        if (!setname)
-          setname = "set" + set_ind;
-        $(this).find("testcase").each(function () {
-          var v = $(this).attr('execution_type');
-          if (self.options.execution_type && v != self.options.execution_type
-              && $.inArray(v, self.options.execution_type) < 0) {
-            $(this).remove();
-            return;
-          }
-          v = $(this).attr('priority');
-          if (self.options.priority && v != self.options.priority
-              && $.inArray(v, self.options.priority) < 0){
-            $(this).remove();
-            return;
-          }
-          var test = self.TestCase();
-          test.id = $(this).attr("id");
-          test.execution_type = $(this).attr("execution_type");
-          test.test_script_entry = $(this).find("test_script_entry").text();
-          test.purpose = $(this).attr("purpose");
-          test.pre_condition = $(this).find("pre_condition").text();
-          test.onload_delay = $(this).attr("onload_delay");
-          test.result = "NOTRUN";
-          test.set = setname;
-          test.data = this;
-          if (test.execution_type === "auto")
-            self.addTest(test);
-          else
-            manuals.push(test);
-        });
-        set_ind++;
-      });
-      self.addTest(manuals);
-    }
-
-    var self = this;
-    if (ui) ui.bind(self);
-    if (self.options.testsuite_name)
-      self.options.testsuite = "opt/" + self.options.testsuite_name + "/tests.xml";
-    if (!self.options.testsuite) {
-      $.getJSON(TESTLIST_FILE, function(data) {
-        for (var i = 0, imax = data.length; i < imax; i++) {
-          for (var j = 0, jmax = data[i].tests.length; j < jmax; j++)
-            self.addTestsuite(data[i].tests[j], data[i].category);
-        }
-        self.ui.list();
-        self.options.multiplex = true;
-      });
-    } else {
-      $.get(self.options.testsuite, null, function (xml) {
-        self.internal.xmldoc = xml;
-        filter(xml, self);
-        self.sumInit();
-        self.ui.browse();
-        setTimeout(function () {
-        if (self.options.autorun)
-          self.runAll();
-        }, 500);
-      }, "xml");
-    }
-  };
-
-  master_runner.doTest = function () {
-    var self = this, tc = null;
-    while (self.goNext()) {
-      tc = self.getTest();
-      if (!tc || tc.execution_type === "manual")
-        break;
-      self.ui.updateTestInfo(self.testInfo(), null, null);
-      self.ui.runTest(self.getTestCaseUrl());
-      return;
-    }
-    this.ui.updateView(VIEWFLAGS.del("batch"));
-    if (self.options.autorun) {
-      self.submitResult();
-      if (self.options.multiplex) {
-        self.ui.list();
-        return;
-      }
-      close_window();
-      return;
-    }
-    if (!tc) {
-      setTimeout(function () {self.ui.browse();}, 500);
-      return;
-    }
-    this.ui.updateTest();
-  };
-
-  master_runner.report = function (result, log) {
-    var tc = this.getTest();
-    if (!tc) return;
-    var oldresult = tc.result;
-    this.sumUpdate(oldresult, result, tc.set);
-    tc.result = result;
-    $(tc.data).find('result_info').remove();
-    $(tc.data).attr('result', result);
-    var doc = $.parseXML("<result_info><actual_result>" + result +
-           "</actual_result><stdout>" +
-           escape_html(log) + "</stdout></result_info>");
-    $(tc.data).append(doc.documentElement);
-    if (VIEWFLAGS.has("batch")) result = null;
-    this.ui.updateTestInfo(null, this.getTestSum(false), result);
-  };
-
-  master_runner.submitResult = function () {
-    var SERVER = "http://127.0.0.1:8080";
-    var contents = (new XMLSerializer()).serializeToString(this.internal.xmldoc);
-    var resfile = "tests.res.xml";
-    if (this.options.testsuite_name)
-      resfile = this.options.testsuite_name + "." + resfile;
-    $.post(SERVER + "/save_file", {filename: resfile, data: contents})
-  };
-
-  master_runner.internal = {xmldoc: null};
-
-  // Controlled test runner
-  var slave_runner = new TestRunner();
-  slave_runner.start = function (ui) {
-    function sync_session_id() {
-      $.get(SERVER + "/init_session_id?session_id="
-            + self.internal.session_id);
-    }
-    var self = this;
-    self.internal.session_id = Math.round(Math.random() * 10000);
-    sync_session_id();
-    var next_step = self.internal.get_json("ask_next_step");
-    if (!next_step || next_step.step != "continue") {
-      close_window();
-      return false;
-    }
-    ui.bind(self);
-    var f = function () {
-      var p = self.internal.get_json("check_execution_progress");
-      if (p) self.sumInit(parseInt(p.total));
-      self.doTest();
-    };
-    self.ui.updateView(VIEWFLAGS.add("batch"));
-    self.ui.updateView(VIEWFLAGS.del("suite"));
-    setTimeout(f, 1000);
-    return true;
-  };
-
-  slave_runner.doTest = function () {
-    var self = this;
-    if (self.internal.stage > 0) {
-      self.ui.updateView(VIEWFLAGS.del("batch"));
-      self.goNext();
-      self.ui.updateTest();
-      return;
-    }
-    var next_step = self.internal.get_json("ask_next_step");
-    if (next_step && next_step.step == "continue") {
-      var task = self.internal.get_json("auto_test_task");
-      if (task === null) {
-        print_error("ask_test_task", "Fail get task");
-      } else if (task.invalid === 0) {
-        print_error("ask_test_task", "Invalid session");
-      } else if (task.stop === 0) {
-        print_error("ask_test_task", "close window");
-      } else if (task.none !== 0) { //handle auto test
-        var test = self.TestCase();
-        test.id = task.case_id;
-        test.onload_delay = task.onload_delay;
-        test.test_script_entry = task.entry;
-        test.execution_type = "auto";
-        test.purpose = task.purpose;
-        test.pre_condition = task.pre_condition;
-        self.addTest(test);
-        self.goNext();
-        self.ui.updateTestInfo(self.testInfo(), null, null);
-        self.ui.runTest(self.getTestCaseUrl());
-        return;
-      } else {  //handle manual test
-        self.ui.updateView(VIEWFLAGS.del("batch"));
-        self.internal.stage = 1;
-        var mtask = self.internal.get_json("manual_cases");
-        if (mtask && mtask.none != 0) {
-          self.cleanTests();
-          for (var i = 0, max = mtask.length; i < max; i++) {
-            var test = self.TestCase();
-            test.id = mtask[i].case_id;
-            test.test_script_entry = mtask[i].entry;
-            test.purpose = mtask[i].purpose;
-            test.pre_condition = mtask[i].pre_condition;
-            test.result = "NOTRUN";
-            test.execution_type = "manual";
-            test.index = i;
-            var steps = "";
-            $(mtask[i].steps).each(function () {
-              steps += "Step-" + this.order + "\t: " + this.step_desc + "\n";
-              steps += "Expect\t: " + this.expected + "\n";
-            });
-            test.steps = steps;
-            self.addTest(test);
-          }
-          self.ui.updateTest(-1);
-          self.sumInit();
-          self.ui.browse();
-        } else
-          close_window();
-        return;
-      }
-    }
-    close_window();
-  };
-
-  slave_runner.report = function(result, log) {
-    var tc = this.getTest();
-    var oldresult;
-    if (this.internal.stage > 0) {
-      this.internal.post_json("commit_manual_result",
-        {"case_id": tc.id, "result": result});
-      oldresult = tc.result
-      tc.result = result;
-    } else {
-      this.internal.post_json("commit_result",
-        { "case_id" : tc.id,
-          "result" : result,
-          "msg" : "[Message]" + log,
-          "session_id" : this.internal.session_id});
-      oldresult = "NOTRUN";
-    }
-    this.sumUpdate(oldresult, result, null);
-    if (VIEWFLAGS.has("batch")) result = null;
-    this.ui.updateTestInfo(null, this.getTestSum(false), result);
-  };
-
-  slave_runner.submitResult = function () {
-    $.get(SERVER + "/generate_xml");
-  };
-
-  slave_runner.internal = {
-    session_id: null,
-    stage: 0,
-    get_json: function (name) {
-      var jsondata = null;
-      $.getJSON(SERVER + "/" + name + "?session_id="
-         + this.session_id, function(data) {
-           jsondata = data;});
-      return jsondata; },
-    post_json: function (name, d) {
-       $.post(SERVER + "/" + name, d, null, "json");
-    }
-  };
-
-  var i_ui = (function () {
-    var testinfo = $("#testinfo").get(0);
-    var frmTest = $("#frmTest").get(0);
-    var textTest  = $("#textTest").get(0);
-    var btnPass = $("#btnPass").get(0);
-    var btnFail = $("#btnFail").get(0);
-    var btnBlock = $("#btnBlock").get(0);
-    var btnExit = $("#btnExit").get(0);
-    var btnNext = $("#btnNext").get(0);
-    var btnPrev = $("#btnPrev").get(0);
-    var btnRun  = $("#btnRun").get(0);
-    var divSum = $("#divSum").get(0);
-    var btnBack = $("#btnBack").get(0);
-    var btnSave = $("#btnSave").get(0);
-    var runner = null;
-    var listmode = null;
-    var nextTest = function () {
-      runner.goNext();
-      selectTest();
-    };
-
-    var prevTest = function() {
-      runner.goPrev();
-      selectTest();
-    };
-
-    var selectResult = function() {
-      runner.report(this.value, "");
-    };
-
-    var selectTest = function () {
-      frmTest.src = "";
-      var tc = runner.getTest();
-      if (!tc) {
-        if (runner.testIndex() === -1)
-          textTest.value = "---Begin---";
-        else
-          textTest.value = "---End---";
-        changeColor("NOTRUN");
-        return;
-      }
-      testinfo.value = runner.testInfo();
-      $(divSum).html(runner.getTestSum(false));
-      textTest.value = ((tc.execution_type === "manual") ? "(M)" : "") + tc.id;
-      changeColor(tc.result);
-    };
-
-    function changeColor(result) {
-      if (result === "PASS")
-        $(textTest).css("backgroundColor", "lightgreen");
-      else if (result === "FAIL")
-        $(textTest).css("backgroundColor", "tomato");
-      else if (result === "BLOCK")
-        $(textTest).css("backgroundColor", "yellow");
-      else
-        $(textTest).css("backgroundColor", "white");
-    }
-
-    return {
-      bind: function (r) {
-        var self = this;
-        r.ui = self;
-        runner = r;
-        $(btnPass).on("click", selectResult);
-        $(btnFail).on("click", selectResult);
-        $(btnBlock).on("click", selectResult);
-        $(btnNext).on("click", nextTest);
-        $(btnPrev).on("click", prevTest);
-        $(btnRun).on("click",  function () {
-          if (VIEWFLAGS.has("list")) {
-            runner.options.auto_testsuites = [];
-            var tdoc = frmTest.contentWindow.document;
-            $(tdoc).find("section li>input:checked").each(function () {
-              var tname = $(this).attr("id");
-              runner.options.auto_testsuites.push(tname);
-            });
-            self.list();
-          } else if (VIEWFLAGS.has("suite")) {
-            runner.runAll();
-          } else
-            self.runTest(runner.getTestCaseUrl());
-        });
-        $(frmTest).on("load",  function () {runner.loadReady();});
-        $(btnExit).on("click", function () {
-          runner.submitResult();
-          if (runner.options.multiplex && VIEWFLAGS.has("suite"))
-            self.list();
-          else
-            close_window();
-        });
-        $(btnBack).on("click", function () {
-          frmTest.src = "";
-          setTimeout(function () {self.browse();}, 300);
-        });
-        $(btnSave).on("click", function () {
-          runner.submitResult();
-          runner.options.notifyInfo = "*Save succeed*";
-          $(divSum).html(runner.getTestSum(true));
-        });
-        frmTest.height = $(window).height();
-      },
-
-      list: function () {
-        var tdoc = frmTest.contentWindow.document;
-        $(btnExit).attr("value", "Exit");
-        tdoc.open("text/html", "replace");
-        tdoc.writeln(runner.getListInfo());
-        var self = this;
-        $(tdoc).find("section li>a").on("click", function (e) {
-          runner.options.testsuite_name = $(this).text();
-          VIEWFLAGS.del("list");
-          runner.start();
-          window.scrollTo(0, 0);
-          e.preventDefault();
-        });
-        $(tdoc).find("section h3>input[type=checkbox]").on("click", function () {
-          $boxs = $(this).parent().parent().find("li>input[type=checkbox]");
-          $boxs.prop('checked', $(this).is(':checked'));
-        });
-        $(divSum).html(runner.getListSum());
-        runner.cleanTests();
-        self.updateView(VIEWFLAGS.add("list"));
-        if (runner.options.auto_testsuites) {
-          if (runner.options.auto_testsuites.length > 0) {
-            var ts = runner.options.auto_testsuites.shift();
-            runner.options.testsuite_name = ts;
-            runner.options.autorun = true;
-            VIEWFLAGS.del("list");
-            runner.start();
-          } else
-            runner.options.autorun = false;
-        }
-      },
-
-      browse: function () {
-        var tdoc = frmTest.contentWindow.document;
-        if (runner.options.multiplex)
-          $(btnExit).attr("value", "Back");
-        tdoc.open("text/html", "replace");
-        tdoc.writeln(runner.getBrowseInfo());
-        var self = this;
-        $(tdoc).find("section ul li>a").on("click", function (e) {
-          var ind = parseInt($(this).attr("rel"));
-          self.updateView(VIEWFLAGS.del("suite"));
-          self.updateTest(ind);
-          window.scrollTo(0, 0);
-          e.preventDefault();
-        });
-        $(divSum).html(runner.getTestSum(true));
-        self.updateView(VIEWFLAGS.add("suite"));
-      },
-
-      updateTest: function (ind) {
-        if (typeof ind !== "undefined") runner.testIndex(ind);
-        selectTest();
-      },
-
-      updateView: function (flags) {
-        if (flags & VIEWFLAGS.flags.batch)
-          $(".batchhide").hide();
-        else {
-          $(".batchhide").show();
-          if (flags & VIEWFLAGS.flags.list) {
-            $(".tchide").show();
-            $(".suitehide").show();
-            $(".listhide").hide();
-          } else if (flags & VIEWFLAGS.flags.suite) {
-            $(".listhide").show();
-            $(".tchide").show();
-            $(".suitehide").hide();
-          } else {
-            $(".listhide").show();
-            $(".suitehide").show();
-            $(".tchide").hide();
-          }
-        }
-      },
-
-        testComplete: function () {
-        return runner.checkResult(frmTest.contentWindow.document);
-      },
-
-      runTest: function (uri) {
-        if (uri === null) return;
-        if (uri)
-          frmTest.src = uri;
-        else
-          runner.loadReady();
-      },
-
-      updateTestInfo: function (info, sum, result) {
-        if (info !== null)
-          testinfo.value = info;
-        if (sum !== null)
-          $(divSum).html(sum);
-        if (result !== null)
-          changeColor(result);
-      },
-     };
-  } ());
-
-  function escape_html(s) {
-    return s.replace(/\&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g,
-      "&quot;").replace(/'/g, "&#39;");
-  }
-
-  function print_error(command, message) {
-    console.warn("Command -" + command + ": " + message);
-  }
-
-  function close_window() {
-    setTimeout(function () {
-      window.open('', '_self', '');
-      window.close();
-      if (window.parent != window.self) {
-        window.parent.onbeforeunload = null;
-        window.parent.close();
-      }
-    }, 1000);
-  }
-
-  function pre_init() {
-    var runner_ok = false;
-    $.get(SERVER + "/check_server", function () {
-      runner_ok = slave_runner.start(i_ui);
-    });
-    if (!runner_ok)
-      master_runner.start(i_ui);
-  }
-  var SERVER = "http://127.0.0.1:"+STUB_PORT;
-  var TESTLIST_FILE = "testlist.json"
-  var VIEWFLAGS = { val: 0,
-    flags: {suite: 1, batch: 2, list: 4},
-    add: function (f) { this.val |= this.flags[f]; return this.val},
-    del: function (f) { this.val &= ~this.flags[f]; return this.val},
-    has: function (f) { return this.val & this.flags[f];},
-  };
-  $.ajaxSetup({ async: false});
-  $(window).on("ready", pre_init);
-})(window);
diff --git a/common/tct-messaging-mms-tizen-tests/COPYING b/common/tct-messaging-mms-tizen-tests/COPYING
deleted file mode 100755 (executable)
index 7d06b32..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/common/tct-messaging-mms-tizen-tests/LICENSE.Apache-2.0 b/common/tct-messaging-mms-tizen-tests/LICENSE.Apache-2.0
deleted file mode 100755 (executable)
index d645695..0000000
+++ /dev/null
@@ -1,202 +0,0 @@
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
diff --git a/common/tct-messaging-mms-tizen-tests/LICENSE.CC-BY-3.0 b/common/tct-messaging-mms-tizen-tests/LICENSE.CC-BY-3.0
deleted file mode 100755 (executable)
index 67323bd..0000000
+++ /dev/null
@@ -1,295 +0,0 @@
-CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES.
-DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP.
-CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS
-MAKES NO WARRANTIES REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR
-DAMAGES RESULTING FROM ITS USE.
-
-License
-THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS
-PUBLIC LICENSE("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR
-OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE
-OR COPYRIGHT LAW IS PROHIBITED.
-
-BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND
-BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED
-TO BE A CONTRACT,
-THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR
-ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
-
-1. Definitions
-
-a."Adaptation" means a work based upon the Work, or upon the Work and
-other pre-existing works, such as a translation, adaptation, derivative work,
-arrangement of music or other alterations of a literary or artistic work,
-or phonogram or performance and includes cinematographic adaptations
-or any other form in which the Work may be recast,
-transformed, or adapted including in any form recognizably derived from
-the original,
-except that a work that constitutes a Collection will not be considered
-an Adaptation for the purpose of this License.
-For the avoidance of doubt, where the Work is a musical work, performance
-or phonogram, the synchronization of the Work in timed-relation with a moving
-image ("synching") will be considered an Adaptation for the purpose of this License.
-b."Collection" means a collection of literary or artistic works,
-such as encyclopedias and anthologies, or performances,
-phonograms or broadcasts, or other works or subject matter other than
-works listed in Section 1(f) below, which, by reason of the selection
-and arrangement of their contents, constitute intellectual creations,
-in which the Work is included in its entirety in unmodified form
-along with one or more other contributions, each constituting separate
-and independent works in themselves, which together are assembled into
-a collective whole.
-A work that constitutes a Collection will not be considered an Adaptation
-(as defined above) for the purposes of this License.
-c."Distribute" means to make available to the public the original and
-copies of the Work or Adaptation, as appropriate, through sale or
-other transfer of ownership.
-d."Licensor" means the individual, individuals, entity or entities that offer(s)
-the Work under the terms of this License.
-e."Original Author" means, in the case of a literary or artistic work,
-the individual, individuals,
-entity or entities who created the Work or if no individual or entity can be identified,
-the publisher; and in addition
-(i) in the case of a performance the actors, singers, musicians, dancers,
-and other persons who act, sing, deliver, declaim, play in, interpret or
-otherwise perform literary or artistic works or expressions of folklore;
-(ii) in the case of a phonogram the producer being the person or legal entity
-who first fixes the sounds of a performance or other sounds; and,
-(iii) in the case of broadcasts, the organization that transmits the broadcast.
-f."Work" means the literary and/or artistic work offered under the terms
-of this License including without limitation any production in the literary,
-scientific and artistic domain, whatever may be the mode or form of its expression
-including digital form, such as a book, pamphlet and other writing; a lecture,
-address, sermon or other work of the same nature; a dramatic or dramatico-musical work;
-a choreographic work or entertainment in dumb show;
-a musical composition with or without words; a cinematographic work to which
-are assimilated works expressed by a process analogous to cinematography;
-a work of drawing, painting, architecture, sculpture, engraving or lithography;
-a photographic work to which are assimilated works expressed by a process analogous
-to photography; a work of applied art; an illustration, map, plan, sketch or
-three-dimensional work relative to geography, topography, architecture or science;
-a performance; a broadcast; a phonogram; a compilation of data to the extent it
-is protected as a copyrightable work; or a work performed by a variety or
-circus performer to the extent it is not otherwise considered a literary or artistic work.
-g."You" means an individual or entity exercising rights under this License
-who has not previously violated the terms of this License with respect to the Work,
-or who has received express permission from the Licensor to exercise rights
-under this License despite a previous violation.
-h."Publicly Perform" means to perform public recitations of the Work and to
-communicate to the public those public recitations, by any means or process,
-including by wire or wireless means or public digital performances;
-to make available to the public Works in such a way that members of the public
-may access these Works from a place and at a place individually chosen by them;
-to perform the Work to the public by any means or process and the communication
-to the public of the performances of the Work, including by public digital performance;
-to broadcast and rebroadcast the Work by any means including signs, sounds or images.
-i."Reproduce" means to make copies of the Work by any means including without
-limitation by sound or visual recordings and the right of fixation and
-reproducing fixations of the Work, including storage of a protected performance
-or phonogram in digital form or other electronic medium.
-
-2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit,
-or restrict any uses free from copyright or rights arising from limitations or
-exceptions that are provided for in connection with the copyright protection
-under copyright law or other applicable laws.
-
-3. License Grant. Subject to the terms and conditions of this License,
-Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual
-(for the duration of the applicable copyright) license to exercise the rights
-in the Work as stated below:
-
-a.to Reproduce the Work, to incorporate the Work into one or more Collections,
-and to Reproduce the Work as incorporated in the Collections;
-b.to create and Reproduce Adaptations provided that any such Adaptation,
-including any translation in any medium, takes reasonable steps to clearly label,
-demarcate or otherwise identify that changes were made to the original Work.
-For example, a translation could be marked "The original work was translated
-from English to Spanish," or a modification could indicate
-"The original work has been modified.";
-c.to Distribute and Publicly Perform the Work including as incorporated
-in Collections; and,
-d.to Distribute and Publicly Perform Adaptations.
-e.For the avoidance of doubt:
-
-i.Non-waivable Compulsory License Schemes. In those jurisdictions in which
-the right to collect royalties through any statutory or compulsory licensing
-scheme cannot be waived, the Licensor reserves the exclusive right to collect
-such royalties for any exercise by You of the rights granted under this License;
-ii.Waivable Compulsory License Schemes. In those jurisdictions in which the right
-to collect royalties through any statutory or compulsory licensing scheme can be waived,
-the Licensor waives the exclusive right to collect such royalties for any exercise
-by You of the rights granted under this License; and,
-iii.Voluntary License Schemes. The Licensor waives the right to collect royalties,
-whether individually or, in the event that the Licensor is a member of a collecting
-society that administers voluntary licensing schemes, via that society,
-from any exercise by You of the rights granted under this License.
-The above rights may be exercised in all media and formats whether now known
-or hereafter devised. The above rights include the right to make such modifications
-as are technically necessary to exercise the rights in other media and formats.
-Subject to Section 8(f), all rights not expressly granted by Licensor
-are hereby reserved.
-
-4. Restrictions. The license granted in Section 3 above is expressly made
-subject to and limited by the following restrictions:
-
-a.You may Distribute or Publicly Perform the Work only under the terms of
-this License. You must include a copy of, or the Uniform Resource Identifier (URI)
-for, this License with every copy of the Work You Distribute or Publicly Perform.
-You may not offer or impose any terms on the Work that restrict the terms of
-this License or the ability of the recipient of the Work to exercise
-the rights granted to that recipient under the terms of the License.
-You may not sublicense the Work. You must keep intact all notices that refer
-to this License and to the disclaimer of warranties with every copy of
-the Work You Distribute or Publicly Perform.
-When You Distribute or Publicly Perform the Work,
-You may not impose any effective technological measures on the Work
-that restrict the ability of a recipient of the Work from You to exercise
-the rights granted to that recipient under the terms of the License.
-This Section 4(a) applies to the Work as incorporated in a Collection,
-but this does not require the Collection apart from the Work itself
-to be made subject to the terms of this License.
-If You create a Collection, upon notice from any Licensor You must,
-to the extent practicable, remove from the Collection any credit
-as required by Section 4(b), as requested. If You create an Adaptation,
-upon notice from any Licensor You must, to the extent practicable,
-remove from the Adaptation any credit as required by Section 4(b),
-as requested. b.If You Distribute, or Publicly Perform the Work or
-any Adaptations or Collections, You must, unless a request has been made
-pursuant to Section 4(a), keep intact all copyright notices for the Work
-and provide, reasonable to the medium or means You are utilizing:
-(i) the name of the Original Author (or pseudonym, if applicable)
-if supplied, and/or if the Original Author and/or Licensor designate
-another party or parties (e.g., a sponsor institute, publishing entity, journal)
-for attribution ("Attribution Parties") in Licensor's copyright notice,
-terms of service or by other reasonable means,
-the name of such party or parties; (ii) the title of the Work if supplied;
-(iii) to the extent reasonably practicable, the URI, if any,
-that Licensor specifies to be associated with the Work,
-unless such URI does not refer to the copyright notice or licensing information
-for the Work; and (iv) , consistent with Section 3(b),
-in the case of an Adaptation,
-a credit identifying the use of the Work in the Adaptation
-(e.g., "French translation of the Work by Original Author," or
-"Screenplay based on original Work by Original Author").
-The credit required by this Section 4(b) may be implemented
-in any reasonable manner; provided, however, that in the case of
-a Adaptation or Collection, at a minimum such credit will appear,
-if a credit for all contributing authors of the Adaptation or Collection appears,
-then as part of these credits and in a manner at least as prominent
-as the credits for the other contributing authors.
-For the avoidance of doubt, You may only use the credit required by this Section
-for the purpose of attribution in the manner set out above and,
-by exercising Your rights under this License, You may not implicitly
-or explicitly assert or imply any connection with, sponsorship or
-endorsement by the Original Author, Licensor and/or Attribution Parties,
-as appropriate, of You or Your use of the Work, without the separate,
-express prior written permission of the Original Author,
-Licensor and/or Attribution Parties.
-c.Except as otherwise agreed in writing by the Licensor or as may be otherwise
-permitted by applicable law, if You Reproduce, Distribute or Publicly Perform
-the Work either by itself or as part of any Adaptations or Collections,
-You must not distort, mutilate, modify or take other derogatory action
-in relation to the Work which would be prejudicial to the Original Author's honor
-or reputation. Licensor agrees that in those jurisdictions (e.g. Japan),
-in which any exercise of the right granted in Section 3(b) of this License
-(the right to make Adaptations) would be deemed to be a distortion,
-mutilation, modification or other derogatory action prejudicial to
-the Original Author's honor and reputation, the Licensor will waive or
-not assert, as appropriate, this Section, to the fullest extent permitted
-by the applicable national law, to enable You to reasonably exercise
-Your right under Section 3(b) of this License (right to make Adaptations)
-but not otherwise.
-
-5. Representations, Warranties and Disclaimer
-
-UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING,
-LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES
-OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE,
-INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY,
-FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT
-OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS,
-WHETHER OR NOT DISCOVERABLE.
-SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES,
-SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
-
-6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW,
-IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY
-FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES
-ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK,
-EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-7. Termination
-
-a.This License and the rights granted hereunder will terminate automatically
-upon any breach by You of the terms of this License.
-Individuals or entities who have received Adaptations or Collections
-from You under this License, however,
-will not have their licenses terminated provided such individuals or entities
-remain in full compliance with those licenses.
-Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
-b.Subject to the above terms and conditions, the license granted here is
-perpetual (for the duration of the applicable copyright in the Work).
-Notwithstanding the above, Licensor reserves the right to release the Work
-under different license terms or to stop distributing the Work at any time;
-provided, however that any such election will not serve to withdraw
-this License (or any other license that has been, or is required to be,
-granted under the terms of this License),
-and this License will continue in full force and effect unless terminated
-as stated above.
-
-8. Miscellaneous
-
-a.Each time You Distribute or Publicly Perform the Work or a Collection,
-the Licensor offers to the recipient a license to the Work on the same terms
-and conditions as the license granted to You under this License.
-b.Each time You Distribute or Publicly Perform an Adaptation,
-Licensor offers to the recipient a license to the original Work on the same terms
-and conditions as the license granted to You under this License.
-c.If any provision of this License is invalid or unenforceable
-under applicable law, it shall not affect the validity or enforceability
-of the remainder of the terms of this License, and without further action
-by the parties to this agreement, such provision shall be reformed
-to the minimum extent necessary to make such provision valid and enforceable.
-d.No term or provision of this License shall be deemed waived and
-no breach consented to unless such waiver or consent shall be in writing
-and signed by the party to be charged with such waiver or consent.
-e.This License constitutes the entire agreement between the parties
-with respect to the Work licensed here. There are no understandings,
-agreements or representations with respect to the Work not specified here.
-Licensor shall not be bound by any additional provisions that may appear
-in any communication from You. This License may not be modified
-without the mutual written agreement of the Licensor and You.
-f.The rights granted under, and the subject matter referenced,
-in this License were drafted utilizing the terminology of the Berne Convention
-for the Protection of Literary and Artistic Works (as amended on September 28, 1979),
-the Rome Convention of 1961, the WIPO Copyright Treaty of 1996,
-the WIPO Performances and Phonograms Treaty of 1996
-and the Universal Copyright Convention (as revised on July 24, 1971).
-These rights and subject matter take effect in the relevant jurisdiction
-in which the License terms are sought to be enforced according to
-the corresponding provisions of the implementation of those treaty provisions
-in the applicable national law. If the standard suite of rights granted
-under applicable copyright law includes additional rights not granted
-under this License, such additional rights are deemed to be included in the License;
-this License is not intended to restrict the license of any rights under applicable law.
-Creative Commons Notice
-Creative Commons is not a party to this License, and makes no warranty
-whatsoever in connection with the Work. Creative Commons will not be liable to
-You or any party on any legal theory for any damages whatsoever,
-including without limitation any general, special, incidental
-or consequential damages arising in connection to this license.
-Notwithstanding the foregoing two (2) sentences,
-if Creative Commons has expressly identified itself as the Licensor hereunder,
-it shall have all rights and obligations of Licensor.
-
-Except for the limited purpose of indicating to the public
-that the Work is licensed under the CCPL, Creative Commons does not authorize
-the use by either party of the trademark "Creative Commons" or any related trademark
-or logo of Creative Commons without the prior written consent of Creative Commons.
-Any permitted use will be in compliance with Creative Commons'
-then-current trademark usage guidelines, as may be published on its website
-or otherwise made available upon request from time to time.
-For the avoidance of doubt, this trademark restriction does not form part
-of this License.
-
-Creative Commons may be contacted at http://creativecommons.org/.
diff --git a/common/tct-messaging-mms-tizen-tests/NOTICE b/common/tct-messaging-mms-tizen-tests/NOTICE
deleted file mode 100755 (executable)
index 0d8f6a9..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
-Copyright (c) 2012 Intel Corporation.
-Except as noted, this software is licensed under Apache License, Version 2 or BSD-3-Clause License.
-Please, see the LICENSE.Apache-2.0 file for Apache License, Version 2 terms and conditions
-or the COPYING file for BSD-3-Clause License.
-
-Following resources are licensed under its own license.
-
-webapi-tizen-messaging-test_image.jpg,
-webapi-tizen-messaging-test_noise.mp3:
-Copyright (c) 2012 Samsung Electronics Co., Ltd. All right reserved.
-The above resource files are licensed under Creative Commons Attribution 3.0.
-Please see the LICENSE.CC-BY-3.0 for Creative Commons Attribution 3.0 terms and conditions.
diff --git a/common/tct-messaging-mms-tizen-tests/README b/common/tct-messaging-mms-tizen-tests/README
deleted file mode 100755 (executable)
index 0145eae..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-----------------------------------------------
-License
-----------------------------------------------
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Zou, Zoe <yananx.xu@intel.com>
-
-
-
-----------------------------------------------
-Introduction
-----------------------------------------------
-This test suite is for testing Tizen Messaging API, which covers the following specifications (only MMS part):
-https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-
-
-----------------------------------------------
-Test Environment
----------------------------------------------- 
-1. Testkit-stub must be installed on target device.
-2. Testkit-lite must be installed on test machine.
-
-
-----------------------------------------------
-Pre-condition
-----------------------------------------------
-1. A SIM card MUST be inserted for sending MMS messages.
-
-2. Mobile Data should be enabled
-    Launch 'Settings' application -> Select 'Network'
-    -> Turn on 'Mobile data' ('Use packet data')
-
-3. Before testing, you MUST change some variables defined in
-   messaging/support/messaging_common.js
-   for message recipients. Here's the variables to modify:
-
-TEST_SMS_RECIPIENT          MUST be set to phone number
-                            (different from the device under test and without country calling code)
-TEST_SMS_RECIPIENT_2        MUST be set to phone number
-                            (different from the device under test,
-                             different from TEST_SMS_RECIPIENT and without country calling code)
-
-
-----------------------------------------------
-Build and Run
-----------------------------------------------
-(Suppose you only get the source code and testkit-lite has been setup on your test machine
- if you have got tct-messaging-mms-tizen-tests ZIP packages, you can directly go to step 3 on testing machine;
- if you have not installed the testkit-lite, you need to install the latest version)
-
-Steps:
-1. Prepare for building by running the following command:
-   cd tct-messaging-mms-tizen-tests
-
-2. Build ZIP package by running the following command:
-   ./pack.sh
-
-3. Unzip the package on the test machine by running the following command:
-   unzip -o tct-messaging-mms-tizen-tests-<version>.zip -d /home/owner/share/tct
-
-4. Install the package on the test machine by running the following command:
-   /home/owner/share/tct/opt/tct-messaging-mms-tizen-tests/inst.sh
-
-5. Run test cases by running the following command on host:
-   testkit-lite -f device:/home/owner/share/tct/opt/tct-messaging-mms-tizen-tests/tests.xml -e "WRTLauncher" -o tct-messaging-mms-tizen-tests.results.xml
diff --git a/common/tct-messaging-mms-tizen-tests/askpolicy.sh b/common/tct-messaging-mms-tizen-tests/askpolicy.sh
deleted file mode 100755 (executable)
index 1c39bdd..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-for i in `grep -r "0xA" /var/cynara/db/_ | grep $1`
-do
-    CLIENT=`echo $i | cut -d ";" -f1`
-    USER=`echo $i | cut -d ";" -f2`
-    PRIVILEGE=`echo $i | cut -d ";" -f3`
-    #echo "cyad --erase=\"\" -r=no -c $CLIENT -u $USER -p $PRIVILEGE"
-    cyad --erase="" -r=no -c $CLIENT -u $USER -p $PRIVILEGE
-done
diff --git a/common/tct-messaging-mms-tizen-tests/config.xml b/common/tct-messaging-mms-tizen-tests/config.xml
deleted file mode 100755 (executable)
index f760d73..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<widget id='http://tizen.org/test/tct-messaging-mms-tizen-tests' xmlns='http://www.w3.org/ns/widgets' xmlns:tizen='http://tizen.org/ns/widgets' version='8.0'>
-  <access origin="*"/>
-  <name>tct-messaging-mms-tizen-tests</name>
-  <tizen:privilege name="http://tizen.org/privilege/messaging.read"/>
-  <tizen:privilege name="http://tizen.org/privilege/messaging.write"/>
-  <tizen:privilege name="http://tizen.org/privilege/filesystem.read"/>
-  <tizen:privilege name="http://tizen.org/privilege/filesystem.write"/>
-  <tizen:privilege name="http://tizen.org/privilege/mediastorage"/>
-  <tizen:privilege name="http://tizen.org/privilege/externalstorage"/>
-  <icon src="icon.png" height="117" width="117"/>
-  <tizen:application id="api1msg002.WebAPITizenMessagingMmsTests" package="api1msg002" required_version="8.0"/>
-  <tizen:setting screen-orientation="landscape" />
-  <tizen:setting background-support="enable"/>
-  <tizen:setting pointing-device-support="enable"/>
-</widget>
diff --git a/common/tct-messaging-mms-tizen-tests/icon.png b/common/tct-messaging-mms-tizen-tests/icon.png
deleted file mode 100755 (executable)
index aa50240..0000000
Binary files a/common/tct-messaging-mms-tizen-tests/icon.png and /dev/null differ
diff --git a/common/tct-messaging-mms-tizen-tests/inst.apk.py b/common/tct-messaging-mms-tizen-tests/inst.apk.py
deleted file mode 100755 (executable)
index d636bee..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import shutil
-import glob
-import time
-import sys
-import subprocess
-from optparse import OptionParser, make_option
-import configparser
-
-
-SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
-PARAMETERS = None
-ADB_CMD = "adb"
-
-
-def doCMD(cmd):
-    # Do not need handle timeout in this short script, let tool do it
-    print ("-->> \"%s\"" % cmd)
-    output = []
-    cmd_return_code = 1
-    cmd_proc = subprocess.Popen(
-        cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
-
-    while True:
-        output_line = cmd_proc.stdout.readline().decode("UTF-8").strip("\r\n")
-        cmd_return_code = cmd_proc.poll()
-        if output_line == '' and cmd_return_code != None:
-            break
-        sys.stdout.write("%s\n" % output_line)
-        sys.stdout.flush()
-        output.append(output_line)
-
-    return (cmd_return_code, output)
-
-
-def uninstPKGs():
-    action_status = True
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        for file in files:
-            if file.endswith(".apk"):
-                cmd = "%s -s %s uninstall org.xwalk.%s" % (
-                    ADB_CMD, PARAMETERS.device, os.path.basename(os.path.splitext(file)[0]))
-                (return_code, output) = doCMD(cmd)
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-    return action_status
-
-
-def instPKGs():
-    action_status = True
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        for file in files:
-            if file.endswith(".apk"):
-                cmd = "%s -s %s install %s" % (ADB_CMD,
-                                               PARAMETERS.device, os.path.join(root, file))
-                (return_code, output) = doCMD(cmd)
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-    return action_status
-
-
-def main():
-    try:
-        usage = "usage: inst.py -i"
-        opts_parser = OptionParser(usage=usage)
-        opts_parser.add_option(
-            "-s", dest="device", action="store", help="Specify device")
-        opts_parser.add_option(
-            "-i", dest="binstpkg", action="store_true", help="Install package")
-        opts_parser.add_option(
-            "-u", dest="buninstpkg", action="store_true", help="Uninstall package")
-        global PARAMETERS
-        (PARAMETERS, args) = opts_parser.parse_args()
-    except Exception as e:
-        print ("Got wrong option: %s, exit ..." % e)
-        sys.exit(1)
-
-    if not PARAMETERS.device:
-        (return_code, output) = doCMD("adb devices")
-        for line in output:
-            if str.find(line, "\tdevice") != -1:
-                PARAMETERS.device = line.split("\t")[0]
-                break
-
-    if not PARAMETERS.device:
-        print ("No device found")
-        sys.exit(1)
-
-    if PARAMETERS.binstpkg and PARAMETERS.buninstpkg:
-        print ("-i and -u are conflict")
-        sys.exit(1)
-
-    if PARAMETERS.buninstpkg:
-        if not uninstPKGs():
-            sys.exit(1)
-    else:
-        if not instPKGs():
-            sys.exit(1)
-
-if __name__ == "__main__":
-    main()
-    sys.exit(0)
diff --git a/common/tct-messaging-mms-tizen-tests/inst.wgt.py b/common/tct-messaging-mms-tizen-tests/inst.wgt.py
deleted file mode 100755 (executable)
index fd2e87d..0000000
+++ /dev/null
@@ -1,255 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import shutil
-import glob
-import time
-import sys
-import subprocess
-import string
-from optparse import OptionParser, make_option
-import configparser
-
-
-SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
-PKG_NAME = os.path.basename(SCRIPT_DIR)
-PARAMETERS = None
-#XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5000/dbus/user_bus_socket"
-TCT_CONFIG_FILE = "/opt/tools/TCT_CONFIG"
-tct_parser = configparser.ConfigParser()
-tct_parser.read(TCT_CONFIG_FILE)
-SRC_DIR = tct_parser.get('DEVICE', 'DEVICE_SUITE_TARGET_30')
-PKG_SRC_DIR = "%s/tct/opt/%s" % (SRC_DIR, PKG_NAME)
-EXECUTION_MODE_30 = tct_parser.get('DEVICE', 'DEVICE_EXECUTION_MODE_30')
-ADMIN_USER_30 = tct_parser.get('DEVICE', 'DEVICE_ADMIN_USER_30')
-
-def userCheck():
-    global GLOVAL_OPT
-    if ADMIN_USER_30 == EXECUTION_MODE_30:
-        GLOVAL_OPT="--global"
-    else:
-        GLOVAL_OPT=""
-
-
-def askpolicyremoving():
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        for file in files:
-            if file.endswith(".wgt"):
-                pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
-   
-    print (pkg_id)
-    print (os.getcwd())
-    print (os.path.dirname(os.path.realpath(__file__)) )
-    if not doRemoteCopy("%s/askpolicy.sh" % SCRIPT_DIR, "%s" % (SRC_DIR)):
-        action_status = False
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell .%s/askpolicy.sh %s" % (PARAMETERS.device, 
-        SRC_DIR, pkg_id)
-    return doCMD(cmd)
-       
-def doCMD(cmd):
-    # Do not need handle timeout in this short script, let tool do it
-    print ("-->> \"%s\"" % cmd)
-    output = []
-    cmd_return_code = 1
-    cmd_proc = subprocess.Popen(
-        cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
-
-    while True:
-        output_line = cmd_proc.stdout.readline().decode("UTF-8").strip("\r\n")
-        cmd_return_code = cmd_proc.poll()
-        if output_line == '' and cmd_return_code != None:
-            break
-        sys.stdout.write("%s\n" % output_line)
-        sys.stdout.flush()
-        output.append(output_line)
-
-    return (cmd_return_code, output)
-
-def updateCMD(cmd=None):
-    if "pkgcmd" in cmd:
-        cmd = "su - %s -c '%s;%s'" % (PARAMETERS.user, XW_ENV, cmd)
-    return cmd
-def getUSERID():
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell id -u %s" % (
-            PARAMETERS.device, PARAMETERS.user)
-    else:
-        cmd = "ssh %s \"id -u %s\"" % (
-            PARAMETERS.device, PARAMETERS.user )
-    return doCMD(cmd)
-
-
-def getPKGID(pkg_name=None):
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell %s" % (
-            PARAMETERS.device, updateCMD('pkgcmd -l'))
-    else:
-        cmd = "ssh %s \"%s\"" % (
-            PARAMETERS.device, updateCMD('pkgcmd -l'))
-
-    (return_code, output) = doCMD(cmd)
-    if return_code != 0:
-        return None
-
-    test_pkg_id = None
-    for line in output:
-        if line.find("[" + pkg_name + "]") != -1:
-            pkgidIndex = line.split().index("pkgid")
-            test_pkg_id = line.split()[pkgidIndex+1].strip("[]")
-            break
-    return test_pkg_id
-
-
-def doRemoteCMD(cmd=None):
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell %s" % (PARAMETERS.device, updateCMD(cmd))
-    else:
-        cmd = "ssh %s \"%s\"" % (PARAMETERS.device, updateCMD(cmd))
-
-    return doCMD(cmd)
-
-
-def doRemoteCopy(src=None, dest=None):
-    if PARAMETERS.mode == "SDB":
-        cmd_prefix = "sdb -s %s push" % PARAMETERS.device
-        cmd = "%s %s %s" % (cmd_prefix, src, dest)
-    else:
-        cmd = "scp -r %s %s:/%s" % (src, PARAMETERS.device, dest)
-
-    (return_code, output) = doCMD(cmd)
-    doRemoteCMD("sync")
-
-    if return_code != 0:
-        return True
-    else:
-        return False
-
-
-def uninstPKGs():
-    action_status = True
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        if root.endswith("mediasrc"):
-            continue
-
-        for file in files:
-            if file.endswith(".wgt"):
-                pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
-                if not pkg_id:
-                    action_status = False
-                    continue
-                (return_code, output) = doRemoteCMD(
-                    "pkgcmd %s -q -u -n %s" % (GLOVAL_OPT, pkg_id))
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-
-    (return_code, output) = doRemoteCMD(
-        "rm -rf %s" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-
-    (return_code, output) = doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, PKG_NAME))
-    if return_code != 0:
-        action_status = False
-
-    return action_status
-
-
-def instPKGs():
-    action_status = True
-    (return_code, output) = doRemoteCMD(
-        "mkdir -p %s" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        if root.endswith("mediasrc"):
-            continue
-
-        for file in files:
-            if file.endswith(".wgt"):
-                if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
-                    action_status = False
-                (return_code, output) = doRemoteCMD(
-                    "pkgcmd %s -i -t wgt -q -p %s/%s" % (GLOVAL_OPT, SRC_DIR, file))
-                doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, file))
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-
-
-    for item in os.listdir(SCRIPT_DIR):
-        if item.find("webapi-tizen-messaging-test_") != -1:
-            if not doRemoteCopy("%s/%s" % (SCRIPT_DIR, item), "%s/%s/%s" % (SRC_DIR, PKG_NAME, item)):
-                action_status = False
-
-    return action_status
-
-
-def main():
-    try:
-        usage = "usage: inst.py -i"
-        opts_parser = OptionParser(usage=usage)
-        opts_parser.add_option(
-            "-m", dest="mode", action="store", help="Specify mode")
-        opts_parser.add_option(
-            "-s", dest="device", action="store", help="Specify device")
-        opts_parser.add_option(
-            "-i", dest="binstpkg", action="store_true", help="Install package")
-        opts_parser.add_option(
-            "-u", dest="buninstpkg", action="store_true", help="Uninstall package")
-        opts_parser.add_option(
-            "-a", dest="user", action="store", help="User name")
-        global PARAMETERS
-        (PARAMETERS, args) = opts_parser.parse_args()
-    except Exception as e:
-        print ("Got wrong option: %s, exit ..." % e)
-        sys.exit(1)
-
-    if not PARAMETERS.user:
-        PARAMETERS.user = EXECUTION_MODE_30
-    if not PARAMETERS.mode:
-        PARAMETERS.mode = "SDB"
-
-    if PARAMETERS.mode == "SDB":
-        if not PARAMETERS.device:
-            (return_code, output) = doCMD("sdb devices")
-            for line in output:
-                if str.find(line, "\tdevice") != -1:
-                    PARAMETERS.device = line.split("\t")[0]
-                    break
-    else:
-        PARAMETERS.mode = "SSH"
-
-    if not PARAMETERS.device:
-        print ("No device provided")
-        sys.exit(1)
-
-    userCheck()
-
-    user_info = getUSERID()
-    re_code = user_info[0]
-    if re_code == 0 :
-        global XW_ENV
-        userid = user_info[1][0]
-        XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%s/dbus/user_bus_socket"%str(userid)
-    else:
-        print ("[Error] cmd commands error : %s" % str(user_info[1]))
-        sys.exit(1)
-    if PARAMETERS.binstpkg and PARAMETERS.buninstpkg:
-        print ("-i and -u are conflict")
-        sys.exit(1)
-
-    if PARAMETERS.buninstpkg:
-        if not uninstPKGs():
-            sys.exit(1)
-    else:
-        if not instPKGs():
-            #askpolicyremoving()
-            sys.exit(1)
-
-if __name__ == "__main__":
-    main()
-    sys.exit(0)
diff --git a/common/tct-messaging-mms-tizen-tests/inst.xpk.py b/common/tct-messaging-mms-tizen-tests/inst.xpk.py
deleted file mode 100755 (executable)
index 4cd2306..0000000
+++ /dev/null
@@ -1,227 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import shutil
-import glob
-import time
-import sys
-import subprocess
-import string
-from optparse import OptionParser, make_option
-import configparser
-
-
-SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
-PKG_NAME = os.path.basename(SCRIPT_DIR)
-PARAMETERS = None
-#XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5000/dbus/user_bus_socket"
-TCT_CONFIG_FILE = "/opt/tools/TCT_CONFIG"
-tct_parser = configparser.ConfigParser()
-tct_parser.read(TCT_CONFIG_FILE)
-SRC_DIR = tct_parser.get('DEVICE', 'DEVICE_SUITE_TARGET_30')
-PKG_SRC_DIR = "%s/tct/opt/%s" % (SRC_DIR, PKG_NAME)
-
-
-def doCMD(cmd):
-    # Do not need handle timeout in this short script, let tool do it
-    print ("-->> \"%s\"" % cmd)
-    output = []
-    cmd_return_code = 1
-    cmd_proc = subprocess.Popen(
-        cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
-
-    while True:
-        output_line = cmd_proc.stdout.readline().decode("UTF-8").strip("\r\n")
-        cmd_return_code = cmd_proc.poll()
-        if output_line == '' and cmd_return_code != None:
-            break
-        sys.stdout.write("%s\n" % output_line)
-        sys.stdout.flush()
-        output.append(output_line)
-
-    return (cmd_return_code, output)
-
-
-def updateCMD(cmd=None):
-    if "pkgcmd" in cmd:
-        cmd = "su - %s -c '%s;%s'" % (PARAMETERS.user, XW_ENV, cmd)
-    return cmd
-def getUSERID():
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell id -u %s" % (
-            PARAMETERS.device, PARAMETERS.user)
-    else:
-        cmd = "ssh %s \"id -u %s\"" % (
-            PARAMETERS.device, PARAMETERS.user )
-    return doCMD(cmd)
-
-
-
-
-def getPKGID(pkg_name=None):
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell %s" % (
-            PARAMETERS.device, updateCMD('pkgcmd -l'))
-    else:
-        cmd = "ssh %s \"%s\"" % (
-            PARAMETERS.device, updateCMD('pkgcmd -l'))
-
-    (return_code, output) = doCMD(cmd)
-    if return_code != 0:
-        return None
-
-    test_pkg_id = None
-    for line in output:
-        if line.find("[" + pkg_name + "]") != -1:
-            pkgidIndex = line.split().index("pkgid")
-            test_pkg_id = line.split()[pkgidIndex+1].strip("[]")
-            break
-    return test_pkg_id
-
-
-def doRemoteCMD(cmd=None):
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell %s" % (PARAMETERS.device, updateCMD(cmd))
-    else:
-        cmd = "ssh %s \"%s\"" % (PARAMETERS.device, updateCMD(cmd))
-
-    return doCMD(cmd)
-
-
-def doRemoteCopy(src=None, dest=None):
-    if PARAMETERS.mode == "SDB":
-        cmd_prefix = "sdb -s %s push" % PARAMETERS.device
-        cmd = "%s %s %s" % (cmd_prefix, src, dest)
-    else:
-        cmd = "scp -r %s %s:/%s" % (src, PARAMETERS.device, dest)
-
-    (return_code, output) = doCMD(cmd)
-    doRemoteCMD("sync")
-
-    if return_code != 0:
-        return True
-    else:
-        return False
-
-
-def uninstPKGs():
-    action_status = True
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        for file in files:
-            if file.endswith(".xpk"):
-                pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
-                if not pkg_id:
-                    action_status = False
-                    continue
-                (return_code, output) = doRemoteCMD(
-                    "pkgcmd -u -t xpk -q -n %s" % pkg_id)
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-
-    (return_code, output) = doRemoteCMD(
-        "rm -rf %s" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-
-    (return_code, output) = doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, PKG_NAME))
-    if return_code != 0:
-        action_status = False
-
-    return action_status
-
-
-def instPKGs():
-    action_status = True
-    (return_code, output) = doRemoteCMD(
-        "mkdir -p %s" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        for file in files:
-            if file.endswith(".xpk"):
-                if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
-                    action_status = False
-                (return_code, output) = doRemoteCMD(
-                    "pkgcmd -i -t xpk -q -p %s/%s" % (SRC_DIR, file))
-                doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, file))
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-
-    (return_code, output) = doRemoteCMD("mkdir -p %s/%s" % (SRC_DIR, PKG_NAME))
-    if return_code != 0:
-        action_status = False
-
-    for item in os.listdir(SCRIPT_DIR):
-        if item.find("webapi-tizen-appcontrol-test_") != -1:
-            if not doRemoteCopy("%s/%s" % (SCRIPT_DIR, item), "%s/%s/%s" % (SRC_DIR, PKG_NAME, item)):
-                action_status = False
-
-    return action_status
-
-
-def main():
-    try:
-        usage = "usage: inst.py -i"
-        opts_parser = OptionParser(usage=usage)
-        opts_parser.add_option(
-            "-m", dest="mode", action="store", help="Specify mode")
-        opts_parser.add_option(
-            "-s", dest="device", action="store", help="Specify device")
-        opts_parser.add_option(
-            "-i", dest="binstpkg", action="store_true", help="Install package")
-        opts_parser.add_option(
-            "-u", dest="buninstpkg", action="store_true", help="Uninstall package")
-        opts_parser.add_option(
-            "-a", dest="user", action="store", help="User name")
-        global PARAMETERS
-        (PARAMETERS, args) = opts_parser.parse_args()
-    except Exception as e:
-        print ("Got wrong option: %s, exit ..." % e)
-        sys.exit(1)
-
-    if not PARAMETERS.user:
-        PARAMETERS.user = "owner"
-    if not PARAMETERS.mode:
-        PARAMETERS.mode = "SDB"
-
-    if PARAMETERS.mode == "SDB":
-        if not PARAMETERS.device:
-            (return_code, output) = doCMD("sdb devices")
-            for line in output:
-                if str.find(line, "\tdevice") != -1:
-                    PARAMETERS.device = line.split("\t")[0]
-                    break
-    else:
-        PARAMETERS.mode = "SSH"
-
-    if not PARAMETERS.device:
-        print ("No device provided")
-        sys.exit(1)
-
-    user_info = getUSERID()
-    re_code = user_info[0]
-    if re_code == 0 :
-        global XW_ENV
-        userid = user_info[1][0]
-        XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%s/dbus/user_bus_socket"%str(userid)
-    else:
-        print ("[Error] cmd commands error : %s" % str(user_info[1]))
-        sys.exit(1)
-    if PARAMETERS.binstpkg and PARAMETERS.buninstpkg:
-        print ("-i and -u are conflict")
-        sys.exit(1)
-
-    if PARAMETERS.buninstpkg:
-        if not uninstPKGs():
-            sys.exit(1)
-    else:
-        if not instPKGs():
-            sys.exit(1)
-
-if __name__ == "__main__":
-    main()
-    sys.exit(0)
diff --git a/common/tct-messaging-mms-tizen-tests/manifest.json b/common/tct-messaging-mms-tizen-tests/manifest.json
deleted file mode 100755 (executable)
index 290fc1d..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-{
-    "version": "8.0",
-    "name": "tct-messaging-mms-tizen-tests",
-    "permissions": ["tabs", "unlimited_storage", "notifications", "http://*/*", "https://*/*"],
-    "description": "tct-messaging-mms-tizen-tests",
-    "webapimanager": true,
-    "file_name": "manifest.json",
-    "app": {
-        "launch": {
-            "local_path": "index.html"
-        }
-    }
-}
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_extend.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_extend.html
deleted file mode 100755 (executable)
index ab22950..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageBody_mms_extend</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBody_mms_extend
-//==== PRIORITY P3
-//==== LABEL Check if instance of interface MessageBody (MMS) can be extended with new property
-//==== 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
-
-test(function () {
-    var message, messageBody;
-
-    message = new tizen.Message("messaging.mms");
-    messageBody = message.body;
-
-    check_extensibility(messageBody);
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_loaded_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_loaded_attribute.html
deleted file mode 100755 (executable)
index b4d449f..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageBody_mms_loaded_attribute</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBody_mms_loaded_attribute
-//==== LABEL Check if attribute loaded of MessageBody (MMS) exists, has type Boolean and is readonly
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-    var message, messageBody, oldValue;
-
-    message = new tizen.Message("messaging.mms");
-    messageBody = message.body;
-
-    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");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_messageId_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_messageId_attribute.html
deleted file mode 100755 (executable)
index 5368887..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageBody_mms_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBody_mms_messageId_attribute
-//==== LABEL Check if attribute messageId of MessageBody (MMS) exists, has type MessageId and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:messageId A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA AE AT ARO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message, messageBody,
-    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;
-t.step(function () {
-
-    message = new tizen.Message("messaging.mms", {
-        subject: generateSubject(),
-        to: [TEST_SMS_RECIPIENT],
-        plainBody: "sample plainBody"
-    });
-
-    messageBody = message.body;
-
-    assert_own_property(messageBody, "messageId", "MessageBody does not own messageId property.");
-
-    addDraftSuccess = t.step_func(function () {
-        check_readonly(messageBody, "messageId", message.id, "string", "54321");
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_plainBody_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_plainBody_attribute.html
deleted file mode 100755 (executable)
index f5a475b..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageBody_mms_plainBody_attribute</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBody_mms_plainBody_attribute
-//==== LABEL Check if attribute plainBody of MessageBody (MMS) exists, has type DOMString
-//==== PRIORITY P1
-//==== 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 ASG AN
-
-test(function () {
-    var message, messageBody;
-
-    message = new tizen.Message("messaging.mms");
-    messageBody = message.body;
-
-    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 assigning null");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsremoved.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsremoved.html
deleted file mode 100755 (executable)
index 4b18f47..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversationsChangeCallback_mms_conversationsremoved</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageConversationsChangeCallback_mms_conversationsremoved
-//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, mms
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsremoved M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), i, listenerId,
-    serviceSuccess, serviceError, service, message,
-    removeAllSuccess, sendError, conversationChangeCB,
-    removeConversation, removeConversationError, removedConversationId;
-
-t.step(function () {
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    removeConversationError = t.step_func(function (error) {
-        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeConversation = t.step_func(function (conversations) {
-        assert_type(conversations, "array", "conversations");
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-        for (i = 0; i < conversations.length; i++) {
-            if (conversations[i].id === message.conversationId) {
-                removedConversationId = conversations[i].id;
-                service.messageStorage.removeConversations([conversations[i]], null, removeConversationError);
-                break;
-            }
-        }
-    });
-    
-    conversationChangeCB = {
-        conversationsadded: t.step_func(function (conversations) {
-            removeConversation(conversations);
-        }),
-        conversationsupdated: t.step_func(function (conversations) {
-            removeConversation(conversations);
-        }),       
-        conversationsremoved: t.step_func(function (conversations) {
-            assert_type(conversations, "array", "conversations");
-            assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            t.done();
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        listenerId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-
-        sendMessage(t, service, message, null, sendError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        removeAllMessages(t, service, removeAllSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsupdated.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsupdated.html
deleted file mode 100755 (executable)
index 3a41438..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversationsChangeCallback_mms_conversationsupdated</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageConversationsChangeCallback_mms_conversationsupdated
-//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, mms
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsupdated M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), i, listenerId,
-    serviceSuccess, serviceError, service, message1, message2,
-    removeAllSuccess, sendSuccess, sendError, conversationChangeCB;
-
-t.step(function () {
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    conversationChangeCB = {
-        conversationsupdated: t.step_func(function (conversations) {
-            assert_type(conversations, "array", "conversations");
-            assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (i = 0; i < conversations.length; i++) {
-                if (conversations[i].id === message2.conversationId) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        listenerId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);
-
-        message2 = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-
-        sendMessage(t, service, message2, null, sendError);
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        message1 = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-
-        sendMessage(t, service, message1, sendSuccess, sendError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        removeAllMessages(t, service, removeAllSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_mms.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_mms.html
deleted file mode 100755 (executable)
index b2aa467..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageInit_MessageInit_valid_argument_mms</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageInit_MessageInit_valid_argument_mms
-//==== LABEL Checks various message attributes upon message (mms) creation
-//==== PRIORITY P1
-//==== 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
-test(function () {
-    var mmsMsg;
-
-    mmsMsg = new tizen.Message("messaging.mms", {
-        subject: "Mms Message Test",
-        plainBody: "MMS Message Body",
-        to: [TEST_SMS_RECIPIENT]
-    });
-    assert_equals(mmsMsg.subject, "Mms Message Test", "MMS message creation failed.");
-    assert_equals(mmsMsg.to.length, 1, "MMS message creation failed.");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageServiceArraySuccessCallback_mms_onsuccess.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageServiceArraySuccessCallback_mms_onsuccess.html
deleted file mode 100755 (executable)
index 82745f3..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageServiceArraySuccessCallback_mms_onsuccess</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageServiceArraySuccessCallback_mms_onsuccess
-//==== LABEL Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for mms
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBOA CBT
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, i;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        assert_type(services, "array", "Not an array");
-
-        for(i = 0; i< services.length; i++){
-            assert_true("type" in services[i], "Name type doesn't exist in provided object.");
-            assert_equals(services[i].type, "messaging.mms", "Type is not equal mms");
-
-            assert_true("id" in services[i], "Name id doesn't exist in provided object.");
-            assert_true("name" in services[i], "Name name doesn't exist in provided object.");
-            assert_true("messageStorage" in services[i], "Name messageStorage doesn't exist in provided object.");
-            assert_type(services[i].sendMessage, "function", "Checking sendMessage of find");
-            assert_type(services[i].loadMessageBody, "function", "Checking loadMessageBody of find");
-            assert_type(services[i].loadMessageAttachment, "function", "Checking loadMessageAttachment of find");
-            assert_type(services[i].sync, "function", "Checking sync of find");
-            assert_type(services[i].syncFolder, "function", "Checking syncFolder of find");
-            assert_type(services[i].stopSync, "function", "Checking stopSync of find");
-        }
-        t.done();
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_extend.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_extend.html
deleted file mode 100755 (executable)
index 92de418..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_mms_extend</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_mms_extend
-//==== PRIORITY P3
-//==== LABEL Check if instance of interface MessageService (MMS) can be extended with new property
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:MessageService U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA OBX
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-
-        check_extensibility(messageService);
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageAttachment_exist.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageAttachment_exist.html
deleted file mode 100755 (executable)
index 75d1dc6..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_mms_loadMessageAttachment_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_mms_loadMessageAttachment_exist
-//==== LABEL Check if method loadMessageAttachment of MessageService (MMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        assert_true("loadMessageAttachment" in service, "No loadMessageAttachment method in service");
-        check_method_exists(service, "loadMessageAttachment");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_exist.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_exist.html
deleted file mode 100755 (executable)
index dccd23d..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_mms_loadMessageBody_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_mms_loadMessageBody_exist
-//==== LABEL Check if method loadMessageBody of MessageService (MMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        assert_true("loadMessageBody" in service, "No loadMessageBody method in service");
-        check_method_exists(service, "loadMessageBody");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_missarg_message.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_missarg_message.html
deleted file mode 100755 (executable)
index 6819b81..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-        Karol Surma <k.surma@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_mms_loadMessageBody_missarg_message</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_mms_loadMessageBody_missarg_message
-//==== LABEL Check with missing message argument - MessageService.loadMessageBody (mms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.loadMessageBody();
-        });
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_messageStorage_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_messageStorage_attribute.html
deleted file mode 100755 (executable)
index 984adf1..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_mms_messageStorage_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_mms_messageStorage_attribute
-//==== LABEL Check if attribute messageStorage of MessageService (MMS) exists, has type MessageStorage and is readonly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:messageStorage A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE AT ARO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, storage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        assert_true("messageStorage" in messagingService, "No 'messageStorage' attribute in messagingService");
-
-        messagingService.messageStorage = null;
-        assert_not_equals(messagingService.messageStorage, null, "messageStorage shouldn't be nullable");
-
-        storage = messagingService.messageStorage;
-        assert_type(storage.addDraftMessage, "function", "messageStorage.addDraftMessage() method not found");
-        assert_type(storage.findMessages, "function", "messageStorage.findMessages() method not found");
-        assert_type(storage.removeMessages, "function", "messageStorage.removeMessages() method not found");
-        assert_type(storage.updateMessages, "function", "messageStorage.updateMessages() method not found");
-        assert_type(storage.findConversations, "function", "messageStorage.findConversations() method not found");
-        assert_type(storage.removeConversations, "function", "messageStorage.removeConversations() method not found");
-        assert_type(storage.findFolders, "function", "messageStorage.findFolders() method not found");
-        assert_type(storage.addMessagesChangeListener, "function", "messageStorage.addMessagesChangeListener() method not found");
-        assert_type(storage.addConversationsChangeListener, "function",
-            "messageStorage.addConversationsChangeListener() method not found");
-        assert_type(storage.addFoldersChangeListener, "function", "messageStorage.addFoldersChangeListener() method not found");
-        assert_type(storage.removeChangeListener, "function", "messageStorage.removeChangeListener() method not found");
-
-        messagingService.nessageStorage = {};
-        assert_type(storage.addDraftMessage, "function", "Not read only - messageStorage.addDraftMessage() method not found");
-        assert_type(storage.findMessages, "function", "Not read only - messageStorage.findMessages() method not found");
-        assert_type(storage.removeMessages, "function", "Not read only - messageStorage.removeMessages() method not found");
-        assert_type(storage.updateMessages, "function", "Not read only - messageStorage.updateMessages() method not found");
-        assert_type(storage.findConversations, "function", "Not read only - messageStorage.findConversations() method not found");
-        assert_type(storage.removeConversations, "function", "Not read only - messageStorage.removeConversations() method not found");
-        assert_type(storage.findFolders, "function", "Not read only - messageStorage.findFolders() method not found");
-        assert_type(storage.addMessagesChangeListener, "function",
-            "Not read only - messageStorage.addMessagesChangeListener() method not found");
-        assert_type(storage.addConversationsChangeListener, "function",
-            "Not read only - messageStorage.addConversationsChangeListener() method not found");
-        assert_type(storage.addFoldersChangeListener, "function",
-            "Not read only - messageStorage.addFoldersChangeListener() method not found");
-        assert_type(storage.removeChangeListener, "function", "Not read only - messageStorage.removeChangeListener() method not found");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 393514a..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_mms_sendMessage_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_mms_sendMessage_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageService.sendMessage method (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,
-    sendSuccess, invalidErrorCallback, exceptionName, i, conversionTable;
-t.step(function () {
-
-    sendSuccess = t.step_func(function () {
-        assert_unreached("Success callback invoked.");
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        message = new tizen.Message("messaging.mms");
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for (i = 0 ; i < conversionTable.length ; i++) {
-            invalidErrorCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(
-                { name: exceptionName },
-                function () {
-                    messagingService.sendMessage(message, sendSuccess, invalidErrorCallback);
-                },
-                exceptionName + " should be thrown - invalid error callback: " + invalidErrorCallback + "."
-            );
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_invalid_cb.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index f489fc1..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_mms_sendMessage_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_mms_sendMessage_errorCallback_invalid_cb
-//==== LABEL Check if MessageService.sendMessage method throws exception when errorCallback is invalid
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,
-    sendSuccess, invalidErrorCallback, exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    invalidErrorCallback = {
-        onerror: t.step_func(function (error) {
-            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);
-        })
-    };
-
-    sendSuccess = t.step_func(function (recipients) {
-        assert_unreached("Success callback invoked.");
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        message = new tizen.Message("messaging.mms");
-        assert_throws(
-            { name: exceptionName },
-            function () {
-                messagingService.sendMessage(message, sendSuccess, invalidErrorCallback);
-            },
-            exceptionName + " should be thrown - invalid error callback."
-        );
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_exist.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_exist.html
deleted file mode 100755 (executable)
index f830a17..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_mms_sendMessage_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_mms_sendMessage_exist
-//==== LABEL Check if method sendMessage of MessageService (MMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        assert_true("sendMessage" in service, "No sendMessage method in service");
-        check_method_exists(service, "sendMessage");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_TypeMismatch.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_TypeMismatch.html
deleted file mode 100755 (executable)
index 9121236..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_mms_sendMessage_message_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_mms_sendMessage_message_TypeMismatch
-//==== LABEL Check type conversions for message argument of MessageService.sendMessage method (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, sendSuccess,
-    sendError, incorrectMessage, exceptionName, i, conversionTable;
-t.step(function () {
-
-    sendSuccess = t.step_func(function (recipients) {
-        assert_unreached("Success callback invoked");
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        conversionTable = getTypeConversionExceptions("functionObject", false);
-        for (i = 0 ; i < conversionTable.length ; i++) {
-            incorrectMessage = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(
-                { name: exceptionName },
-                function () {
-                    messagingService.sendMessage(incorrectMessage, sendSuccess, sendError);
-                },
-                exceptionName + " should be thrown - incorrectly created message: " + incorrectMessage + "."
-            );
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_invalid_obj.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_invalid_obj.html
deleted file mode 100755 (executable)
index 2e49073..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_mms_sendMessage_message_invalid_obj</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_mms_sendMessage_message_invalid_obj
-//==== LABEL Check if MessageService.sendMessage method throws exception when message is invalid (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, sendSuccess,
-    sendError, fakeMessage, exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    sendSuccess = t.step_func(function (recipients) {
-        assert_unreached("Success callback invoked");
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        fakeMessage = {
-            id: "1",
-            conversationId: null,
-            folderId: null,
-            type: "messaging.mms",
-            timestamp: null,
-            from: null,
-            to: [ TEST_SMS_RECIPIENT ],
-            body: {
-                messageId: "1",
-                loaded: true,
-                plainBody: "Sample content"
-            },
-            isRead: false,
-            hasAttachment: false,
-            subject: "",
-            inResponseTo: null,
-            messageStatus: "",
-            attachments: []
-        };
-
-        assert_throws(
-            { name: exceptionName },
-            function () {
-                messagingService.sendMessage(fakeMessage, sendSuccess, sendError);
-            },
-            exceptionName + " should be thrown - incorrectly created message."
-        );
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_missarg.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_missarg.html
deleted file mode 100755 (executable)
index d26b063..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_mms_sendMessage_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_mms_sendMessage_missarg
-//==== LABEL Check with missing non-optional argument - MessageService.sendMessage (mms)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        assert_throws(
-            { name: exceptionName },
-            function () {
-                messagingService.sendMessage();
-            },
-            exceptionName + " should be thrown - missing message."
-        );
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_TypeMismatch.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index e2f492e..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_mms_sendMessage_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_mms_sendMessage_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageService.sendMessage method (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,
-    sendError, invalidSuccessCallback, exceptionName, i, conversionTable;
-t.step(function () {
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        message = new tizen.Message("messaging.mms");
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for (i = 0 ; i < conversionTable.length ; i++) {
-            invalidSuccessCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(
-                { name: exceptionName },
-                function () {
-                    messagingService.sendMessage(message, invalidSuccessCallback, sendError);
-                },
-                exceptionName + " should be thrown - invalid success callback: " + invalidSuccessCallback + "."
-            );
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_invalid_cb.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 428638a..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_mms_sendMessage_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_mms_sendMessage_successCallback_invalid_cb
-//==== LABEL Check if MessageService.sendMessage method throws exception when successCallback is invalid (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,
-    sendError, invalidSuccessCallback, exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    invalidSuccessCallback = {
-        onsuccess: t.step_func(function (recipients) {
-            assert_unreached("Invalid success callback invoked");
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        message = new tizen.Message("messaging.mms");
-        assert_throws(
-            { name: exceptionName },
-            function () {
-                messagingService.sendMessage(message, invalidSuccessCallback, sendError);
-            },
-            exceptionName + " should be thrown - invalid success callback."
-        );
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_type_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_type_attribute.html
deleted file mode 100755 (executable)
index 756ffa1..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_mms_type_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_mms_type_attribute
-//==== LABEL Check if attribute type of MessageService (MMS) exists, has type MessageServiceTag and is readonly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService: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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        assert_true("type" in service, "No 'type' attribute in service");
-        assert_type(service.type, "string", "service.type is not string");
-        check_readonly(service, "type", "messaging.mms", "string", "messaging.email");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageService_sendMessage_mms_without_callbacks.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageService_sendMessage_mms_without_callbacks.html
deleted file mode 100755 (executable)
index 3805d95..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-<head>
-<title>MessageService_sendMessage_mms_without_callbacks</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageService_sendMessage_mms_without_callbacks
-//==== LABEL Check if MessageService.sendMessage method works properly without callbacks (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), onSuccess, message;
-t.step(function () {
-
-    message = new tizen.Message("messaging.mms", {
-        plainBody: "I will arrive in 10 minutes.",
-        to: [TEST_SMS_RECIPIENT]
-    });
-
-    onSuccess = t.step_func(function (services) {
-        assert_type(services, "array", "type of services is not Array");
-        assert_true(services.length > 0, "No messaging.mms service");
-        services[0].sendMessage(message);
-        t.done();
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", onSuccess);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_body_valid.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_body_valid.html
deleted file mode 100755 (executable)
index 329bd5f..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_filter_body_valid</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_findMessages_filter_body_valid
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by plainBody
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    bodyFilter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", "mms text"),
-    mmsService, findSuccess, findError, addSuccess, serviceSuccess,
-    serviceError, i, initDict;
-t.step(function () {
-
-    findSuccess = t.step_func(function (messages) {
-        assert_true(messages.length > 0, "No messages found");
-        for(i = 0; i < messages.length; i++) {
-            assert_regexp_match(messages[i].body.plainBody, /mms text/i, "Incorrect body.plainBody.");
-        }
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function (msg) {
-        mmsService.messageStorage.findMessages(bodyFilter, findSuccess, findError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        mmsService = services[0];
-
-        initDict = {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "This is a mms text."
-        };
-
-        addMMSDraft(t, mmsService, initDict, addSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_folderId_valid.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_folderId_valid.html
deleted file mode 100755 (executable)
index cf0c7ba..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_filter_folderId_valid</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_findMessages_filter_folderId_valid
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by folderId equal to 3
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, addSuccess, findSuccess,
-    findError, filter, mmsService;
-t.step(function () {
-
-    findSuccess = t.step_func(function (messages) {
-        t.done();
-    });
-
-    findError = t.step_func(function (err) {
-        assert_unreached("Could not find message: " + err.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        // The folderId of DRAFTS folder is 3
-        filter = new tizen.AttributeFilter("folderId", "EXACTLY", "3");
-        mmsService.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_equals(services.length, 1, "One service should be received");
-        assert_equals(services[0].type, "messaging.mms", "Service type is incorrect");
-
-        mmsService = services[0];
-        addMMSDraft(t, mmsService, {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        }, addSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("Service error: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_from_valid.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_from_valid.html
deleted file mode 100755 (executable)
index c9e37fb..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_filter_from_valid</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_findMessages_filter_from_valid
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by from (mms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), msg, sendSuccess, sendError, filter, findSuccess, findError,
-    serviceSuccess, serviceError, mmsService;
-t.step(function () {
-
-    findSuccess = t.step_func(function (messages) {
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function (messages) {
-        mmsService.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_equals(services.length, 1, "One service should be received");
-        assert_equals(services[0].type, "messaging.mms", "Service type is incorrect");
-
-        mmsService = services[0];
-
-        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-
-        msg = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        sendMessage(t, mmsService, msg, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_hasAttachment_valid.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_hasAttachment_valid.html
deleted file mode 100755 (executable)
index 3c78e98..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_filter_hasAttachment_valid</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_findMessages_filter_hasAttachment_valid
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by hasAttachment equal to false
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    mmsService, serviceError, serviceSuccess, addError, addSuccess, findError, findSuccess,
-    hasAttachmentFilter = new tizen.AttributeFilter("hasAttachment", "EXACTLY", false);
-t.step(function () {
-
-    findSuccess = t.step_func(function (messages) {
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        mmsService.messageStorage.findMessages(hasAttachmentFilter, findSuccess, findError);
-    });
-
-    addError = t.step_func(function (error) {
-        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");
-        mmsService = services[0];
-        addMMSDraft(t, mmsService, {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        }, addSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_isRead_valid.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_isRead_valid.html
deleted file mode 100755 (executable)
index 460d626..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_filter_isRead_valid</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_findMessages_filter_isRead_valid
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by isRead equal to true
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    mmsService, readFilter = new tizen.AttributeFilter("isRead", "EXACTLY", true),
-    serviceError, serviceSuccess, addError, addSuccess, findError, findSuccess,
-    msg;
-t.step(function () {
-    findSuccess = t.step_func(function (messages) {
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        mmsService.messageStorage.findMessages(readFilter, findSuccess, findError);
-    });
-
-    addError = t.step_func(function (error) {
-        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");
-        mmsService = services[0];
-
-        msg = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        msg.isRead = true;
-
-        mmsService.messageStorage.addDraftMessage(msg, addSuccess, addError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_mms_valid.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_mms_valid.html
deleted file mode 100755 (executable)
index 6dd3040..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_filter_mms_valid</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_findMessages_filter_mms_valid
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by type
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), findSuccess, findError,
-    serviceSuccess, serviceError, service, addSuccess;
-t.step(function () {
-
-    findSuccess = t.step_func(function (messages) {
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        service.messageStorage.findMessages(MMStypeFilter, findSuccess, findError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        addMMSDraft(t, service, {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        }, addSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_subject_valid.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_subject_valid.html
deleted file mode 100755 (executable)
index 5401185..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_filter_subject_valid</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_findMessages_filter_subject_valid
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by subject (mms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), mmsService,
-    subject, subjectFilter, addedMessage, findSuccess, findError,
-    serviceSuccess, serviceError, returnedValue = null, addSuccess;
-
-t.step(function () {
-
-    findSuccess = t.step_func(function (messages) {
-        assert_equals(messages.length, 1, "Incorrect number of messages");
-        assert_equals(messages[0].id, addedMessage.id, "Incorrect message.id");
-        assert_equals(messages[0].subject, subject, "Incorrect message.subject");
-
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function (message) {
-        addedMessage = message;
-        subjectFilter = new tizen.AttributeFilter("subject", "EXACTLY", subject);
-        returnedValue = mmsService.messageStorage.findMessages(subjectFilter, findSuccess, findError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        mmsService = services[0];
-
-        subject = generateSubject();
-
-        addMMSDraft(t, mmsService, {
-            subject: subject,
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        }, addSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_timestamp_valid.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_timestamp_valid.html
deleted file mode 100755 (executable)
index e3617fb..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_filter_timestamp_valid</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_findMessages_filter_timestamp_valid
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by timestamp
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), findSuccess, findError, serviceSuccess, serviceError,
-    returnedValue = null, i, msg, dateTime, before, after, filter, mmsService, sendSuccess, sendError;
-t.step(function () {
-
-    findSuccess = t.step_func(function (messages) {
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-        for (i = 0; i < messages.length; i++) {
-            assert_greater_than_equal(messages[i].timestamp.getFullYear(), dateTime.getFullYear(), "Incorrect year");
-            assert_less_than_equal(messages[i].timestamp.getFullYear(), dateTime.getFullYear() + 1, "Incorrect year");
-        }
-
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        dateTime = tizen.time.getCurrentDateTime();
-        before = new Date(dateTime.getFullYear(), dateTime.getMonth(), dateTime.getDate());
-        after = new Date(dateTime.getFullYear() + 1, dateTime.getMonth(), dateTime.getDate());
-        filter = new tizen.AttributeRangeFilter("timestamp", before, after);
-
-        returnedValue = mmsService.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_equals(services.length, 1, "One service should be received");
-        assert_equals(services[0].type, "messaging.mms", "Service type is incorrect");
-
-        mmsService = services[0];
-
-        msg = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        sendMessage(t, mmsService, msg, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_to_valid.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_to_valid.html
deleted file mode 100755 (executable)
index 0500989..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_filter_to_valid</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_findMessages_filter_to_valid
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by to
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceError, serviceSuccess, addSuccess, findSuccess,
-    findError, foundAddedMessage = 0, addedMessage, mmsService, toFilter, i;
-t.step(function () {
-
-
-    findSuccess = t.step_func(function (messages) {
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-        for(i = 0; i < messages.length; i++) {
-            assert_in_array(TEST_SMS_RECIPIENT, messages[i].to, "Recipient is not present.");
-            if (messages[i].id === addedMessage.id) {
-                foundAddedMessage++;
-            }
-        }
-        assert_equals(foundAddedMessage, 1, "Found invalid number of message");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function (message) {
-        addedMessage = message;
-        toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-        mmsService.messageStorage.findMessages(toFilter, findSuccess, findError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        mmsService = services[0];
-
-        addMMSDraft(t, mmsService, {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        }, addSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 78b3dda..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch
-//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)
-//==== 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
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    incorrectChangeListener, exceptionName, i, conversionTable;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        conversionTable = getTypeConversionExceptions("object", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectChangeListener  = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.addConversationsChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");
-        }
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 0399938..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb
-//==== LABEL Check if MessageStorage.addConversationChangeListener method throws exception when conversationsChangeCallback is invalid (mms)
-//==== 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
-//==== TEST_CRITERIA MTL
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    incorrectListeners, i, exceptionName, incorrectChangeListener;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        incorrectListeners = getListenerConversionExceptions(["conversationsadded", "conversationsupdated", "conversationsremoved"]);
-        for(i = 0; i < incorrectListeners.length; i++) {
-            incorrectChangeListener = incorrectListeners[i][0];
-            exceptionName = incorrectListeners[i][1];
-
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.addConversationsChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener.");
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_exist.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_exist.html
deleted file mode 100755 (executable)
index 77ec2b5..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addConversationsChangeListener_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addConversationsChangeListener_exist
-//==== LABEL Check if method addConversationsChangeListener of MessageStorage (MMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== 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
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("addConversationsChangeListener" in messageStorage, "No addConversationsChangeListener method in messageStorage");
-        check_method_exists(messageStorage, "addConversationsChangeListener");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage.html
deleted file mode 100755 (executable)
index 05520d4..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addDraftMessage</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addDraftMessage
-//==== LABEL Check if MessageStorage.addDraftMessage method works properly (mms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MOA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",
-    returnedValue = null, addDraftSuccess, addDraftError, filter, findMessagesSuccess, findMessagesError;
-t.step(function () {
-
-    findMessagesSuccess = t.step_func(function (messages) {
-        assert_equals(messages.length, 1, "Received incorrect number of messages");
-        assert_equals(messages[0].subject, subjectToSet, "subject attribute is incorrect.");
-        assert_equals(messages[0].body.plainBody, plainBodyToSet, "plainBody attribute is incorrect.");
-
-        t.done();
-    });
-
-    findMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value.");
-        filter = new tizen.AttributeFilter("subject", "EXACTLY", subjectToSet);
-        messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});
-        returnedValue = messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index f4c56f8..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",
-    addDraftSuccess, conversionTable, i, exceptionName, incorrectCallback;
-t.step(function () {
-
-    addDraftSuccess = t.step_func(function () {
-        assert_unreached("addDraftMessage() success callback invoked.");
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet});
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 1eab022..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb
-//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",
-    addDraftSuccess, incorrectCallback, exceptionName = "TypeMismatchError";
-t.step(function () {
-
-
-    addDraftSuccess = t.step_func(function () {
-        assert_unreached("addDraftMessage() success callback invoked.");
-    });
-
-    incorrectCallback = {
-        onerror: t.step_func(function (error) {
-            assert_unreached("addDraftMessage() incorrect error callback invoked: 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;
-
-        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet});
-        assert_throws({name: exceptionName},
-            function () {
-                messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_exist.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_exist.html
deleted file mode 100755 (executable)
index ba156f2..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addDraftMessage_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addDraftMessage_exist
-//==== LABEL Check if method addDraftMessage of MessageStorage (MMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("addDraftMessage" in messageStorage, "No addDraftMessage method in messageStorage");
-        check_method_exists(messageStorage, "addDraftMessage");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html
deleted file mode 100755 (executable)
index 23105cd..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addDraftMessage_message_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addDraftMessage_message_TypeMismatch
-//==== LABEL Check type conversions for message argument of MessageStorage.addDraftMessage method (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    incorrectMessage, conversionTable, i, exceptionName, addDraftSuccess, addDraftError;
-t.step(function () {
-
-    addDraftSuccess = t.step_func(function () {
-        assert_unreached("addDraftMessage success callback invoked.");
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        conversionTable = getTypeConversionExceptions("object", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectMessage = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.addDraftMessage(incorrectMessage, addDraftSuccess, addDraftError);
-                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessage);
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_invalid_obj.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_invalid_obj.html
deleted file mode 100755 (executable)
index c99e53f..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addDraftMessage_message_invalid_obj</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addDraftMessage_message_invalid_obj
-//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when message is invalid (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    fakeMessage, exceptionName = "TypeMismatchError", addDraftSuccess, addDraftError;
-t.step(function () {
-
-    addDraftSuccess = t.step_func(function () {
-        assert_unreached("addDraftMessage success callback invoked.");
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        fakeMessage = {
-            id: "123456",
-            conversationId: null,
-            folderId: null,
-            type: "messaging.mms",
-            timestamp: null,
-            from: null,
-            to: [ TEST_SMS_RECIPIENT ],
-            body: {
-                messageId: "123456",
-                loaded: true,
-                plainBody: "Sample content"
-            },
-            isRead: false,
-            hasAttachment: false,
-            subject: "",
-            inResponseTo: null,
-            messageStatus: "",
-            attachments: []
-        };
-
-        assert_throws({name: exceptionName},
-        function () {
-            messageStorage.addDraftMessage(fakeMessage, addDraftSuccess, addDraftError);
-        }, exceptionName + " should be thrown - given incorrect Message");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_missarg.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_missarg.html
deleted file mode 100755 (executable)
index b199cf0..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addDraftMessage_missarg</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addDraftMessage_missarg
-//==== LABEL Check with missing non-optional argument - MessageStorage.addDraftMessage (mms)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_throws({name: exceptionName}, function () {
-            messageStorage.addDraftMessage();
-        }, exceptionName + " should be thrown - missing argument");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 8e6fa8c..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",
-    incorrectCallback, addDraftError, conversionTable, exceptionName, i;
-t.step(function () {
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet});
-
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);
-            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-        }
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 2459022..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addDraftMessage_successCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addDraftMessage_successCallback_invalid_cb
-//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",
-    incorrectCallback, addDraftError, exceptionName = "TypeMismatchError";
-t.step(function () {
-
-
-    incorrectCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("addDraftMessage() success callback invoked.");
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet});
-        assert_throws({name: exceptionName}, function () {
-            messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);
-        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_errorCallback.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_errorCallback.html
deleted file mode 100755 (executable)
index c5f0f83..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addDraftMessage_without_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addDraftMessage_without_errorCallback
-//==== LABEL Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (mms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MOA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",
-    returnedValue = null, addDraftSuccess, filter, findMessagesSuccess, findMessagesError;
-t.step(function () {
-
-    findMessagesSuccess = t.step_func(function (messages) {
-        assert_equals(messages.length, 1, "Received incorrect number of messages");
-        assert_equals(messages[0].subject, subjectToSet, "subject attribute is incorrect.");
-        assert_equals(messages[0].body.plainBody, plainBodyToSet, "plainBody attribute is incorrect.");
-        t.done();
-    });
-
-    findMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("subject", "EXACTLY", subjectToSet);
-        messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);
-
-        assert_equals(returnedValue, undefined, "Incorrect returned value.");
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});
-        returnedValue = messageStorage.addDraftMessage(message, addDraftSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_successCallback.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_successCallback.html
deleted file mode 100755 (executable)
index 4d1f110..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addDraftMessage_without_successCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addDraftMessage_without_successCallback
-//==== LABEL Check if MessageStorage.addDraftMessage method works properly without successCallback argument (mms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",
-    returnedValue = null, removeAllSuccess;
-t.step(function () {
-
-    removeAllSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});
-        setTimeout(
-            t.step_func(function () {
-                returnedValue = messageStorage.addDraftMessage(message);
-                assert_equals(returnedValue, undefined, "Incorrect returned value.");
-                removeAllMessages(t, messageService, removeAllSuccess);
-            }), 10000);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_exist.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_exist.html
deleted file mode 100755 (executable)
index 439bde3..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addFoldersChangeListener_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addFoldersChangeListener_exist
-//==== LABEL Check if method addFoldersChangeListener of MessageStorage (MMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("addFoldersChangeListener" in messageStorage, "No addFoldersChangeListener method in messageStorage");
-        check_method_exists(messageStorage, "addFoldersChangeListener");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 69abc2d..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Zhao Dong<dong82.zhao@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb
-//==== LABEL Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (mms)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTL
-
-setup({timeout: 300000});
-
-var t = async_test(document.title, {timeout: 300000}),
-    serviceSuccess, serviceError, incorrectListeners, folderChangeListener, i, exceptionName, filter;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (services) {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services.id);
-
-        incorrectListeners = getListenerConversionExceptions(["foldersadded", "foldersupdated", "foldersremoved"]);
-
-        for (i = 0; i < incorrectListeners.length; i++) {
-            folderChangeListener  = incorrectListeners[i][0];
-            exceptionName = incorrectListeners[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                services[0].messageStorage.addFoldersChangeListener(folderChangeListener, filter);
-            }, exceptionName + " should be thrown - given incorrect successCallback.");
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMmsService() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_exist.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_exist.html
deleted file mode 100755 (executable)
index d1195cf..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addMessagesChangeListener_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addMessagesChangeListener_exist
-//==== LABEL Check if method addMessagesChangeListener of MessageStorage (MMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("addMessagesChangeListener" in messageStorage, "No addMessagesChangeListener method in messageStorage");
-        check_method_exists(messageStorage, "addMessagesChangeListener");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html
deleted file mode 100755 (executable)
index 9a394a6..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch
-//==== LABEL Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    changeCallback, conversionTable, incorrectFilter, exceptionName, i;
-t.step(function () {
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_unreached("memssagesadded callback invoked.");
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_unreached("memssagesupdated callback invoked.");
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_unreached("messagesremoved callback invoked.");
-        })
-    };
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        conversionTable = getTypeConversionExceptions("object", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectFilter = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName}, function () {
-                messageStorage.addMessagesChangeListener(changeCallback, incorrectFilter);
-            }, exceptionName + " should be thrown - given incorrect filter: " + incorrectFilter);
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 1b04b77..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch
-//==== LABEL Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    incorrectChangeListener, exceptionName, i, conversionTable;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-
-        conversionTable = getTypeConversionExceptions("object", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectChangeListener  = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.addMessagesChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");
-        }
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html
deleted file mode 100755 (executable)
index a04e1e7..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb
-//==== LABEL Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTL
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    incorrectListeners, incorrectChangeListener, exceptionName, i;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        incorrectListeners = getListenerConversionExceptions(["messagesadded", "messagesupdated", "messagesremoved"]);
-        for(i = 0; i < incorrectListeners.length; i++) {
-            incorrectChangeListener = incorrectListeners[i][0];
-            exceptionName = incorrectListeners[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.addMessagesChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener.");
-        }
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_missarg.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_missarg.html
deleted file mode 100755 (executable)
index 48ea1d4..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addMessagesChangeListener_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addMessagesChangeListener_missarg
-//==== LABEL Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (mms)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_throws({name: exceptionName},
-            function () {
-                messageStorage.addMessagesChangeListener();
-            }, exceptionName + " should be thrown - missing argument.");
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_with_filter.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_with_filter.html
deleted file mode 100755 (executable)
index d2c8373..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addMessagesChangeListener_with_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addMessagesChangeListener_with_filter
-//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly with filter (mms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MAST MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),
-    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),
-    mismatchPlainBodyToSet = currentDate.getTime().toString(),
-    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },
-    matchInitDict = initDict, mismatchInitDict = initDict,
-    matchMessage, mismatchMessage, changeCallback, addDraftError, loadSuccess, loadError;
-t.step(function () {
-
-    add_result_callback(function (res) {
-        try {
-            messageStorage.removeChangeListener(subscriptionIdentifier);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    loadSuccess = t.step_func(function (loadedMessage) {
-        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");
-        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");
-        t.done();
-    });
-
-    loadError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_type(addedMessages, "array", "Not an array.");
-            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);
-            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");
-            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_unreached("memssagesupdated callback invoked.");
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_unreached("messagesremoved callback invoked.");
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);
-        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);
-        assert_type(subscriptionIdentifier, "long", "Incorrect returned value.");
-
-        mismatchInitDict.plainBody = mismatchPlainBodyToSet;
-        mismatchMessage = new tizen.Message("messaging.mms", mismatchInitDict);
-        messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);
-
-        matchInitDict.plainBody = matchPlainBodyToSet;
-        matchMessage = new tizen.Message("messaging.mms", matchInitDict);
-        messageStorage.addDraftMessage(matchMessage, null, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_without_filter.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_without_filter.html
deleted file mode 100755 (executable)
index d11425e..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addMessagesChangeListener_without_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addMessagesChangeListener_without_filter
-//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly without filter (mms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MMINA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, message, changeCallback, addDraftError, loadSuccess, loadError, i, plainBody = "sample plainBody";
-t.step(function () {
-
-    add_result_callback(function (res) {
-        try {
-            if (subscriptionIdentifier) {
-                messageStorage.removeChangeListener(subscriptionIdentifier);
-            }
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    loadSuccess = t.step_func(function (loadedMessage) {
-        assert_equals(loadedMessage.body.plainBody, plainBody, "Incorrect plainBody.");
-        assert_equals(loadedMessage.id, message.id, "Incorrect id.");
-        t.done();
-    });
-
-    loadError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_type(addedMessages, "array", "Not an array.");
-            assert_greater_than(addedMessages.length, 0, "Received empty messages array");
-
-            for (i = 0; i < addedMessages.length; i++) {
-                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");
-                if (addedMessages[i].id === message.id) {
-                    messageStorage.removeChangeListener(subscriptionIdentifier);
-                    messageService.loadMessageBody(addedMessages[i], loadSuccess, loadError);
-                    break;
-                }
-            }
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);
-        assert_type(subscriptionIdentifier, "long", "Incorrect returned value.");
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: plainBody
-        });
-
-        messageStorage.addDraftMessage(message, null, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_extend.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_extend.html
deleted file mode 100755 (executable)
index 7a5f64b..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_extend</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_extend
-//==== PRIORITY P3
-//==== LABEL Check if instance of interface MessageStorage (MMS) can be extended with new property
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA OBX
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        check_extensibility(messageStorage);
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_exist.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_exist.html
deleted file mode 100755 (executable)
index 53fb75b..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_findConversations_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_findConversations_exist
-//==== LABEL Check if method findConversations of MessageStorage (MMS) exists
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("findConversations" in messageStorage, "No findConversations method in messageStorage");
-        check_method_exists(messageStorage, "findConversations");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (e) {
-        assert_unreached("getMessageServices() error callback: name:" + e.name + ", msg:" + e.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_from.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_from.html
deleted file mode 100755 (executable)
index e02deb9..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_mms_findConversations_filter_from</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_mms_findConversations_filter_from
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter by from (mms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    returnedValue = null, findSuccess, fromFound, findError, addSuccess, addError,
-    serviceSuccess, service, datetime, message, messageStorage, serviceError, i;
-t.step(function () {
-
-    findSuccess = t.step_func(function (conversations) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        for (i = 0; i < conversations.length; i++) {
-            assert_not_equals(conversations[i].from, null, "from is null");
-            fromFound = conversations[i].from.indexOf(TEST_SMS_RECIPIENT);
-            assert_greater_than_equal(fromFound, 0, "Recipient not found");
-        }
-
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        returnedValue = service.messageStorage.findConversations(fromFilter, findSuccess, findError);
-    });
-
-    addError = t.step_func(function (error) {
-        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");
-        service = services[0];
-
-        datetime = new Date().getTime().toString();
-        message = new tizen.Message("messaging.mms", {
-            plainBody: datetime,
-            to: [ TEST_SMS_RECIPIENT ]
-        });
-
-        messageStorage = service.messageStorage;
-        service.messageStorage.addDraftMessage(message, addSuccess, addError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_id.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_id.html
deleted file mode 100755 (executable)
index 47064af..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_mms_findConversations_filter_id</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_mms_findConversations_filter_id
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter by id (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, service, message, addError, addSuccess,
-    idFilter, returnedValue = null, findError, findSuccess;
-t.step(function () {
-
-    findSuccess = t.step_func(function (conversations) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_type(conversations, "array", "conversation is not an array");
-        assert_equals(conversations.length, 1, "Found many conversation for given id");
-
-        assert_equals(conversations[0].id, message.conversationId, "Incorrect conversation id");
-
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        assert_type(message.conversationId, "string", "Message.conversationId is not a string");
-        assert_not_equals(message.conversationId, "", "Message.conversationId is empty");
-
-        idFilter = new tizen.AttributeFilter("id", "EXACTLY", message.conversationId);
-        returnedValue = service.messageStorage.findConversations(idFilter, findSuccess, findError);
-    });
-
-    addError = t.step_func(function (error) {
-        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");
-        service = services[0];
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-
-        service.messageStorage.addDraftMessage(message, addSuccess, addError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_messageCount.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_messageCount.html
deleted file mode 100755 (executable)
index 501e948..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_mms_findConversations_filter_messageCount</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_mms_findConversations_filter_messageCount
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter by messageCount (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, service, message, sendError, sendSuccess, messageCountFilter,
-    returnedValue = null, findError, findSuccess, i;
-t.step(function () {
-
-    findSuccess = t.step_func(function (conversations) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_type(conversations, "array", "Not an array");
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-        for(i = 0; i < conversations.length; i++) {
-            assert_type(conversations[i].messageCount, "unsigned long", "messageCount is not unsigned long");
-        }
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        messageCountFilter = new tizen.AttributeFilter("messageCount", "EXISTS");
-        returnedValue = service.messageStorage.findConversations(messageCountFilter, findSuccess, findError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_preview.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_preview.html
deleted file mode 100755 (executable)
index bd730a6..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_mms_findConversations_filter_preview</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_mms_findConversations_filter_preview
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter by preview (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, service, message, sendError, sendSuccess, previewFilter,
-    findError, findSuccess, i, returnedValue = null;
-t.step(function () {
-    findSuccess = t.step_func(function (conversations) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_type(conversations, "array", "Not an array");
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-        for(i = 0; i < conversations.length; i++) {
-            assert_type(conversations[i].preview, "string", "preview is not a string");
-        }
-
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        previewFilter = new tizen.AttributeFilter("preview", "EXISTS");
-        returnedValue = service.messageStorage.findConversations(previewFilter, findSuccess, findError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html
deleted file mode 100755 (executable)
index 7e4d0f8..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_mms_findConversations_filter_timestamp</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_mms_findConversations_filter_timestamp
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter by timestamp (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, service, message, sendError, sendSuccess,
-    startDate, endDate, findError, findSuccess, i, timestampFilter, returnedValue = null;
-t.step(function () {
-
-    findSuccess = t.step_func(function (conversations) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_type(conversations, "array", "Not an array");
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-        for(i = 0; i < conversations.length; i++) {
-            assert_greater_than_equal(conversations[i].timestamp.getTime(), startDate.getTime(), "Incorrect date - too early");
-            assert_less_than_equal(conversations[i].timestamp.getTime(), endDate.getTime(), "Incorrect date - too late");
-        }
-
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        timestampFilter = new tizen.AttributeRangeFilter("timestamp", startDate, endDate);
-        returnedValue = service.messageStorage.findConversations(timestampFilter, findSuccess, findError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        startDate = new Date();
-        startDate.setHours(startDate.getHours() - 1);
-        endDate = new Date();
-        endDate.setHours(endDate.getHours() + 1);
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html
deleted file mode 100755 (executable)
index 9f3b713..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_mms_findConversations_filter_to</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_mms_findConversations_filter_to
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter by to (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    findSuccess, findError, serviceSuccess, messageService, sendSuccess, sendError, newMessage,
-    filter, serviceError, i, j, found = false;
-
-t.step(function () {
-
-    findSuccess = t.step_func(function (conversations) {
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-        for(i = 0; i < conversations.length; i++) {
-            for(j = 0; j < conversations[i].to.length; j++) {
-                if (conversations[i].to[j].indexOf(TEST_SMS_RECIPIENT) > -1) {
-                    found = true;
-                }
-            }
-            assert_true(found, "Recipient not found");
-            found = false;
-        }
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function (recipients) {
-        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-        messageService.messageStorage.findConversations(filter, findSuccess, findError);
-    });
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() 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];
-
-        newMessage = new tizen.Message(messageService.type, {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-
-        sendMessage(t, messageService, newMessage, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_type.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_type.html
deleted file mode 100755 (executable)
index 33508ef..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_mms_findConversations_filter_type</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_mms_findConversations_filter_type
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter by type (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), i,
-    serviceError, serviceSuccess, message, service, messageStorage, addDraftError, addDraftSuccess,
-    findError, findSuccess;
-t.step(function () {
-
-    findSuccess = t.step_func(function (conversations) {
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-
-        for(i = 0; i <conversations.length; i++) {
-            assert_equals(conversations[i].type, "messaging.mms", "Found incorrect type");
-        }
-
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        messageStorage.findConversations(MMStypeFilter, findSuccess, findError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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");
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-
-        service = services[0];
-        messageStorage = service.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_unreadMessages.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_unreadMessages.html
deleted file mode 100755 (executable)
index a9b74ba..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_mms_findConversations_filter_unreadMessages</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_mms_findConversations_filter_unreadMessages
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter by unreadMessages (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    unreadMessagesFilter, serviceSuccess, serviceError, findError, findSuccess;
-t.step(function () {
-
-    findSuccess = t.step_func(function (conversations) {
-        assert_type(conversations, "array", "Not an array");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        unreadMessagesFilter = new tizen.AttributeFilter("unreadMessages", "EXACTLY", 0);
-        services[0].messageStorage.findConversations(unreadMessagesFilter, findSuccess, findError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findFolders_exist.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findFolders_exist.html
deleted file mode 100755 (executable)
index b6a71d0..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_findFolders_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_findFolders_exist
-//==== LABEL Check if method findFolders of MessageStorage (MMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("findFolders" in messageStorage, "No findFolders method in messageStorage");
-        check_method_exists(messageStorage, "findFolders");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages.html
deleted file mode 100755 (executable)
index 46a6f1e..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_findMessages</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_findMessages
-//==== LABEL Check if MessageStorage.findMessages method works properly (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, j;
-t.step(function () {
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_true(msg.length === 1, "Received incorrect number of messages: " + msg.length);
-        assert_own_property(msg[0], "id", "Name id doesn't exist in provided object.");
-        assert_equals(msg[0].id, message.id, "Id is not equal");
-        assert_own_property(msg[0], "to", "Name to doesn't exist in provided object.");
-        for(j = 0; j < msg[0].to.length; j++){
-            assert_equals(msg[0].to[j], message.to[j], "to is not equal");
-        }
-        assert_own_property(msg[0], "subject", "Name subject doesn't exist in provided object.");
-        assert_equals(msg[0].subject, message.subject, "subject is not equal");
-
-        t.done();
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        messageStorage.findMessages(filter, findSuccessCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_exist.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_exist.html
deleted file mode 100755 (executable)
index b4da148..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_findMessages_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_findMessages_exist
-//==== LABEL Check if method findMessages of MessageStorage (MMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("findMessages" in messageStorage, "No findMessages method in messageStorage");
-        check_method_exists(messageStorage, "findMessages");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_folderId_with_errorCallback.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_folderId_with_errorCallback.html
deleted file mode 100755 (executable)
index 5850c08..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_findMessages_folderId_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_findMessages_folderId_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by folderId (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
-    i;
-t.step(function () {
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_not_equals(msg.length, 0, "No messages found");
-        for(i = 0; i < msg.length; i++){
-            assert_equals(msg[i].folderId, message.folderId, "returned folderId is not equal");
-            assert_own_property(msg[i], "folderId", "Name folderId doesn't exist in provided object.");
-        }
-        t.done();
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("folderId", "EXACTLY", message.folderId);
-        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_true(services.length > 0, "No services was return");
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_from_with_errorCallback.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_from_with_errorCallback.html
deleted file mode 100755 (executable)
index df5baea..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_findMessages_from_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_findMessages_from_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by from
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    returnedValue = null, findSuccess, findError, addSuccess, addError, serviceSuccess,
-    serviceError, datetime, message, i, fromFound, service, messageStorage;
-t.step(function () {
-
-    findSuccess = t.step_func(function (msg) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        for (i = 0; i < msg.length; i++) {
-            assert_not_equals(msg[i].from, null, "from is null");
-            fromFound = msg[i].from.indexOf(TEST_SMS_RECIPIENT);
-            assert_greater_than_equal(fromFound, 0, "Recipient not found");
-        }
-
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        returnedValue = messageStorage.findMessages(fromFilter, findSuccess, findError);
-
-    });
-
-    addError = t.step_func(function (error) {
-        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");
-        service = services[0];
-
-        datetime = tizen.time.getCurrentDateTime().toString();
-        message = new tizen.Message("messaging.mms", {
-            plainBody: datetime,
-            to: [ TEST_SMS_RECIPIENT ]
-        });
-
-        messageStorage = service.messageStorage;
-        service.messageStorage.addDraftMessage(message, addSuccess, addError);
-
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html
deleted file mode 100755 (executable)
index a4c73dc..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_findMessages_hasAttachment_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_findMessages_hasAttachment_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by hasAttachment (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-    message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB, i;
-t.step(function () {
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_not_equals(msg.length, 0, "No messages found");
-        for(i = 0; i < msg.length; i++){
-            assert_own_property(msg[i], "hasAttachment", "Name hasAttachment doesn't exist in provided object.");
-            assert_equals(msg[i].hasAttachment, message.hasAttachment, "returned hasAttachment is not equal");
-        }
-        t.done();
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("hasAttachment", "EXACTLY", message.hasAttachment);
-        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_true(services.length > 0, "No services was return");
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_id_with_errorCallback.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_id_with_errorCallback.html
deleted file mode 100755 (executable)
index 7ef0ef0..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_findMessages_id_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_findMessages_id_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by id (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB;
-t.step(function () {
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_true(msg.length === 1, "Received incorrect number of messages: " + msg.length);
-        assert_own_property(msg[0], "id", "Name id doesn't exist in provided object.");
-        assert_equals(msg[0].id, message.id, "Id is not equal");
-        t.done();
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_true(services.length > 0, "No services was return");
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_isRead_with_errorCallback.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_isRead_with_errorCallback.html
deleted file mode 100755 (executable)
index 07d5b38..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_findMessages_isRead_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_findMessages_isRead_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by isRead (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
-    i;
-t.step(function () {
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_not_equals(msg.length, 0, "No messages found");
-        for(i = 0; i < msg.length; i++){
-            assert_own_property(msg[i], "isRead", "Name isRead doesn't exist in provided object.");
-            assert_equals(msg[i].isRead, message.isRead, "isRead is not equal");
-        }
-        t.done();
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("isRead", "EXACTLY", message.isRead);
-        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_true(services.length > 0, "No services was return");
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html
deleted file mode 100755 (executable)
index 6eeb564..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_findMessages_plainBody_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_findMessages_plainBody_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by plainBody (mms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-//==== ONLOAD_DELAY 90
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
-    i, loadMessageSuccess, loadMessageError;
-t.step(function () {
-
-    loadMessageSuccess = t.step_func(function (msg) {
-        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");
-        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");
-
-        t.done();
-    });
-
-    loadMessageError = t.step_func(function (error) {
-        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_not_equals(msg.length, 0, "No messages found");
-        for(i = 0; i < msg.length; i++){
-            assert_equals(msg[i].body.plainBody, message.body.plainBody, "returned plainBody is not equal");
-            messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);
-        }
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", message.body.plainBody);
-        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html
deleted file mode 100755 (executable)
index 50e0fa7..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_findMessages_timestamp_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_findMessages_timestamp_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by timestamp (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
-    i, found = false;
-t.step(function () {
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_not_equals(msg.length, 0, "No messages found");
-        for(i = 0; i < msg.length; i++){
-            if(msg[i].id === message.id){
-                assert_own_property(msg[i], "timestamp", "Name timestamp doesn't exist in provided object.");
-                assert_equals(msg[i].timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");
-                found = true;
-            }
-        }
-        assert_true(found, "Message not found");
-
-        t.done();
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeRangeFilter("timestamp", new Date(message.timestamp.getTime()-2000), new Date(message.timestamp.getTime()+2000));
-        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_to_with_errorCallback.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_to_with_errorCallback.html
deleted file mode 100755 (executable)
index b2507aa..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_findMessages_to_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_findMessages_to_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by to (mms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-//==== ONLOAD_DELAY 90
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
-    i, j, removeAllSuccess, foundRecipient = false;
-t.step(function () {
-
-    removeAllSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_not_equals(msg.length, 0, "No messages found");
-        for(i = 0; i < msg.length; i++) {
-            assert_own_property(msg[i], "to", "Name to doesn't exist in provided object.");
-            assert_greater_than(msg[i].to.length, 0, "Recipient empty array");
-            for(j = 0; j < msg[i].to.length; j++) {
-                if (msg[i].to[j].indexOf(TEST_SMS_RECIPIENT) >= 0) {
-                    foundRecipient = true;
-                }
-            }
-        }
-        assert_true(foundRecipient, "Recipient not found");
-        removeAllMessages(t, messageService, removeAllSuccess);
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("to", "CONTAINS", message.to);
-        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_true(services.length > 0, "No services was return");
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_type_with_errorCallback.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_type_with_errorCallback.html
deleted file mode 100755 (executable)
index 366704a..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_findMessages_type_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_findMessages_type_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by type (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-    message, addDraftSuccessCB, addDraftErrorCB, findSuccessCB, findErrorCB, i, removeAllSuccess,
-    addedMessageFound = 0;
-t.step(function () {
-
-    removeAllSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_greater_than(msg.length, 0, "Received empty msg array");
-        for(i = 0; i < msg.length; i++){
-            assert_equals(msg[i].type, "messaging.mms", "returned type is not equal");
-            if (msg[i].id === message.id) {
-                addedMessageFound++;
-            }
-        }
-        assert_equals(addedMessageFound, 1, "Id of message added to draft was not found or found multiple times.");
-        removeAllMessages(t, messageService, removeAllSuccess);
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        messageStorage.findMessages(MMStypeFilter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeChangeListener_exist.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeChangeListener_exist.html
deleted file mode 100755 (executable)
index 758f222..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_removeChangeListener_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_removeChangeListener_exist
-//==== LABEL Check if method removeChangeListener of MessageStorage (MMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("removeChangeListener" in messageStorage, "No removeChangeListener method in messageStorage");
-        check_method_exists(messageStorage, "removeChangeListener");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeConversations_exist.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeConversations_exist.html
deleted file mode 100755 (executable)
index 5d8915d..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_removeConversations_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_removeConversations_exist
-//==== LABEL Check if method removeConversations of MessageStorage (MMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("removeConversations" in messageStorage, "No removeConversations method in messageStorage");
-        check_method_exists(messageStorage, "removeConversations");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeMessages_exist.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeMessages_exist.html
deleted file mode 100755 (executable)
index 0765b75..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_removeMessages_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_removeMessages_exist
-//==== LABEL Check if method removeMessages of MessageStorage (MMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("removeMessages" in messageStorage, "No removeMessages method in messageStorage");
-        check_method_exists(messageStorage, "removeMessages");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages.html
deleted file mode 100755 (executable)
index 7496589..0000000
+++ /dev/null
@@ -1,236 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_updateMessages</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_updateMessages
-//==== LABEL Check if MessageStorage.updateMessages method works properly (mms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MAST MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, messageService, messageStorage,
-    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(),
-    mutableMessage, constMessage,
-    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },
-    initDictForMutableMessage = initDict, initDictForConstMessage = initDict,
-    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable", plainBodyToSetForConstMessage = plainBodyToSet + "_const",
-    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null,
-    updateSuccess, updateError, mutableMessagefilter, constMessagefilter,
-    findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE",
-    findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST",
-    loadMutableSuccess, loadMutableError,
-    loadConstSuccess, loadConstError,
-    testMessage, testAttachment, testAttachmentCounter = 0;
-t.step(function () {
-
-    testAttachment = t.step_func(function (attachment, type) {
-        var j, foundAttachmenentCounter = 0;
-        if (type === mutable) {
-            for (j = 0; j < mutableMessage.attachments.length; j++) {
-                if (attachment.id === mutableMessage.attachments[j].id) {
-                    assert_equals(attachment.id, mutableMessage.attachments[j].id, type + " attachment.id");
-                    assert_equals(attachment.messageId, mutableMessage.attachments[j].messageId, type + " attachment.messageId");
-                    assert_equals(attachment.messageId, mutableMessage.id, type + " attachment.messageId (with message.id)");
-                    assert_equals(attachment.mimeType, mutableMessage.attachments[j].mimeType, type + " attachment.mimeType");
-                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");
-                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");
-                    foundAttachmenentCounter++;
-                }
-            }
-            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);
-        } else if (type === consts) {
-            for (j = 0; j < constMessage.attachments.length; j++) {
-                if (attachment.id === constMessage.attachments[j].id) {
-                    assert_equals(attachment.id, constMessage.attachments[j].id, type + " attachment.id");
-                    assert_equals(attachment.messageId, constMessage.attachments[j].messageId, type + " attachment.messageId");
-                    assert_equals(attachment.messageId, constMessage.id, type + " attachment.messageId - (with message.id)");
-                    assert_equals(attachment.mimeType, constMessage.attachments[j].mimeType, type + " attachment.mimeType");
-                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");
-                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");
-                    foundAttachmenentCounter++;
-                }
-            }
-            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);
-        } else {
-            assert_unreached("FIX your test - unknown type = " + type);
-        }
-
-        testAttachmentCounter++;
-        if (testAttachmentCounter === mutableMessage.attachments.length + constMessage.attachments.length) {
-            t.done();
-        }
-    });
-
-    testMessage = t.step_func(function (messageToTest, originalMessage, type) {
-        var i;
-        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");
-        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");
-        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");
-
-        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");
-        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");
-
-        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");
-        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");
-        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");
-        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");
-
-        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");
-        assert_equals(messageToTest.hasAttachment, originalMessage.hasAttachment, type + " hasAttachment attribute.");
-        assert_equals(messageToTest.subject, originalMessage.subject, type + " subject attribute.");
-        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");
-        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");
-        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {
-            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");
-        } else {
-            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");
-        }
-
-        assert_equals(messageToTest.attachments.length, originalMessage.attachments.length, type + " incorrect length of attachments");
-        for (i = 0; i < messageToTest.attachments.length; i++) {
-            if (type === mutable) {
-                testAttachment(messageToTest.attachments[i], mutable);
-            } else if (type === consts) {
-                testAttachment(messageToTest.attachments[i], consts);
-            } else {
-                assert_unreached("FIX your test - unknown type = " + type);
-            }
-        }
-    });
-
-    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {
-        testMessage(loadedMutableMessage, mutableMessage, mutable);
-    });
-
-    loadMutableError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    loadConstSuccess = t.step_func(function (loadedConstMessage) {
-        testMessage(loadedConstMessage, constMessage, consts);
-    });
-
-    loadConstError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {
-        assert_equals(mutableMessages.length, 1, "incorrect number of messages.");
-        foundMutableMessage = mutableMessages[0];
-        if (foundMutableMessage.body.loaded) {
-            testMessage(foundMutableMessage, mutableMessage, mutable);
-        } else {
-            messageService.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);
-        }
-    });
-
-    findMutableMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findConstMessagesSuccess = t.step_func(function (constMessages) {
-        assert_equals(constMessages.length, 1, "incorrect number of messages.");
-        foundConstMessage = constMessages[0];
-        if (foundConstMessage.body.loaded) {
-            testMessage(foundConstMessage, constMessage, consts);
-        } else {
-            messageService.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);
-        }
-    });
-
-    findConstMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-
-    updateSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");
-
-        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);
-        messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);
-
-        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);
-        messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);
-    });
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            mutableMessage.to = [TEST_SMS_RECIPIENT_2];
-            mutableMessage.body.plainBody = "new mutableMessage.plainBody";
-            mutableMessage.isRead = true;
-            mutableMessage.subject = "new mutableMessage.subject";
-            mutableMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),
-                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];
-
-            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess, updateError);
-        }
-
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;
-        mutableMessage = new tizen.Message("messaging.mms", initDictForMutableMessage);
-        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);
-
-        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;
-        constMessage = new tizen.Message("messaging.mms", initDictForConstMessage);
-        constMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),
-            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"), new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];
-        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index ddfc8d9..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_updateMessages_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_updateMessages_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageStorage.updateMessages method (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, addDraftSuccess, addDraftError, exceptionName, updateSuccess, incorrectCallback, conversionTable, i;
-t.step(function () {
-
-    updateSuccess = t.step_func(function () {
-        assert_unreached("updateMessages() success callback invoked.");
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                messageStorage.updateMessages([message], updateSuccess, incorrectCallback);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-        }
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 43a22b5..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_updateMessages_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_updateMessages_errorCallback_invalid_cb
-//==== LABEL Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", updateSuccess, incorrectCallback;
-t.step(function () {
-
-    updateSuccess = t.step_func(function () {
-        assert_unreached("updateMessages() success callback invoked.");
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        incorrectCallback = {
-            onerror: t.step_func(function (error) {
-                assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);
-            })
-        };
-        assert_throws({name: exceptionName},
-            function () {
-                messageStorage.updateMessages([message], updateSuccess, incorrectCallback);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_exist.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_exist.html
deleted file mode 100755 (executable)
index c51b37e..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_updateMessages_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_updateMessages_exist
-//==== LABEL Check if method updateMessages of MessageStorage (MMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("updateMessages" in messageStorage, "No updateMessages method in messageStorage");
-        check_method_exists(messageStorage, "updateMessages");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_messages_TypeMismatch.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_messages_TypeMismatch.html
deleted file mode 100755 (executable)
index 2e5f7da..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_updateMessages_messages_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_updateMessages_messages_TypeMismatch
-//==== LABEL Check type conversions for messages argument of MessageStorage.updateMessages method (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    exceptionName, updateSuccess, updateError, conversionTable, incorrectMessages, i;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        updateSuccess = t.step_func(function () {
-            assert_unreached("updateMessages() success callback invoked.");
-        });
-
-        updateError = t.step_func(function (error) {
-            assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-        });
-
-        conversionTable = getTypeConversionExceptions("array", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectMessages = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName}, function () {
-                messageStorage.updateMessages(incorrectMessages, updateSuccess, updateError);
-            }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessages);
-        }
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_missarg.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_missarg.html
deleted file mode 100755 (executable)
index e3e860f..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_updateMessages_missarg</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_updateMessages_missarg
-//==== LABEL Check with missing non-optional argument - MessageStorage.updateMessages (mms)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_throws({name: exceptionName},
-        function () {
-            messageStorage.updateMessages();
-        }, exceptionName + " should be thrown - missing argument.");
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 72d6d73..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_updateMessages_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_updateMessages_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageStorage.updateMessages method (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, addDraftSuccess, addDraftError, exceptionName, updateError, incorrectCallback, conversionTable, i;
-t.step(function () {
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                messageStorage.updateMessages([message], incorrectCallback, updateError);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-        }
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index b161733..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_updateMessages_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_updateMessages_successCallback_invalid_cb
-//==== LABEL Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", updateError, incorrectCallback;
-t.step(function () {
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        incorrectCallback = {
-            onsuccess: t.step_func(function () {
-                assert_unreached("addDraftMessage() incorrect success callback invoked");
-            })
-        };
-        assert_throws({name: exceptionName},
-            function () {
-                messageStorage.updateMessages([message], incorrectCallback, updateError);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_errorCallback.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_errorCallback.html
deleted file mode 100755 (executable)
index b5b7f52..0000000
+++ /dev/null
@@ -1,230 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_updateMessages_without_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_updateMessages_without_errorCallback
-//==== LABEL Check if MessageStorage.updateMessages method works properly without errorCallback argument (mms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MOA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, messageService, messageStorage,
-    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(),
-    mutableMessage, constMessage,
-    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },
-    initDictForMutableMessage = initDict, initDictForConstMessage = initDict,
-    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable", plainBodyToSetForConstMessage = plainBodyToSet + "_const",
-    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null,
-    updateSuccess, mutableMessagefilter, constMessagefilter,
-    findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE",
-    findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST",
-    loadMutableSuccess, loadMutableError,
-    loadConstSuccess, loadConstError,
-    testMessage, testAttachment, testAttachmentCounter = 0;
-t.step(function () {
-
-    testAttachment = t.step_func(function (attachment, type) {
-        var j, foundAttachmenentCounter = 0;
-        if (type === mutable) {
-            for (j = 0; j < mutableMessage.attachments.length; j++) {
-                if (attachment.id === mutableMessage.attachments[j].id) {
-                    assert_equals(attachment.id, mutableMessage.attachments[j].id, type + " attachment.id");
-                    assert_equals(attachment.messageId, mutableMessage.attachments[j].messageId, type + " attachment.messageId");
-                    assert_equals(attachment.messageId, mutableMessage.id, type + " attachment.messageId (with message.id)");
-                    assert_equals(attachment.mimeType, mutableMessage.attachments[j].mimeType, type + " attachment.mimeType");
-                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");
-                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");
-                    foundAttachmenentCounter++;
-                }
-            }
-            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);
-        } else if (type === consts) {
-            for (j = 0; j < constMessage.attachments.length; j++) {
-                if (attachment.id === constMessage.attachments[j].id) {
-                    assert_equals(attachment.id, constMessage.attachments[j].id, type + " attachment.id");
-                    assert_equals(attachment.messageId, constMessage.attachments[j].messageId, type + " attachment.messageId");
-                    assert_equals(attachment.messageId, constMessage.id, type + " attachment.messageId - (with message.id)");
-                    assert_equals(attachment.mimeType, constMessage.attachments[j].mimeType, type + " attachment.mimeType");
-                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");
-                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");
-                    foundAttachmenentCounter++;
-                }
-            }
-            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);
-        } else {
-            assert_unreached("FIX your test - unknown type = " + type);
-        }
-
-        testAttachmentCounter++;
-        if (testAttachmentCounter === mutableMessage.attachments.length + constMessage.attachments.length) {
-            t.done();
-        }
-    });
-
-    testMessage = t.step_func(function (messageToTest, originalMessage, type) {
-        var i;
-        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");
-        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");
-        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");
-
-        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");
-        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");
-
-        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");
-        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");
-        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");
-        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");
-
-        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");
-        assert_equals(messageToTest.hasAttachment, originalMessage.hasAttachment, type + " hasAttachment attribute.");
-        assert_equals(messageToTest.subject, originalMessage.subject, type + " subject attribute.");
-        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");
-        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");
-        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {
-            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");
-        } else {
-            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");
-        }
-
-        assert_equals(messageToTest.attachments.length, originalMessage.attachments.length, type + " incorrect length of attachments");
-        for (i = 0; i < messageToTest.attachments.length; i++) {
-            if (type === mutable) {
-                testAttachment(messageToTest.attachments[i], mutable);
-            } else if (type === consts) {
-                testAttachment(messageToTest.attachments[i], consts);
-            } else {
-                assert_unreached("FIX your test - unknown type = " + type);
-            }
-        }
-    });
-
-    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {
-        testMessage(loadedMutableMessage, mutableMessage, mutable);
-    });
-
-    loadMutableError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    loadConstSuccess = t.step_func(function (loadedConstMessage) {
-        testMessage(loadedConstMessage, constMessage, consts);
-    });
-
-    loadConstError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {
-        assert_equals(mutableMessages.length, 1, "incorrect number of messages.");
-        foundMutableMessage = mutableMessages[0];
-        if (foundMutableMessage.body.loaded) {
-            testMessage(foundMutableMessage, mutableMessage, mutable);
-        } else {
-            messageService.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);
-        }
-    });
-
-    findMutableMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findConstMessagesSuccess = t.step_func(function (constMessages) {
-        assert_equals(constMessages.length, 1, "incorrect number of messages.");
-        foundConstMessage = constMessages[0];
-        if (foundConstMessage.body.loaded) {
-            testMessage(foundConstMessage, constMessage, consts);
-        } else {
-            messageService.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);
-        }
-    });
-
-    findConstMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-
-    updateSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");
-
-        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);
-        messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);
-
-        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);
-        messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            mutableMessage.to = [TEST_SMS_RECIPIENT_2];
-            mutableMessage.body.plainBody = "new mutableMessage.plainBody";
-            mutableMessage.isRead = true;
-            mutableMessage.subject = "new mutableMessage.subject";
-            mutableMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),
-                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];
-
-            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;
-        mutableMessage = new tizen.Message("messaging.mms", initDictForMutableMessage);
-        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);
-
-        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;
-        constMessage = new tizen.Message("messaging.mms", initDictForConstMessage);
-        constMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),
-            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"), new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];
-        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_successCallback.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_successCallback.html
deleted file mode 100755 (executable)
index 0ec7afb..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_updateMessages_without_successCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_updateMessages_without_successCallback
-//==== LABEL Check if MessageStorage.updateMessages method works properly without successCallback argument (mms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), mutableMessage, constMessage,
-    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },
-    initDictForMutableMessage = initDict, initDictForConstMessage = initDict,
-    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable",
-    plainBodyToSetForConstMessage = plainBodyToSet + "_const",
-    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,
-    returnedValue = null;
-t.step(function () {
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            mutableMessage.to = [TEST_SMS_RECIPIENT_2];
-            mutableMessage.body.plainBody = "new mutableMessage.plainBody";
-            mutableMessage.isRead = true;
-            mutableMessage.subject = "new mutableMessage.subject";
-            mutableMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),
-                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg")];
-            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage]);
-            assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");
-            t.done();
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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 messaging array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;
-        mutableMessage = new tizen.Message("messaging.mms", initDictForMutableMessage);
-        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);
-
-        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;
-        constMessage = new tizen.Message("messaging.mms", initDictForConstMessage);
-        constMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),
-            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"), new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg")];
-        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_removeConversations_formms.html b/common/tct-messaging-mms-tizen-tests/messaging/MessageStorage_removeConversations_formms.html
deleted file mode 100755 (executable)
index e2269a8..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeConversations_formms</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: MessageStorage_removeConversations_formms
-//==== PRIORITY P1
-//==== LABEL Check if MessageStorage.removeConversations works properly for mms
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    service, message, removeConversationsSuccess, removeConversationsError,
-    findConversationsSuccess, findConversationsError, messageSentSuccess, messageSentError,
-    serviceSuccess, serviceError, removeAllSuccess, returnedValue = null;
-
-t.step(function () {
-    removeConversationsSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    removeConversationsError = t.step_func(function (error) {
-        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findConversationsSuccess = t.step_func(function (conversations) {
-        returnedValue = service.messageStorage.removeConversations(conversations, removeConversationsSuccess, removeConversationsError);
-    });
-
-    findConversationsError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    messageSentSuccess = t.step_func(function (recipients) {
-        service.messageStorage.findConversations(MMStypeFilter, findConversationsSuccess, findConversationsError);
-    });
-
-    messageSentError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        sendMessage(t, service, message, messageSentSuccess, messageSentError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        removeAllMessages(t, service, removeAllSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_attachments_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_attachments_attribute.html
deleted file mode 100755 (executable)
index ee59dcb..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_attachments_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_attachments_attribute
-//==== LABEL Check if attribute attachments of Message (MMS) exists, has type Array
-//==== PRIORITY P1
-//==== 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 AT ADV AN ASG
-
-test(function () {
-    var message = new tizen.Message("messaging.mms"),
-        sampleVal;
-
-    assert_true("attachments" in message, "No 'attachments' attribute in message");
-    assert_type(message.attachments, "array", "'attachments' type should be array");
-    assert_array_equals(message.attachments, [], "'attachments' should be [] by default");
-
-    message.attachments = null;
-    assert_array_equals(message.attachments, [], "'attachments' should not accept null as value");
-
-    sampleVal = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");
-    message.attachments = [sampleVal];
-    assert_equals(message.attachments.length, 1, "'attachments' should accept a valid value (array length mismatch)");
-    assert_equals(message.attachments[0].filePath, TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "'attachments' should accept a valid value (file path mismatch)");
-
-    check_invalid_array_assignments(message, "attachments", false);
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_body_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_body_attribute.html
deleted file mode 100755 (executable)
index 0e0de37..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_body_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_body_attribute
-//==== LABEL Check if attribute body of Message (MMS) exists, has type MessageBody
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:body A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE AT AN
-
-test(function () {
-    var message = new tizen.Message("messaging.mms"),
-        samplePlainBody = "sample plainBody",
-        invalidArgs, i;
-
-    assert_true("body" in message, "No 'body' attribute in message");
-
-    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");
-    assert_type(message.body.loaded, "boolean", "message.body.loaded type should be boolean");
-    assert_type(message.body.plainBody, "string", "message.body.plainBody type should be string");
-
-    assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");
-    assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");
-
-    message.body.plainBody = samplePlainBody;
-
-    message.body = null;
-    assert_not_equals(message.body, null, "'body' should not accept null as value");
-
-    invalidArgs = [undefined, true, false, NaN, 0, "TIZEN", function () {}];
-    for (i = 0 ; i < invalidArgs.length ; i++) {
-        message.body = invalidArgs[i];
-
-        assert_true("messageId" in message.body, "Object was modified after setting to " + invalidArgs[i]);
-        assert_true("loaded" in message.body, "Object was modified after setting to " + invalidArgs[i]);
-        assert_true("plainBody" in message.body, "Object was modified after setting to " + invalidArgs[i]);
-
-        assert_equals(message.body.messageId, null, "'messageId' modified after setting the object to " + invalidArgs[i]);
-        assert_equals(message.body.loaded, false, "'loaded' modified after setting the object to " + invalidArgs[i]);
-        assert_equals(message.body.plainBody, samplePlainBody, "'plainBody' modified after setting the object to " + invalidArgs[i]);
-    }
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor.html
deleted file mode 100755 (executable)
index ddab4eb..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_constructor</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_constructor
-//==== LABEL Check if Message's constructor works properly (email)
-//==== PRIORITY P1
-//==== 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 CONSTRA CONSTRM
-
-test(function () {
-    var message, subject, plainBody;
-
-    subject = generateSubject();
-    plainBody = "sample plainBody";
-
-    message = new tizen.Message("messaging.mms", {
-        subject: subject,
-        to: [TEST_SMS_RECIPIENT],
-        plainBody: plainBody
-    });
-
-    assert_true(message instanceof tizen.Message, "InstanceOf.");
-
-    assert_array_equals(message.attachments, [], "'attachments' should be []");
-    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");
-    assert_equals(message.body.plainBody, plainBody, "'body.plainBody' should be \""+plainBody+"\"");
-    assert_equals(message.conversationId, null, "message.conversationId value should be null");
-    assert_equals(message.folderId, null, "message.folderId value should be null");
-    assert_equals(message.from, null, "'from' should be null");
-    assert_equals(message.hasAttachment, false, "'hasAttachment' should be false");
-    assert_equals(message.id, null, "message.id should be null before processing by the platform");
-    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null");
-    assert_equals(message.isRead, false, "'isRead' value should be false");
-    assert_equals(message.messageStatus, "", "value should be \"sample subject\"");
-    assert_equals(message.subject, subject, "'subject' value should be \""+subject+"\"");
-    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");
-    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should be ["+TEST_SMS_RECIPIENT+"]");
-    assert_equals(message.type, "messaging.mms", "'type' should be 'messaging.mms'");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_function.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_function.html
deleted file mode 100755 (executable)
index 17b42c8..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_constructor_messageInitDict_function</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_constructor_messageInitDict_function
-//==== LABEL Check if Message's constructor works properly with function (mms)
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-
-    var message = new tizen.Message("messaging.mms", function () {});
-
-    assert_true(message instanceof tizen.Message, "InstanceOf.");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_object.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_object.html
deleted file mode 100755 (executable)
index 94d0b93..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_constructor_messageInitDict_object</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_constructor_messageInitDict_object
-//==== LABEL Check if Message's constructor works properly with empty object (mms)
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-
-    var message = new tizen.Message("messaging.mms", {});
-
-    assert_true(message instanceof tizen.Message, "InstanceOf.");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_minargs.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_minargs.html
deleted file mode 100755 (executable)
index 0ddeeb5..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-
-<head>
-<title>Message_mms_constructor_minargs</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_mms_constructor_minargs
-//==== LABEL Check if Message's constructor works properly with minimum arguments (mms)
-//==== PRIORITY P1
-//==== 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 CONSTRA CONSTRF
-
-test(function () {
-    var message = new tizen.Message("messaging.mms");
-
-    assert_true(message instanceof tizen.Message, "InstanceOf.");
-
-    assert_array_equals(message.attachments, [], "'attachments' 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.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.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.mms", "'type' should be 'messaging.mms'");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_conversationId_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_conversationId_attribute.html
deleted file mode 100755 (executable)
index f2cb7d5..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_conversationId_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_conversationId_attribute
-//==== LABEL Check if attribute conversationId of Message (MMS) exists, has type MessageConvId and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:conversationId A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA AE ADV ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message,
-    serviceError, serviceSuccess, service, sendError, sendSuccess, filterForMessage,
-    findMessagesError, findMessagesSuccess, foundMessage;
-t.step(function () {
-    message = new tizen.Message("messaging.mms");
-
-    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");
-
-    findMessagesSuccess = t.step_func(function (messages) {
-        assert_equals(messages.length, 1, "Incorrect number of messages found");
-        assert_equals(messages[0].id, message.id, "Found incorrect message");
-        foundMessage = messages[0];
-
-        assert_type(foundMessage.conversationId, "string", "ConversationId is not a string");
-        assert_not_equals(foundMessage.conversationId, "", "ConversationId is empty");
-
-        check_readonly(foundMessage, "conversationId", foundMessage.conversationId, "string", foundMessage.conversationId + "1");
-
-        t.done();
-    });
-
-    findMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        filterForMessage = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(filterForMessage, findMessagesSuccess, findMessagesError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_extend.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_extend.html
deleted file mode 100755 (executable)
index 80ea203..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_extend</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_extend
-//==== PRIORITY P3
-//==== LABEL Check if instance of interface Message (MMS) can be extended with new property
-//==== 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
-
-test(function () {
-    var message = new tizen.Message("messaging.mms");
-
-    check_extensibility(message);
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_folderId_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_folderId_attribute.html
deleted file mode 100755 (executable)
index 7aaba4d..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_folderId_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_folderId_attribute
-//==== LABEL Check if attribute folderId of Message (MMS) exists, has type MessageFolderId and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:folderId A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA AE ADV ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message,
-    serviceError, serviceSuccess, messageService, sendError,
-    sendSuccess;
-t.step(function () {
-    message = new tizen.Message("messaging.mms");
-
-    assert_true("folderId" in message, "No 'folderId' attribute in message");
-    check_readonly(message, "folderId", null, "object", "12345");
-
-    sendSuccess = t.step_func(function () {
-        assert_type(message.folderId, "string", "folderId is not a string");
-        assert_not_equals(message.folderId, "", "folderId is empty");
-
-        check_readonly(message, "folderId", message.folderId, "string", "54321");
-
-        t.done();
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() 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];
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        sendMessage(t, messageService, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_from_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_from_attribute.html
deleted file mode 100755 (executable)
index ba88062..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_from_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_from_attribute
-//==== LABEL Check if attribute from of Message (MMS) exists, has type DOMString and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:from A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA AE ADV ARO AT
-
-test(function () {
-    var message = new tizen.Message("messaging.mms");
-
-    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");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_hasAttachment_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_hasAttachment_attribute.html
deleted file mode 100755 (executable)
index 3b4aa5b..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_hasAttachment_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_hasAttachment_attribute
-//==== LABEL Check if attribute hasAttachment of Message (MMS) exists, has type Boolean and is readonly
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-    var message = new tizen.Message("messaging.mms");
-
-    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);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_id_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_id_attribute.html
deleted file mode 100755 (executable)
index efa3c28..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_id_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_id_attribute
-//==== LABEL Check if attribute id of Message (MMS) exists, has type MessageId and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:id A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA AE ADV ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message,
-    serviceError, serviceSuccess, messageService, sendError,
-    sendSuccess;
-t.step(function () {
-    message = new tizen.Message("messaging.mms");
-
-    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");
-
-    sendSuccess = 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();
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() 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];
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-
-        sendMessage(t, messageService, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_inResponseTo_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_inResponseTo_attribute.html
deleted file mode 100755 (executable)
index 8a656f1..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_inResponseTo_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_inResponseTo_attribute
-//==== LABEL Check if attribute inResponseTo of Message (MMS) exists, has type MessageId
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-    var message = new tizen.Message("messaging.mms");
-
-    assert_true("inResponseTo" in message, "No 'inResponseTo' attribute in message");
-    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");
-
-    check_readonly(message, "inResponseTo", message.inResponseTo, "string", message.inResponseTo + "dummyValue");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_isRead_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_isRead_attribute.html
deleted file mode 100755 (executable)
index a908e5f..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_isRead_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_isRead_attribute
-//==== LABEL Check if attribute isRead of Message (MMS) exists, has type Boolean
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-    var message = new tizen.Message("messaging.mms");
-
-    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 = true;
-    assert_equals(message.isRead, true, "'isRead' should accept a valid value");
-
-    message.isRead = null;
-    assert_equals(message.isRead, false, "'isRead' should not accept null as value");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_messageStatus_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_messageStatus_attribute.html
deleted file mode 100755 (executable)
index b6edfd1..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_messageStatus_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_messageStatus_attribute
-//==== LABEL Check if attribute messageStatus of Message (MMS) exists, has type DOMString and is readonly
-//==== PRIORITY P1
-//==== 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 AT ARO ADV
-
-test(function () {
-    var message = new tizen.Message("messaging.mms");
-
-    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);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_subject_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_subject_attribute.html
deleted file mode 100755 (executable)
index cfc2802..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_subject_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_subject_attribute
-//==== LABEL Check if attribute subject of Message (MMS) exists, has type DOMString
-//==== PRIORITY P1
-//==== 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 AN ASG
-
-test(function () {
-    var message = new tizen.Message("messaging.mms");
-
-    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 = null;
-    assert_equals(message.subject, "null", "according to conversion tables 'subject' should be 'null'");
-
-    message.subject = "sampleValue";
-    assert_equals(message.subject, "sampleValue", "'subject' should accept a valid value");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_timestamp_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_timestamp_attribute.html
deleted file mode 100755 (executable)
index 53f9612..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_timestamp_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_timestamp_attribute
-//==== LABEL Check if attribute timestamp of Message (MMS) exists, has type Date and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:timestamp A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA AE ADV ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message, serviceError,
-    serviceSuccess, messageService, sendError, sendSuccess, oldDate;
-t.step(function () {
-    message = new tizen.Message("messaging.mms");
-
-    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());
-
-    sendSuccess = t.step_func(function () {
-        assert_type(message.timestamp, "date", "timestamp is not a Date");
-
-        oldDate = message.timestamp;
-        message.timestamp = new Date();
-        assert_equals(message.timestamp.getTime(), oldDate.getTime(), "timestamp can be modified");
-
-        t.done();
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() 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];
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-
-        sendMessage(t, messageService, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_to_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_to_attribute.html
deleted file mode 100755 (executable)
index 868e0d7..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_to_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_to_attribute
-//==== LABEL Check if attribute to of Message (MMS) exists, has type Array
-//==== PRIORITY P1
-//==== 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 AN ASG AT
-
-test(function () {
-    var message = new tizen.Message("messaging.mms");
-
-    assert_true("to" in message, "No 'to' attribute in message");
-    assert_array_equals(message.to, [], "'to' should be [] by default");
-    assert_type(message.to, "array", "'to' should be an array");
-
-    message.to = null;
-    assert_array_equals(message.to, [], "'to' should not accept null as value");
-
-    message.to = [TEST_SMS_RECIPIENT];
-    assert_type(message.to, "array", "'to' should be an array");
-    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should accept a valid value");
-
-    message.to = null;
-    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should not accept null as value");
-
-    check_invalid_array_assignments(message, "to", false);
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_type_attribute.html b/common/tct-messaging-mms-tizen-tests/messaging/Message_mms_type_attribute.html
deleted file mode 100755 (executable)
index a67b0c6..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_mms_type_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_mms_type_attribute
-//==== LABEL Check if attribute type of Message (MMS) exists, has type MessageServiceTag and is readonly
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-    var message = new tizen.Message("messaging.mms");
-
-    assert_true("type" in message, "No 'type' attribute in message");
-    assert_equals(message.type, "messaging.mms", "'type' should be 'messaging.mms'");
-    check_readonly(message, "type", message.type, "string", message.type + "dummyValue");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_with_filter.html b/common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_with_filter.html
deleted file mode 100755 (executable)
index 3a81c6f..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_mms_messagesadded_with_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessagesChangeCallback_mms_messagesadded_with_filter
-//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - mms, filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),
-    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),
-    mismatchPlainBodyToSet = currentDate.getTime().toString(),
-    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },
-    matchInitDict = initDict, mismatchInitDict = initDict,
-    matchMessage, mismatchMessage, changeCallback, addDraftError, loadSuccess, loadError;
-t.step(function () {
-
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(subscriptionIdentifier);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    loadSuccess = t.step_func(function (loadedMessage) {
-        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");
-        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");
-        t.done();
-    });
-
-    loadError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_type(addedMessages, "array", "Not an array.");
-            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);
-            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");
-            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_unreached("memssagesupdated callback invoked.");
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_unreached("messagesremoved callback invoked.");
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);
-        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);
-
-        mismatchInitDict.plainBody = mismatchPlainBodyToSet;
-        mismatchMessage = new tizen.Message("messaging.mms", mismatchInitDict);
-        messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);
-
-        matchInitDict.plainBody = matchPlainBodyToSet;
-        matchMessage = new tizen.Message("messaging.mms", matchInitDict);
-        messageStorage.addDraftMessage(matchMessage, null, addDraftError);
-
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_without_filter.html b/common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_without_filter.html
deleted file mode 100755 (executable)
index 8da39d5..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_mms_messagesadded_without_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessagesChangeCallback_mms_messagesadded_without_filter
-//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - mms, no filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), message,
-    changeCallback, addDraftError, loadSuccess, loadError, removeAllSuccess, i;
-t.step(function () {
-
-    add_result_callback(function () {
-        try {
-            if (subscriptionIdentifier) {
-                messageStorage.removeChangeListener(subscriptionIdentifier);
-            }
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    loadSuccess = t.step_func(function (loadedMessage) {
-        assert_equals(loadedMessage.body.plainBody, plainBodyToSet, "Incorrect plainBody.");
-        assert_equals(loadedMessage.id, message.id, "Incorrect id.");
-        removeAllMessages(t, messageService, removeAllSuccess);
-    });
-
-    loadError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_type(addedMessages, "array", "Not an array.");
-            assert_greater_than(addedMessages.length, 0, "Received empty messages array");
-
-            for (i = 0; i < addedMessages.length; i++) {
-                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");
-                if (addedMessages[i].id === message.id) {
-                    messageStorage.removeChangeListener(subscriptionIdentifier);
-                    subscriptionIdentifier = null;
-                    messageService.loadMessageBody(addedMessages[i], loadSuccess, loadError);
-                    break;
-                }
-            }
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: plainBodyToSet
-        });
-
-        messageStorage.addDraftMessage(message, null, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_with_filter.html b/common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_with_filter.html
deleted file mode 100755 (executable)
index fd96838..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_mms_messagesremoved_with_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessagesChangeCallback_mms_messagesremoved_with_filter
-//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - mms, filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),
-    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),
-    mismatchPlainBodyToSet = currentDate.getTime().toString(),
-    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },
-    matchInitDict = initDict, mismatchInitDict = initDict,
-    matchMessage, mismatchMessage, changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0,
-    updateError;
-t.step(function () {
-
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(subscriptionIdentifier);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_unreached("messagesadded callback invoked.");
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_unreached("updatedMessages callback invoked.");
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_type(removedMessages, "array", "Not an array.");
-            assert_equals(removedMessages.length, 1, "Received incorrect number of messages: " + removedMessages.length);
-            assert_true(removedMessages[0] instanceof tizen.Message, "Not a message.");
-            assert_equals(removedMessages[0].id, matchMessage.id, "Invalid message given to callback");
-            t.done();
-        })
-    };
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            filter = new tizen.AttributeFilter("id", "EXACTLY", matchMessage.id);
-            subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);
-
-            messageStorage.removeMessages([mismatchMessage, matchMessage], null, updateError);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        mismatchInitDict.subject = mismatchPlainBodyToSet;
-        mismatchMessage = new tizen.Message("messaging.mms", mismatchInitDict);
-        messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);
-
-        matchInitDict.subject = matchPlainBodyToSet;
-        matchMessage = new tizen.Message("messaging.mms", matchInitDict);
-        messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_without_filter.html b/common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_without_filter.html
deleted file mode 100755 (executable)
index 94099ca..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_mms_messagesremoved_without_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessagesChangeCallback_mms_messagesremoved_without_filter
-//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - mms, no filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, message, changeCallback, addDraftSuccess, addDraftError, removeError, i;
-t.step(function () {
-
-    add_result_callback(function () {
-        try {
-            if (subscriptionIdentifier) {
-                messageStorage.removeChangeListener(subscriptionIdentifier);
-            }
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    changeCallback = {
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_type(removedMessages, "array", "Not an array.");
-            assert_greater_than(removedMessages.length, 0, "Received empty messages array");
-
-            for (i = 0; i < removedMessages.length; i++) {
-                assert_true(removedMessages[i] instanceof tizen.Message, "Not a message.");
-                if (removedMessages[i].id === message.id) {
-                    messageStorage.removeChangeListener(subscriptionIdentifier);
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);
-
-        messageStorage.removeMessages([message], null, removeError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_with_filter.html b/common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_with_filter.html
deleted file mode 100755 (executable)
index 080f6b1..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_mms_messagesupdated_with_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessagesChangeCallback_mms_messagesupdated_with_filter
-//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - mms, filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),
-    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),
-    mismatchPlainBodyToSet = currentDate.getTime().toString(),
-    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },
-    matchInitDict = initDict, mismatchInitDict = initDict,
-    matchMessage, mismatchMessage, changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0,
-    updateError, loadSuccess, loadError;
-t.step(function () {
-
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(subscriptionIdentifier);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    loadSuccess = t.step_func(function (loadedMessage) {
-        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");
-        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");
-        t.done();
-    });
-
-    loadError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_unreached("messagesadded callback invoked.");
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_type(updatedMessages, "array", "Not an array.");
-            assert_equals(updatedMessages.length, 1, "Received incorrect number of messages: " + updatedMessages.length);
-            assert_true(updatedMessages[0] instanceof tizen.Message, "Not a message.");
-            messageService.loadMessageBody(updatedMessages[0], loadSuccess, loadError);
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_unreached("messagesremoved callback invoked.");
-        })
-    };
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);
-            subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);
-
-            mismatchMessage.body.plainBody = mismatchPlainBodyToSet;
-            matchMessage.body.plainBody = matchPlainBodyToSet;
-
-            messageStorage.updateMessages([mismatchMessage, matchMessage], null, updateError);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        mismatchMessage = new tizen.Message("messaging.mms", mismatchInitDict);
-        messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);
-
-        matchMessage = new tizen.Message("messaging.mms", matchInitDict);
-        messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_without_filter.html b/common/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_without_filter.html
deleted file mode 100755 (executable)
index e6db16c..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_mms_messagesupdated_without_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessagesChangeCallback_mms_messagesupdated_without_filter
-//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - mms, no filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), message,
-    changeCallback, addDraftSuccess, addDraftError, updateError, loadSuccess, loadError,
-    i;
-t.step(function () {
-
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(subscriptionIdentifier);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    loadSuccess = t.step_func(function (loadedMessage) {
-        assert_equals(loadedMessage.body.plainBody, plainBodyToSet, "Incorrect plainBody.");
-        assert_equals(loadedMessage.id, message.id, "Incorrect id.");
-        t.done();
-    });
-
-    loadError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    changeCallback = {
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_type(updatedMessages, "array", "Not an array.");
-            assert_greater_than(updatedMessages.length, 0, "Received empty messages array");
-
-            for (i = 0; i < updatedMessages.length; i++) {
-                assert_true(updatedMessages[i] instanceof tizen.Message, "Not a message.");
-                if (updatedMessages[i].id === message.id) {
-                    messageStorage.removeChangeListener(subscriptionIdentifier);
-                    messageService.loadMessageBody(updatedMessages[i], loadSuccess, loadError);
-                    break;
-                }
-            }
-        })
-    };
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);
-        message.body.plainBody = plainBodyToSet;
-
-        messageStorage.updateMessages([message], null, updateError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        message = new tizen.Message("messaging.mms", {
-            subject: generateSubject(),
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "sample plainBody"
-        });
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Messaging_getMessageServices_without_error_callback.html b/common/tct-messaging-mms-tizen-tests/messaging/Messaging_getMessageServices_without_error_callback.html
deleted file mode 100755 (executable)
index e11baf2..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>Messaging_getMessageServices_without_error_callback</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: Messaging_getMessageServices_without_error_callback
-//==== LABEL Check if MessageService.getMessageServices method works properly without errorCallback argument (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        t.done();
-    });
-
-    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices.html b/common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices.html
deleted file mode 100755 (executable)
index 3d91237..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_mms_getMessageServices</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_mms_getMessageServices
-//==== LABEL Check if type attribute exists in MessageService
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MR MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, i, returnedValue = null;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value.");
-
-        assert_true(services.length > 0, "Received empty services array");
-
-        for(i = 0; i< services.length; i++){
-            assert_true("type" in services[i], "Name type doesn't exist in provided object.");
-            assert_equals(services[i].type, "messaging.mms", "Type is not equal mms");
-        }
-        t.done();
-    });
-
-    returnedValue = tizen.messaging.getMessageServices("messaging.mms", serviceSuccess);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html b/common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 2918fc1..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_mms_getMessageServices_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_mms_getMessageServices_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageService.getMessageServices method (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-//==== ONLOAD_DELAY 90
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), conversionTable, exceptionName, serviceSuccess, i, incorrectCallback;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    conversionTable = getTypeConversionExceptions("functionObject", true);
-    for(i = 0; i < conversionTable.length; i++) {
-        incorrectCallback = conversionTable[i][0];
-        exceptionName = conversionTable[i][1];
-
-        assert_throws({name: exceptionName},
-        function () {
-            tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, incorrectCallback);
-        }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-    }
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html b/common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index f187a4f..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_mms_getMessageServices_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_mms_getMessageServices_errorCallback_invalid_cb
-//==== LABEL Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (mms)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", serviceSuccess,
-    incorrectCallback;
-t.step(function () {
-
-    incorrectCallback = {
-        onerror: t.step_func(function () {
-            assert_unreached("getMessageServices() success callback invoked.");
-        })
-    };
-
-    serviceSuccess = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    assert_throws({name: exceptionName},
-        function () {
-            tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, incorrectCallback);
-        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html b/common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index fb8c50a..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_mms_getMessageServices_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_mms_getMessageServices_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageService.getMessageServices method (mms)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), exceptionName, serviceError, i, incorrectCallback, conversionTable;
-t.step(function () {
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    conversionTable = getTypeConversionExceptions("functionObject", false);
-    for(i = 0; i < conversionTable.length; i++) {
-        incorrectCallback = conversionTable[i][0];
-        exceptionName = conversionTable[i][1];
-
-        assert_throws({name: exceptionName},
-        function () {
-            tizen.messaging.getMessageServices("messaging.mms", incorrectCallback, serviceError);
-        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-    }
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_invalid_cb.html b/common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 09902c9..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_mms_getMessageServices_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_mms_getMessageServices_successCallback_invalid_cb
-//==== LABEL Check if MessageService.getMessageServices method throws exception when successCallback is invalid (mms)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", serviceError, incorrectCallback;
-t.step(function () {
-
-    incorrectCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("addDraftMessage() success callback invoked.");
-        })
-    };
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    assert_throws({name: exceptionName},
-        function () {
-            tizen.messaging.getMessageServices("messaging.mms", incorrectCallback, serviceError);
-        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_with_errorCallback.html b/common/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_with_errorCallback.html
deleted file mode 100755 (executable)
index 8748a4a..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_mms_getMessageServices_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_mms_getMessageServices_with_errorCallback
-//==== LABEL Check if MessageService.getMessageServices method works properly with errorCallback argument (mms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MR MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, i, returnedValue = null;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value.");
-
-        assert_true(services.length > 0, "Received empty services array");
-
-        for(i = 0; i< services.length; i++){
-            assert_true("type" in services[i], "Name type doesn't exist in provided object.");
-            assert_equals(services[i].type, "messaging.mms", "Type is not equal mms");
-        }
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    returnedValue = tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/support/getJsonConf.js b/common/tct-messaging-mms-tizen-tests/messaging/support/getJsonConf.js
deleted file mode 100755 (executable)
index 2fa8a4c..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
-Copyright (c) 2013 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Hao <haox.li@intel.com>
-        Zhongyuan Yuan <zy123.yuan@samsung.com>
-
-*/
-
-var RESOURCE_DIR;
-
-$.ajax({
-  url:"/opt/usr/home/owner/share/TCT_CONFIG",
-  data:{},
-  async:false,
-  success:function(data){
-    var regEx = /DEVICE_SUITE_TARGET_30=(.+)/i;
-    var path = regEx.exec(data);
-    RESOURCE_DIR = path[1];
-  }
-});
-
-$.ajax({
-  url:RESOURCE_DIR + "/tct/preconfigure.json",
-  dataType:"json",
-  data:{},
-  async:false,
-  success:function(data){
-    TEST_SMS_RECIPIENT = data[0]["MMS_RECIPIENT_1"];
-    TEST_SMS_RECIPIENT_2 = data[0]["MMS_RECIPIENT_2"];
-    TEST_DIR = "file://" + RESOURCE_DIR + "/tct-messaging-mms-tizen-tests/";
-  }
-});
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/support/messaging_common.js b/common/tct-messaging-mms-tizen-tests/messaging/support/messaging_common.js
deleted file mode 100755 (executable)
index 4ddac26..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        JungHyuk, Park <junghyuk.park@samsung.com>
-
-*/
-
-var TEST_SMS_RECIPIENT = ""; // this variable MUST be set before executing tests
-var TEST_SMS_RECIPIENT_2 = ""; // this variable MUST be set before executing tests
-
-var TEST_DIR = "";
-var imagePathToSet = TEST_DIR + "webapi-tizen-messaging-test_image.jpg";
-var soundPathToSet = TEST_DIR + "webapi-tizen-messaging-test_noise.mp3";
-
-//var imagePathToSet = "images/webapi-tizen-messaging-test_image.jpg";
-//var soundPathToSet = "music/webapi-tizen-messaging-test_noise.mp3";
-
-var MMStypeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.mms");
-var fromFilter = new tizen.AttributeFilter("from", "CONTAINS", TEST_SMS_RECIPIENT);
-
-var TYPE_MISMATCH_ERR  = 'TypeMismatchError';
-var INVALID_VALUES_ERR = 'InvalidValuesError';
-var NOT_FOUND_ERR      = 'NotFoundError';
-var NOT_SUPPORTED_ERR  = 'NotSupportedError';
-var IO_ERR             = 'IOError';
-var UNKNOWN_ERR        = 'UnknownError';
-var EXCEPTION_TYPE = "name";
-
-var MMS_RESEND_LIMIT = 10;
-
-var generateSubject = function () {
-    var datetime = new Date().getTime();
-    var count = 0;
-    var subject = function(datetime, count) {
-        return "sample subject: "+datetime+"-"+count;
-    }
-
-    generateSubject = function () {
-        count++;
-        return subject(datetime, count);
-    }
-    return subject(datetime, count);
-};
-
-function addDraft(t, service, initDict, onSuccess) {
-    var msg, addSuccess, addError, serviceListSuccess, serviceListError;
-
-    addError = t.step_func(function (error) {
-        assert_unreached("failed to add draft: " + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        onSuccess(msg);
-    });
-
-    msg = new tizen.Message(service.type, initDict);
-    service.messageStorage.addDraftMessage(msg, addSuccess, addError);
-}
-
-function addMMSDraft(t, service, initDict, onSuccess) {
-    addDraft(t, service, initDict, onSuccess);
-}
-
-function removeAllMessages(t, service, onSuccess) {
-    var msg, findSuccess, findError, removeSuccess, removeError, msgs;
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("failed to remove messages: " + error.message);
-    });
-
-    removeSuccess = t.step_func(function () {
-        onSuccess();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("failed to find messages: " + error.message);
-    });
-
-    findSuccess = t.step_func(function (msgs) {
-        if (msgs.length > 0) {
-            service.messageStorage.removeMessages(msgs, removeSuccess, removeError);
-        } else {
-            onSuccess();
-        }
-    });
-
-    t.step(function () {
-        assert_equals(service.type, "messaging.mms",
-            "Fix your test: unknown service type: " + service.type);
-        service.messageStorage.findMessages(MMStypeFilter, findSuccess, findError);
-    });
-}
-
-
-function sendMessage(t, service, msg, onSuccess, onError) {
-    var sendError, requestSending, resend=0;
-
-    sendError = t.step_func(function (error) {
-        if (resend <= MMS_RESEND_LIMIT) {
-            setTimeout(requestSending, 5000);
-        } else {
-            onError(error);
-        }
-    });
-
-    requestSending = t.step_func(function () {
-        resend++;
-        service.sendMessage(msg, onSuccess, sendError);
-    });
-
-    requestSending();
-}
-
-// change TEST_SMS_RECIPIENT and TEST_SMS_RECIPIENT_2
-document.write('<script src="../webrunner/jquery-1.10.2.min.js"></script>');
-document.write('<script src="support/getJsonConf.js"></script>');
diff --git a/common/tct-messaging-mms-tizen-tests/messaging/support/unitcommon.js b/common/tct-messaging-mms-tizen-tests/messaging/support/unitcommon.js
deleted file mode 100755 (executable)
index 67eb512..0000000
+++ /dev/null
@@ -1,564 +0,0 @@
-/*
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-
- */
-
-
-MIN_BYTE = -128;
-MAX_BYTE = 127;
-MIN_OCTET = 0;
-MAX_OCTET = 255;
-MIN_SHORT = -32768;
-MAX_SHORT = 32767;
-MIN_UNSIGNED_SHORT = 0;
-MAX_UNSIGNED_SHORT = 65535;
-MIN_LONG = -2147483648;
-MAX_LONG = 2147483647;
-MIN_UNSIGNED_LONG = 0;
-MAX_UNSIGNED_LONG = 4294967295;
-MIN_LONG_LONG = -9223372036854775808;
-MAX_LONG_LONG = 9223372036854775807;
-MIN_UNSIGNED_LONG_LONG = 0;
-MAX_UNSIGNED_LONG_LONG = 18446744073709551615;
-
-TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'};
-NOT_FOUND_EXCEPTION = {name: 'NotFoundError'};
-INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'};
-IO_EXCEPTION = {name: 'IOError'};
-SECURITY_EXCEPTION = {name: 'SecurityError'};
-
-
-(function () {
-   var head_src = document.head.innerHTML;
-   if (head_src.search(/\/testharness.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharness.js"></script>\n');
-   }
-   if (head_src.search(/\/testharnessreport.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\n');
-   }
-})();
-
-var _registered_types = {};
-
-function _resolve_registered_type(type) {
-    while (type in _registered_types) {
-        type = _registered_types[type];
-    }
-    return type;
-}
-
-/**
- * Method checks extra argument for none argument method.
- * The only check is that method will not throw an exception.
- * Example usage:
- * checkExtraArgument(tizen.notification, "removeAll");
- *
- * @param object object
- * @param methodName string - name of the method
- */
-function checkExtraArgument(object, methodName) {
-    var extraArgument = [
-        null,
-        undefined,
-        "Tizen",
-        1,
-        false,
-        ["one", "two"],
-        {argument: 1},
-        function () {}
-    ], i;
-
-    for (i = 0; i < extraArgument.length; i++) {
-        object[methodName](extraArgument[i]);
-    }
-}
-
-/**
- * Method to validate conversion.
- * Example usage:
- *   conversionTable = getTypeConversionExceptions("functionObject", true);
- *   for(i = 0; i < conversionTable.length; i++) {
- *       errorCallback = conversionTable[i][0];
- *       exceptionName = conversionTable[i][1];
- *
- *       assert_throws({name : exceptionName},
- *       function () {
- *           tizen.systemsetting.setProperty("HOME_SCREEN",
- *               propertyValue, successCallback, errorCallback);
- *       }, exceptionName + " should be thrown - given incorrect errorCallback.");
- *   }
- *
- * @param conversionType
- * @param isOptional
- * @returns table of tables which contain value (index 0) and exceptionName (index 1)
- *
- */
-function getTypeConversionExceptions(conversionType, isOptional) {
-    var exceptionName = "TypeMismatchError",
-        conversionTable;
-    switch (conversionType) {
-        case "enum":
-            conversionTable = [
-                [undefined, exceptionName],
-                [0, exceptionName],
-                [true, exceptionName],
-                ["dummyInvalidEnumValue", exceptionName],
-                [{ }, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "double":
-            conversionTable = [
-                [undefined, exceptionName],
-                [NaN, exceptionName],
-                [Number.POSITIVE_INFINITY, exceptionName],
-                [Number.NEGATIVE_INFINITY, exceptionName],
-                ["TIZEN", exceptionName],
-                [{ name : "TIZEN" }, exceptionName],
-                [function () { }, exceptionName]
-            ];
-            break;
-        case "object":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "functionObject":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [[], exceptionName],
-                [{ }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "array":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [{ }, exceptionName],
-                [function () { }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "dictionary":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        default:
-            assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
-    };
-
-    return conversionTable;
-}
-
-
-function assert_type(obj, type, description) {
-    var org_type = type, prop_name, prop_type, prop_value;
-
-    type = _resolve_registered_type(type);
-
-    if (typeof (type) === 'string') {
-        type = type.toLowerCase();
-        switch (type) {
-            case 'object':
-            case 'string':
-            case 'number':
-            case 'function':
-            case 'boolean':
-            case 'undefined':
-            case 'xml':
-                assert_equals(typeof (obj), type, description);
-                break;
-            case 'null':
-                assert_true(obj === null, description);
-                break;
-            case 'array':
-                assert_true(Array.isArray(obj), description);
-                break;
-            case 'date':
-                assert_true(obj instanceof Date, description);
-                break;
-            case 'byte':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'octet':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'short':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned short':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'long long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned long long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'double':
-                assert_equals(typeof (obj), 'number', description);
-                break;
-            default:
-                assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
-        }
-    } else if (typeof (type) === 'function') {
-        assert_true(obj instanceof type, description);
-    } else if (typeof (type) === 'object') {
-        for (prop_name in type) {
-            prop_type = type[prop_name];
-            if (prop_type === 'function') {
-                assert_inherits(obj, prop_name);
-                assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
-            } else {
-                assert_own_property(obj, prop_name);
-            }
-        }
-    } else {
-        assert_unreached('Fix your test. Wrong type ' + org_type);
-    }
-}
-
-function register_type(alias, type_spec) {
-    _registered_types[alias] = type_spec;
-}
-
-/**
- * Method to check if attribute is const.
- * Example usage:
- * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
- *
- * @param obj  object to test which  has const attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    var tmp;
-    if (expectedValue === valueToAssign) {
-        assert_unreached("Fix your test. The same values given for "  + attributeName +
-            " in 'value' and 'valueToSet' arguments.");
-    }
-    if (typeof (attributeName) === "string") {
-        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
-        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
-        if (typeof (expectedType) !== "undefined") {
-            if (expectedValue === null) {
-                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
-            } else {
-                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
-            }
-        } else {
-            assert_unreached("Fix your test. Wrong type " + expectedType);
-        }
-        tmp = obj[attributeName];
-        obj[attributeName] = valueToAssign;
-        assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
-    } else {
-        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
-    }
-}
-
-/**
- * Method to check if attribute is readonly.
- * Example usage:
- * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
- *
- * @param obj  object to test which  has readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
-}
-
-/**
- * Method to check if attribute can be set to null.
- * Example usage:
- * check_not_nullable(syncInfo, "mode");
- *
- * @param obj object to test which has not nullable attribute
- * @param attributeName attribute name.
- */
-function check_not_nullable(obj, attributeName)
-{   var old_value = obj[attributeName];
-    obj[attributeName] = null;
-    assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
-    obj[attributeName] = old_value;
-}
-
-/**
- * Method to check NoInterfaceObject
- * Example usage:
- * check_no_interface_object("BluetoothAdapter")
- *
- * @param interfaceName interface name
- */
-function check_no_interface_object(interfaceName) {
-    assert_throws({name: "TypeError"}, function () {
-        tizen[interfaceName]();
-    },"Wrong call as a function");
-    assert_throws({name: "TypeError"}, function () {
-        new tizen[interfaceName]();
-    },"Wrong call as a new function");
-    assert_throws({name: "TypeError"}, function () {
-        ({}) instanceof tizen[interfaceName];
-    },"instanceof exception");
-    assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
-}
-
-
-/**
- * Method to check Constructors
- * Example usage:
- * check_constructor("BluetoothAdapter")
- *
- * @param constructorName constructor name
- */
-
-function check_constructor(constructorName) {
-    assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
-    assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
-    assert_throws({
-        name: "TypeError"
-    }, function () {
-        tizen[constructorName]();
-    }, "Constructor called as function.");
-}
-
-/**
- * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
- * That method also checks if given method exists in a given object.
- * Example usage:
- * check_method_exists(tizen.notification, "get");
- *
- * @param obj object with method
- * @param methodName name of the method to check.
- */
-function check_method_exists(obj, methodName) {
-    assert_type(obj[methodName], 'function', "Method does not exist.");
-}
-
-/**
- * Method to check extensibility of given object.
- * Method checks if new attribute and method can be added.
- * Example usage:
- * check_extensibility(tizen.notification);
- *
- * @param obj object to check
- */
-function check_extensibility(obj) {
-    var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
-    obj.newDummyMethod = function() {
-        return dummyMethodResult;
-    }
-    assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
-
-    obj.newDummyAttribute = dummyAttribute;
-    assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
-}
-
-/**
- * Method to check if attribute can be modify.
- * Example usage:
- * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
- *
- * @param obj  object to test which has not readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    if (expectedValue === valueToAssign) {
-        assert_unreached("Fix your test. The same values given for "  + attributeName +
-            " in 'value' and 'valueToSet' arguments.");
-    }
-    if (typeof (attributeName) === "string") {
-        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
-        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
-        if (typeof (expectedType) !== "undefined") {
-            if (expectedValue === null) {
-                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
-            } else {
-                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
-            }
-        } else {
-            assert_unreached("Fix your test. Wrong type " + expectedType);
-        }
-        obj[attributeName] = valueToAssign;
-        assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
-    } else {
-        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
-    }
-}
-
-/**
- * Method to check if whole array can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_array_assignments(message, "to", false);
- *
- * @param obj object which has the array as its property
- * @param array name of the array to check
- * @param isNullable indicates if the array can be null
- */
-function check_invalid_array_assignments(obj, array, isNullable) {
-    var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
-        val = obj[array], i;
-
-    if (!isNullable) {
-        obj[array] = null;
-        assert_not_equals(obj[array], null, "Non-nullable array was set to null");
-        assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
-        assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
-    }
-
-    for (i = 0 ; i < args.length ; i++) {
-        obj[array] = args[i];
-        assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
-        assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
-    }
-}
-
-/**
- * Method to check if an object can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_object_assignments(message, "body", false);
- *
- * @param parentObj object which has the 'obj' object as its property
- * @param obj name of the object to check
- * @param isNullable indicates if the object can be null
- */
-function check_invalid_obj_assignments(parentObj, obj, isNullable) {
-    var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
-        val = parentObj[obj], i;
-
-    if (!isNullable) {
-        parentObj[obj] = null;
-        assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
-    }
-
-    for (i = 0 ; i < args.length ; i++) {
-        parentObj[obj] = args[i];
-        assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
-    }
-}
-
-/**
- * Method to validate conversion for listeners.
- * Example usage:
- * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
- * for(i = 0; i < incorrectListeners.length; i++) {
- *     packageInformationEventCallback  = incorrectListeners[i][0];
- *     exceptionName = incorrectListeners[i][1];
- *     assert_throws({name : exceptionName},
- *        function () {
- *             tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
- *         }, exceptionName + " should be thrown - given incorrect successCallback.");
- * }
- *
- *
- * @param callbackNames Array with names
- * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
- *
- */
-function getListenerConversionExceptions(callbackNames) {
-    var result = [], conversionTable, i, j, listenerName;
-    conversionTable = getTypeConversionExceptions("functionObject", false);
-
-    for (i = 0; i < callbackNames.length; i++) {
-        for (j = 0; j < conversionTable.length; j++) {
-            listenerName = {};
-            listenerName[callbackNames[i]] = conversionTable[j][0];
-            result.push([listenerName, conversionTable[j][1]]);
-        }
-    }
-
-    return result;
-}
diff --git a/common/tct-messaging-mms-tizen-tests/pack.py b/common/tct-messaging-mms-tizen-tests/pack.py
deleted file mode 100755 (executable)
index f1f0cb4..0000000
+++ /dev/null
@@ -1,1104 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright (c) 2014 Intel Corporation.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# * Redistributions of works must retain the original copyright notice, this
-#   list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the original copyright
-#   notice, this list of conditions and the following disclaimer in the
-#   documentation and/or other materials provided with the distribution.
-# * Neither the name of Intel Corporation nor the names of its contributors
-#   may be used to endorse or promote products derived from this work without
-#   specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# Authors:
-#         Fan, Yugang <yugang.fan@intel.com>
-
-import os
-import shutil
-import glob
-import time
-import sys
-import stat
-import random
-import json
-import logging
-import zipfile
-import signal
-import subprocess
-import imp
-from optparse import OptionParser
-
-imp.reload(sys)
-
-TOOL_VERSION = "v0.1"
-VERSION_FILE = "VERSION"
-DEFAULT_CMD_TIMEOUT = 600
-PKG_TYPES = ["apk", "xpk", "wgt", "apk-aio", "cordova-aio", "cordova", "embeddingapi"]
-PKG_MODES = ["shared", "embedded"]
-PKG_ARCHS = ["x86", "arm"]
-PKG_BLACK_LIST = []
-PKG_NAME = None
-BUILD_PARAMETERS = None
-BUILD_ROOT = None
-BUILD_ROOT_SRC = None
-BUILD_ROOT_SRC_PKG = None
-BUILD_ROOT_SRC_PKG_APP = None
-BUILD_ROOT_SRC_SUB_APP = None
-BUILD_ROOT_PKG = None
-BUILD_ROOT_PKG_APP = None
-LOG = None
-LOG_LEVEL = logging.DEBUG
-
-
-class ColorFormatter(logging.Formatter):
-
-    def __init__(self, msg):
-        logging.Formatter.__init__(self, msg)
-
-    def format(self, record):
-        red, green, yellow, blue = range(4)
-        colors = {'INFO': green, 'DEBUG': blue,
-                  'WARNING': yellow, 'ERROR': red}
-        msg = record.msg
-        if msg[0] == "+":
-            msg = "\33[01m" + msg[1:] + "\033[0m"
-        elif msg[0] == "=":
-            msg = "\33[07m" + msg + "\033[0m"
-        levelname = record.levelname
-        if levelname in colors:
-            msg_color = "\033[0;%dm" % (
-                31 + colors[levelname]) + msg + "\033[0m"
-            record.msg = msg_color
-
-        return logging.Formatter.format(self, record)
-
-
-def pidExists(pid):
-    if pid < 0:
-        return False
-    try:
-        os.kill(pid, 0)
-    except OSError:
-        return False
-    else:
-        return True
-
-
-def isWindows():
-    return sys.platform == "cygwin" or sys.platform.startswith("win")
-
-
-def killProcesses(ppid=None):
-    if isWindows():
-        subprocess.check_call("TASKKILL /F /PID %s /T" % ppid)
-    else:
-        ppid = str(ppid)
-        pidgrp = []
-
-        def GetChildPids(ppid):
-            command = "ps -ef | awk '{if ($3 ==%s) print $2;}'" % str(ppid)
-            pids = os.popen(command).read()
-            pids = pids.split()
-            return pids
-
-        pidgrp.extend(GetChildPids(ppid))
-        for pid in pidgrp:
-            pidgrp.extend(GetChildPids(pid))
-
-        pidgrp.insert(0, ppid)
-        while len(pidgrp) > 0:
-            pid = pidgrp.pop()
-            try:
-                os.kill(int(pid), signal.SIGKILL)
-                return True
-            except OSError:
-                try:
-                    os.popen("kill -9 %d" % int(pid))
-                    return True
-                except Exception:
-                    return False
-
-
-def safelyGetValue(origin_json=None, key=None):
-    if origin_json and key and key in origin_json:
-        return origin_json[key]
-    return None
-
-
-def checkContains(origin_str=None, key_str=None):
-    if origin_str.upper().find(key_str.upper()) >= 0:
-        return True
-    return False
-
-
-def getRandomStr():
-    str_pool = list("abcdefghijklmnopqrstuvwxyz1234567890")
-    random_str = ""
-    for i in range(15):
-        index = random.randint(0, len(str_pool) - 1)
-        random_str = random_str + str_pool[index]
-
-    return random_str
-
-
-def zipDir(dir_path, zip_file):
-    try:
-        if os.path.exists(zip_file):
-            if not doRemove([zip_file]):
-                return False
-        if not os.path.exists(os.path.dirname(zip_file)):
-            os.makedirs(os.path.dirname(zip_file))
-        z_file = zipfile.ZipFile(zip_file, "w")
-        orig_dir = os.getcwd()
-        os.chdir(dir_path)
-        for root, dirs, files in os.walk("."):
-            for i_file in files:
-                LOG.info("zip %s" % os.path.join(root, i_file))
-                z_file.write(os.path.join(root, i_file))
-        z_file.close()
-        os.chdir(orig_dir)
-    except Exception as e:
-        LOG.error("Fail to pack %s to %s: %s" % (dir_path, zip_file, e))
-        return False
-    LOG.info("Done to zip %s to %s" % (dir_path, zip_file))
-    return True
-
-
-def overwriteCopy(src, dest, symlinks=False, ignore=None):
-    if not os.path.exists(dest):
-        os.makedirs(dest)
-        shutil.copystat(src, dest)
-    sub_list = os.listdir(src)
-    if ignore:
-        excl = ignore(src, sub_list)
-        sub_list = [x for x in sub_list if x not in excl]
-    for i_sub in sub_list:
-        s_path = os.path.join(src, i_sub)
-        d_path = os.path.join(dest, i_sub)
-        if symlinks and os.path.islink(s_path):
-            if os.path.lexists(d_path):
-                os.remove(d_path)
-            os.symlink(os.readlink(s_path), d_path)
-            try:
-                s_path_s = os.lstat(s_path)
-                s_path_mode = stat.S_IMODE(s_path_s.st_mode)
-                os.lchmod(d_path, s_path_mode)
-            except Exception:
-                pass
-        elif os.path.isdir(s_path):
-            overwriteCopy(s_path, d_path, symlinks, ignore)
-        else:
-            shutil.copy2(s_path, d_path)
-
-
-def doCopy(src_item=None, dest_item=None):
-    LOG.info("Copying %s to %s" % (src_item, dest_item))
-    try:
-        if os.path.isdir(src_item):
-            overwriteCopy(src_item, dest_item, symlinks=True)
-        else:
-            if not os.path.exists(os.path.dirname(dest_item)):
-                LOG.info("Create non-existent dir: %s" %
-                         os.path.dirname(dest_item))
-                os.makedirs(os.path.dirname(dest_item))
-            shutil.copy2(src_item, dest_item)
-    except Exception as e:
-        LOG.error("Fail to copy file %s: %s" % (src_item, e))
-        return False
-
-    return True
-
-
-def doRemove(target_file_list=None):
-    for i_file in target_file_list:
-        LOG.info("Removing %s" % i_file)
-        try:
-            if os.path.isdir(i_file):
-                shutil.rmtree(i_file)
-            else:
-                os.remove(i_file)
-        except Exception as e:
-            LOG.error("Fail to remove file %s: %s" % (i_file, e))
-            return False
-    return True
-
-
-def updateCopylistPrefix(src_default, dest_default, src_sub, dest_sub):
-    src_new = ""
-    dest_new = ""
-    PACK_TOOL_TAG = "PACK-TOOL-ROOT"
-
-    if src_sub[0:len(PACK_TOOL_TAG)] == PACK_TOOL_TAG:
-        src_new = src_sub.replace(PACK_TOOL_TAG, BUILD_PARAMETERS.pkgpacktools)
-    else:
-        src_new = os.path.join(src_default, src_sub)
-
-    if dest_sub[0:len(PACK_TOOL_TAG)] == PACK_TOOL_TAG:
-        dest_new = dest_sub.replace(PACK_TOOL_TAG, BUILD_ROOT)
-    else:
-        dest_new = os.path.join(dest_default, dest_sub)
-
-    return (src_new, dest_new)
-
-
-def buildSRC(src=None, dest=None, build_json=None):
-    if not os.path.exists(src):
-        LOG.info("+Src dir does not exist, skip build src process ...")
-        return True
-    if not doCopy(src, dest):
-        return False
-    if "blacklist" in build_json:
-        if build_json["blacklist"].count("") > 0:
-            build_json["blacklist"].remove("")
-        black_file_list = []
-        for i_black in build_json["blacklist"]:
-            black_file_list = black_file_list + \
-                glob.glob(os.path.join(dest, i_black))
-
-        black_file_list = list(set(black_file_list))
-        if not doRemove(black_file_list):
-            return False
-
-    if "copylist" in build_json:
-        for i_s_key in build_json["copylist"].keys():
-            if i_s_key and build_json["copylist"][i_s_key]:
-                (src_updated, dest_updated) = updateCopylistPrefix(
-                    src, dest, i_s_key, build_json["copylist"][i_s_key])
-                if not doCopy(src_updated, dest_updated):
-                    return False
-
-    return True
-
-
-def exitHandler(return_code=1):
-    LOG.info("+Cleaning build root folder ...")
-    if not BUILD_PARAMETERS.bnotclean and os.path.exists(BUILD_ROOT):
-        if not doRemove([BUILD_ROOT]):
-            LOG.error("Fail to clean build root, exit ...")
-            sys.exit(1)
-
-    if return_code == 0:
-        LOG.info("================ DONE ================")
-    else:
-        LOG.error(
-            "================ Found Something Wrong !!! ================")
-    sys.exit(return_code)
-
-
-def prepareBuildRoot():
-    LOG.info("+Preparing build root folder ...")
-    global BUILD_ROOT
-    global BUILD_ROOT_SRC
-    global BUILD_ROOT_SRC_PKG
-    global BUILD_ROOT_SRC_PKG_APP
-    global BUILD_ROOT_SRC_SUB_APP
-    global BUILD_ROOT_PKG
-    global BUILD_ROOT_PKG_APP
-
-    while True:
-        BUILD_ROOT = os.path.join("/tmp", getRandomStr())
-        if os.path.exists(BUILD_ROOT):
-            continue
-        else:
-            break
-
-    BUILD_ROOT_SRC = os.path.join(BUILD_ROOT, PKG_NAME)
-    BUILD_ROOT_SRC_PKG = os.path.join(BUILD_ROOT, "pkg")
-    BUILD_ROOT_SRC_PKG_APP = os.path.join(BUILD_ROOT, "pkg-app")
-    BUILD_ROOT_SRC_SUB_APP = os.path.join(BUILD_ROOT, "sub-app")
-    BUILD_ROOT_PKG = os.path.join(BUILD_ROOT, "pkg", "opt", PKG_NAME)
-    BUILD_ROOT_PKG_APP = os.path.join(BUILD_ROOT, "pkg-app", "opt", PKG_NAME)
-
-    if not doCopy(BUILD_PARAMETERS.srcdir, BUILD_ROOT_SRC):
-        return False
-    if not doRemove(
-            glob.glob(os.path.join(BUILD_ROOT_SRC, "%s*.zip" % PKG_NAME))):
-        return False
-
-    return True
-
-
-def doCMD(cmd, time_out=DEFAULT_CMD_TIMEOUT, no_check_return=False):
-    LOG.info("Doing CMD: [ %s ]" % cmd)
-    pre_time = time.time()
-    cmd_proc = subprocess.Popen(args=cmd, shell=True)
-    while True:
-        cmd_exit_code = cmd_proc.poll()
-        elapsed_time = time.time() - pre_time
-        if cmd_exit_code is None:
-            if elapsed_time >= time_out:
-                killProcesses(ppid=cmd_proc.pid)
-                LOG.error("Timeout to exe CMD")
-                return False
-        else:
-            if not no_check_return and cmd_exit_code != 0:
-                LOG.error("Fail to exe CMD")
-                return False
-            break
-        time.sleep(2)
-    return True
-
-
-def doCMDWithOutput(cmd, time_out=DEFAULT_CMD_TIMEOUT):
-    LOG.info("Doing CMD: [ %s ]" % cmd)
-    pre_time = time.time()
-    output = []
-    cmd_return_code = 1
-    cmd_proc = subprocess.Popen(
-        cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
-
-    while True:
-        output_line = cmd_proc.stdout.readline().decode("UTF-8").strip("\r\n")
-        cmd_return_code = cmd_proc.poll()
-        elapsed_time = time.time() - pre_time
-        if cmd_return_code is None:
-            if elapsed_time >= time_out:
-                killProcesses(ppid=cmd_proc.pid)
-                LOG.error("Timeout to exe CMD")
-                return False
-        elif output_line == '' and cmd_return_code is not None:
-            break
-
-        sys.stdout.write("%s\n" % output_line)
-        sys.stdout.flush()
-        output.append(output_line)
-    if cmd_return_code != 0:
-        LOG.error("Fail to exe CMD")
-
-    return (cmd_return_code, output)
-
-
-def packXPK(build_json=None, app_src=None, app_dest=None, app_name=None):
-    pack_tool = os.path.join(BUILD_ROOT, "make_xpk.py")
-    if not os.path.exists(pack_tool):
-        if not doCopy(
-                os.path.join(BUILD_PARAMETERS.pkgpacktools, "make_xpk.py"),
-                pack_tool):
-            return False
-    orig_dir = os.getcwd()
-    os.chdir(BUILD_ROOT)
-    if os.path.exists("key.file"):
-        if not doRemove(["key.file"]):
-            os.chdir(orig_dir)
-            return False
-
-    key_file = safelyGetValue(build_json, "key-file")
-    if key_file == "key.file":
-        LOG.error(
-            "\"key.file\" is reserved name for default key file, "
-            "pls change the key file name ...")
-        os.chdir(orig_dir)
-        return False
-    if key_file:
-        pack_cmd = "python make_xpk.py %s %s -o %s" % (
-            app_src, key_file, os.path.join(app_dest, "%s.xpk" % app_name))
-    else:
-        pack_cmd = "python make_xpk.py %s key.file -o %s" % (
-            app_src, os.path.join(app_dest, "%s.xpk" % app_name))
-    if not doCMD(pack_cmd, DEFAULT_CMD_TIMEOUT):
-        os.chdir(orig_dir)
-        return False
-
-    os.chdir(orig_dir)
-    return True
-
-
-def packWGT(build_json=None, app_src=None, app_dest=None, app_name=None):
-    if not zipDir(app_src, os.path.join(app_dest, "%s.wgt" % app_name)):
-        return False
-
-    if BUILD_PARAMETERS.signature == True:
-        if safelyGetValue(build_json, "sign-flag") == "true":
-            if not os.path.exists(os.path.join(BUILD_ROOT, "signing")):
-                if not doCopy(
-                        os.path.join(BUILD_PARAMETERS.pkgpacktools, "signing"),
-                        os.path.join(BUILD_ROOT, "signing")):
-                    return False
-            signing_cmd = "%s --dist platform %s" % (
-                os.path.join(BUILD_ROOT, "signing", "sign-widget.sh"),
-                os.path.join(app_dest, "%s.wgt" % app_name))
-            if not doCMD(signing_cmd, DEFAULT_CMD_TIMEOUT):
-                return False
-
-    return True
-
-
-def packAPK(build_json=None, app_src=None, app_dest=None, app_name=None):
-    app_name = app_name.replace("-", "_")
-
-    if not os.path.exists(os.path.join(BUILD_ROOT, "crosswalk")):
-        if not doCopy(
-                os.path.join(BUILD_PARAMETERS.pkgpacktools, "crosswalk"),
-                os.path.join(BUILD_ROOT, "crosswalk")):
-            return False
-
-    files = glob.glob(os.path.join(BUILD_ROOT, "crosswalk", "*.apk"))
-    if files:
-        if not doRemove(files):
-            return False
-
-    ext_opt = ""
-    cmd_opt = ""
-    url_opt = ""
-    mode_opt = ""
-    arch_opt = ""
-    icon_opt = ""
-
-    common_opts = safelyGetValue(build_json, "apk-common-opts")
-    if common_opts is None:
-        common_opts = ""
-
-    tmp_opt = safelyGetValue(build_json, "apk-ext-opt")
-    if tmp_opt:
-        ext_opt = "--extensions='%s'" % os.path.join(BUILD_ROOT_SRC, tmp_opt)
-
-    tmp_opt = safelyGetValue(build_json, "apk-cmd-opt")
-    if tmp_opt:
-        cmd_opt = "--xwalk-command-line='%s'" % tmp_opt
-
-    tmp_opt = safelyGetValue(build_json, "apk-url-opt")
-    if tmp_opt:
-        url_opt = "--app-url='%s'" % tmp_opt
-
-    tmp_opt = safelyGetValue(build_json, "apk-mode-opt")
-    if tmp_opt:
-        if tmp_opt in PKG_MODES:
-            mode_opt = "--mode=%s" % tmp_opt
-        else:
-            LOG.error("Got wrong app mode: %s" % tmp_opt)
-            return False
-    else:
-        mode_opt = "--mode=%s" % BUILD_PARAMETERS.pkgmode
-
-    tmp_opt = safelyGetValue(build_json, "apk-arch-opt")
-    if tmp_opt:
-        if tmp_opt in PKG_ARCHS:
-            arch_opt = "--arch=%s" % tmp_opt
-        else:
-            LOG.error("Got wrong app arch: %s" % tmp_opt)
-            return False
-    else:
-        arch_opt = "--arch=%s" % BUILD_PARAMETERS.pkgarch
-
-    tmp_opt = safelyGetValue(build_json, "apk-icon-opt")
-    if tmp_opt:
-        icon_opt = "--icon=%s" % tmp_opt
-    elif tmp_opt == "":
-        icon_opt = ""
-    else:
-        icon_opt = "--icon=%s/icon.png" % app_src
-
-    if safelyGetValue(build_json, "apk-type") == "MANIFEST":
-        pack_cmd = "python make_apk.py --package=org.xwalk.%s " \
-            "--manifest=%s/manifest.json  %s %s %s %s %s" % (
-                app_name, app_src, mode_opt, arch_opt,
-                ext_opt, cmd_opt, common_opts)
-    elif safelyGetValue(build_json, "apk-type") == "HOSTEDAPP":
-        if not url_opt:
-            LOG.error(
-                "Fail to find the key \"apk-url-opt\" for hosted APP packing")
-            return False
-        pack_cmd = "python make_apk.py --package=org.xwalk.%s --name=%s %s " \
-                   "%s %s %s %s %s" % (
-                       app_name, app_name, mode_opt, arch_opt, ext_opt,
-                       cmd_opt, url_opt, common_opts)
-    else:
-        pack_cmd = "python make_apk.py --package=org.xwalk.%s --name=%s " \
-                   "--app-root=%s --app-local-path=index.html %s %s " \
-                   "%s %s %s %s" % (
-                       app_name, app_name, app_src, icon_opt, mode_opt,
-                       arch_opt, ext_opt, cmd_opt, common_opts)
-
-    orig_dir = os.getcwd()
-    os.chdir(os.path.join(BUILD_ROOT, "crosswalk"))
-    if not doCMD(pack_cmd, DEFAULT_CMD_TIMEOUT):
-        os.chdir(orig_dir)
-        return False
-
-    files = glob.glob(os.path.join(BUILD_ROOT, "crosswalk", "*.apk"))
-    if files:
-        if not doCopy(files[0], os.path.join(app_dest, "%s.apk" % app_name)):
-            os.chdir(orig_dir)
-            return False
-    else:
-        LOG.error("Fail to find the apk file")
-        os.chdir(orig_dir)
-        return False
-
-    os.chdir(orig_dir)
-    return True
-
-
-def packCordova(build_json=None, app_src=None, app_dest=None, app_name=None):
-    pack_tool = os.path.join(BUILD_ROOT, "cordova")
-    app_name = app_name.replace("-", "_")
-    if not os.path.exists(pack_tool):
-        if not doCopy(
-                os.path.join(BUILD_PARAMETERS.pkgpacktools, "cordova"),
-                pack_tool):
-            return False
-
-    plugin_tool = os.path.join(BUILD_ROOT, "cordova_plugins")
-    if not os.path.exists(plugin_tool):
-        if not doCopy(
-                os.path.join(BUILD_PARAMETERS.pkgpacktools, "cordova_plugins"),
-                plugin_tool):
-            return False
-
-    orig_dir = os.getcwd()
-    os.chdir(pack_tool)
-    pack_cmd = "bin/create %s org.xwalk.%s %s" % (
-        app_name, app_name, app_name)
-    if not doCMD(pack_cmd, DEFAULT_CMD_TIMEOUT):
-        os.chdir(orig_dir)
-        return False
-
-    os.chdir(os.path.join(pack_tool, app_name))
-    plugin_dirs = os.listdir(plugin_tool)
-    for i_dir in plugin_dirs:
-        i_plugin_dir = os.path.join(plugin_tool, i_dir)
-        plugin_install_cmd = "plugman install --platform android --project " \
-                             "./ --plugin %s" % i_plugin_dir
-        if not doCMD(plugin_install_cmd, DEFAULT_CMD_TIMEOUT):
-            os.chdir(orig_dir)
-            return False
-    os.chdir(pack_tool)
-
-    if not doCopy(app_src, os.path.join(pack_tool, app_name, "assets", "www")):
-        os.chdir(orig_dir)
-        return False
-    os.chdir(os.path.join(BUILD_ROOT, "cordova", app_name))
-    pack_cmd = "./cordova/build"
-    if not doCMD(pack_cmd, DEFAULT_CMD_TIMEOUT):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(os.path.join(
-            BUILD_ROOT, "cordova", app_name, "bin", "%s-debug.apk" %
-            app_name),
-            os.path.join(app_dest, "%s.apk" % app_name)):
-        os.chdir(orig_dir)
-        return False
-    os.chdir(orig_dir)
-    return True
-
-
-def packEmbeddingAPI(
-        build_json=None, app_src=None, app_dest=None, app_name=None):
-    app_name = app_name.replace("-", "_")
-
-    library_dir_name = safelyGetValue(build_json, "embeddingapi-library-name")
-    if not library_dir_name:
-        LOG.error("Fail to get embeddingapi-library-name ...")
-        return False
-
-    new_library_dir_name = "core_library"
-    pack_tool = os.path.join(app_src, "..", new_library_dir_name)
-
-    if os.path.exists(pack_tool):
-        if not doRemove([pack_tool]):
-            return False
-
-    if not doCopy(
-            os.path.join(BUILD_PARAMETERS.pkgpacktools, library_dir_name),
-            pack_tool):
-        return False
-
-    if os.path.exists(os.path.join(pack_tool, "bin", "res", "crunch")):
-        if not doRemove([os.path.join(pack_tool, "bin", "res", "crunch")]):
-            return False
-
-    orig_dir = os.getcwd()
-    android_project_path = os.path.join(app_src, "android-project")
-    try:
-        os.makedirs(android_project_path)
-    except Exception as e:
-        LOG.error("Fail to create tmp project dir: %s" % e)
-        return False
-
-    (return_code, output) = doCMDWithOutput("android list target")
-    api_level = ""
-    for line in output:
-        if "API level" in line:
-            api_level = line.split(":")[1].strip()
-            break
-    if not api_level:
-        LOG.error("Fail to get Android API Level")
-        os.chdir(orig_dir)
-        return False
-
-    android_project_cmd = "android create project --name %s --target " \
-                          "android-%s --path %s --package com.%s " \
-                          "--activity MainActivity" % (
-                              app_name, api_level, android_project_path, app_name)
-    if not doCMD(android_project_cmd):
-        os.chdir(orig_dir)
-        return False
-
-    try:
-        update_file = open(
-            os.path.join(android_project_path, "project.properties"), "a+")
-        update_file.writelines(
-            "{0}\n".format(
-                "android.library.reference.1=../%s" %
-                new_library_dir_name))
-        update_file.close()
-    except Exception as e:
-        LOG.error(
-            "Fail to update %s: %s" %
-            (os.path.join(
-                android_project_path,
-                "project.properties"),
-                e))
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(os.path.join(android_project_path, "build.xml"),
-                  os.path.join(app_src, "build.xml")):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(
-            os.path.join(android_project_path, "project.properties"),
-            os.path.join(app_src, "project.properties")):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(
-            os.path.join(android_project_path, "local.properties"),
-            os.path.join(app_src, "local.properties")):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(
-            os.path.join(android_project_path, "local.properties"),
-            os.path.join(pack_tool, "local.properties")):
-        os.chdir(orig_dir)
-        return False
-
-    os.chdir(app_src)
-    if not doCMD("ant debug"):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(
-            os.path.join(app_src, "bin", "%s-debug.apk" % app_name),
-            os.path.join(app_dest, "%s.apk" % app_name)):
-        os.chdir(orig_dir)
-        return False
-    os.chdir(orig_dir)
-    return True
-
-
-def packAPP(build_json=None, app_src=None, app_dest=None, app_name=None):
-    LOG.info("Packing %s(%s)" % (app_name, app_src))
-    if not os.path.exists(app_dest):
-        try:
-            os.makedirs(app_dest)
-        except Exception as e:
-            LOG.error("Fail to init package install dest dir: %s" % e)
-            return False
-
-    if checkContains(BUILD_PARAMETERS.pkgtype, "XPK"):
-        if not packXPK(build_json, app_src, app_dest, app_name):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "WGT"):
-        if not packWGT(build_json, app_src, app_dest, app_name):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "APK"):
-        if not packAPK(build_json, app_src, app_dest, app_name):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "CORDOVA"):
-        if not packCordova(build_json, app_src, app_dest, app_name):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "EMBEDDINGAPI"):
-        if not packEmbeddingAPI(build_json, app_src, app_dest, app_name):
-            return False
-    else:
-        LOG.error("Got wrong pkg type: %s" % BUILD_PARAMETERS.pkgtype)
-        return False
-
-    LOG.info("Success to pack APP: %s" % app_name)
-    return True
-
-
-def createIndexFile(index_file_path=None, hosted_app=None):
-    try:
-        if hosted_app:
-            index_url = "http://127.0.0.1/opt/%s/webrunner/index.html?" \
-                "testsuite=../tests.xml&testprefix=../../.." % PKG_NAME
-        else:
-            index_url = "opt/%s/webrunner/index.html?testsuite=../tests.xml" \
-                        "&testprefix=../../.." % PKG_NAME
-        html_content = "<!doctype html><head><meta http-equiv='Refresh' " \
-                       "content='1; url=%s'></head>" % index_url
-        index_file = open(index_file_path, "w")
-        index_file.write(html_content)
-        index_file.close()
-    except Exception as e:
-        LOG.error("Fail to create index.html for top-app: %s" % e)
-        return False
-    LOG.info("Success to create index file %s" % index_file_path)
-    return True
-
-
-def buildSubAPP(app_dir=None, build_json=None, app_dest_default=None):
-    app_dir_inside = safelyGetValue(build_json, "app-dir")
-    if app_dir_inside:
-        app_dir = app_dir_inside
-    LOG.info("+Building sub APP(s) from %s ..." % app_dir)
-    app_dir = os.path.join(BUILD_ROOT_SRC, app_dir)
-    app_name = safelyGetValue(build_json, "app-name")
-    if not app_name:
-        app_name = os.path.basename(app_dir)
-
-    app_src = os.path.join(BUILD_ROOT_SRC_SUB_APP, app_name)
-    if buildSRC(app_dir, app_src, build_json):
-        app_dest = safelyGetValue(build_json, "install-path")
-        if app_dest:
-            app_dest = os.path.join(app_dest_default, app_dest)
-        else:
-            app_dest = app_dest_default
-
-        if safelyGetValue(build_json, "all-apps") == "true":
-            app_dirs = os.listdir(app_src)
-            apps_num = 0
-            for i_app_dir in app_dirs:
-                if os.path.isdir(os.path.join(app_src, i_app_dir)):
-                    i_app_name = os.path.basename(i_app_dir)
-                    if not packAPP(
-                            build_json, os.path.join(app_src, i_app_name),
-                            app_dest, i_app_name):
-                        return False
-                    else:
-                        apps_num = apps_num + 1
-            if apps_num > 0:
-                LOG.info("Totally packed %d apps in %s" % (apps_num, app_dir))
-                return True
-        else:
-            return packAPP(build_json, app_src, app_dest, app_name)
-    return False
-
-
-def buildPKGAPP(build_json=None):
-    LOG.info("+Building package APP ...")
-    if not doCopy(os.path.join(BUILD_ROOT_SRC, "icon.png"),
-                  os.path.join(BUILD_ROOT_SRC_PKG_APP, "icon.png")):
-        return False
-
-    if checkContains(BUILD_PARAMETERS.pkgtype, "XPK"):
-        if not doCopy(
-                os.path.join(BUILD_ROOT_SRC, "manifest.json"),
-                os.path.join(BUILD_ROOT_SRC_PKG_APP, "manifest.json")):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "WGT"):
-        if not doCopy(os.path.join(BUILD_ROOT_SRC, "config.xml"),
-                      os.path.join(BUILD_ROOT_SRC_PKG_APP, "config.xml")):
-            return False
-
-    hosted_app = False
-    if safelyGetValue(build_json, "hosted-app") == "true":
-        hosted_app = True
-    if not createIndexFile(
-            os.path.join(BUILD_ROOT_SRC_PKG_APP, "index.html"), hosted_app):
-        return False
-
-    if not hosted_app:
-        if "blacklist" not in build_json:
-            build_json.update({"blacklist": []})
-        build_json["blacklist"].extend(PKG_BLACK_LIST)
-        if not buildSRC(BUILD_ROOT_SRC, BUILD_ROOT_PKG_APP, build_json):
-            return False
-
-        if "subapp-list" in build_json:
-            for i_sub_app in build_json["subapp-list"].keys():
-                if not buildSubAPP(
-                        i_sub_app, build_json["subapp-list"][i_sub_app],
-                        BUILD_ROOT_PKG_APP):
-                    return False
-
-    if not packAPP(
-            build_json, BUILD_ROOT_SRC_PKG_APP, BUILD_ROOT_PKG, PKG_NAME):
-        return False
-
-    return True
-
-
-def buildPKG(build_json=None):
-    if "blacklist" not in build_json:
-        build_json.update({"blacklist": []})
-    build_json["blacklist"].extend(PKG_BLACK_LIST)
-    if not buildSRC(BUILD_ROOT_SRC, BUILD_ROOT_PKG, build_json):
-        return False
-
-    if "subapp-list" in build_json:
-        for i_sub_app in build_json["subapp-list"].keys():
-            if not buildSubAPP(
-                    i_sub_app, build_json["subapp-list"][i_sub_app],
-                    BUILD_ROOT_PKG):
-                return False
-
-    if "pkg-app" in build_json:
-        if not buildPKGAPP(build_json["pkg-app"]):
-            return False
-
-    return True
-
-
-def main():
-    global LOG
-    LOG = logging.getLogger("pack-tool")
-    LOG.setLevel(LOG_LEVEL)
-    stream_handler = logging.StreamHandler()
-    stream_handler.setLevel(LOG_LEVEL)
-    stream_formatter = ColorFormatter("[%(asctime)s] %(message)s")
-    stream_handler.setFormatter(stream_formatter)
-    LOG.addHandler(stream_handler)
-
-    try:
-        usage = "Usage: ./pack.py -t apk -m shared -a x86"
-        opts_parser = OptionParser(usage=usage)
-        opts_parser.add_option(
-            "-c",
-            "--cfg",
-            dest="pkgcfg",
-            help="specify the path of config json file")
-        opts_parser.add_option(
-            "-t",
-            "--type",
-            dest="pkgtype",
-            help="specify the pkg type, e.g. apk, xpk, wgt ...")
-        opts_parser.add_option(
-            "-m",
-            "--mode",
-            dest="pkgmode",
-            help="specify the apk mode, e.g. shared, embedded")
-        opts_parser.add_option(
-            "-a",
-            "--arch",
-            dest="pkgarch",
-            help="specify the apk arch, e.g. x86, arm")
-        opts_parser.add_option(
-            "-d",
-            "--dest",
-            dest="destdir",
-            help="specify the installation folder for packed package")
-        opts_parser.add_option(
-            "-s",
-            "--src",
-            dest="srcdir",
-            help="specify the path of pkg resource for packing")
-        opts_parser.add_option(
-            "--tools",
-            dest="pkgpacktools",
-            help="specify the parent folder of pack tools")
-        opts_parser.add_option(
-            "--notclean",
-            dest="bnotclean",
-            action="store_true",
-            help="disable the build root clean after the packing")
-        opts_parser.add_option(
-            "--sign",
-            dest="signature",
-            action="store_true",
-            help="signature operation will be done when packing wgt")
-        opts_parser.add_option(
-            "-v",
-            "--version",
-            dest="bversion",
-            action="store_true",
-            help="show this tool's version")
-        opts_parser.add_option(
-            "--pkg-version",
-            dest="pkgversion",
-            help="specify the pkg version, e.g. 0.0.0.1")
-
-        if len(sys.argv) == 1:
-            sys.argv.append("-h")
-
-        global BUILD_PARAMETERS
-        (BUILD_PARAMETERS, args) = opts_parser.parse_args()
-    except Exception as e:
-        LOG.error("Got wrong options: %s, exit ..." % e)
-        sys.exit(1)
-
-    if BUILD_PARAMETERS.bversion:
-        LOG.info("Version: %s" % TOOL_VERSION)
-        sys.exit(0)
-
-    if not BUILD_PARAMETERS.srcdir:
-        BUILD_PARAMETERS.srcdir = os.getcwd()
-    BUILD_PARAMETERS.srcdir = os.path.expanduser(BUILD_PARAMETERS.srcdir)
-
-    if not os.path.exists(
-            os.path.join(BUILD_PARAMETERS.srcdir, "..", "..", VERSION_FILE)):
-        if not os.path.exists(
-                os.path.join(BUILD_PARAMETERS.srcdir, "..", VERSION_FILE)):
-            if not os.path.exists(
-                    os.path.join(BUILD_PARAMETERS.srcdir, VERSION_FILE)):
-                LOG.info(
-                    "Not found pkg version file, try to use option --pkg-version")
-                pkg_version_file_path = None
-            else:
-                pkg_version_file_path = os.path.join(
-                    BUILD_PARAMETERS.srcdir, VERSION_FILE)
-        else:
-            pkg_version_file_path = os.path.join(
-                BUILD_PARAMETERS.srcdir, "..", VERSION_FILE)
-    else:
-        pkg_version_file_path = os.path.join(
-            BUILD_PARAMETERS.srcdir, "..", "..", VERSION_FILE)
-
-    try:
-        pkg_main_version = 0
-        pkg_release_version = 0
-        if BUILD_PARAMETERS.pkgversion:
-            LOG.info("Using %s as pkg version " % BUILD_PARAMETERS.pkgversion)
-            pkg_main_version = BUILD_PARAMETERS.pkgversion
-        else:
-            if pkg_version_file_path is not None:
-                LOG.info("Using pkg version file: %s" % pkg_version_file_path)
-                with open(pkg_version_file_path, "rt") as pkg_version_file:
-                    pkg_version_raw = pkg_version_file.read()
-                    pkg_version_file.close()
-                    pkg_version_json = json.loads(pkg_version_raw)
-                    pkg_main_version = pkg_version_json["main-version"]
-                    pkg_release_version = pkg_version_json["release-version"]
-    except Exception as e:
-        LOG.error("Fail to read pkg version file: %s, exit ..." % e)
-        sys.exit(1)
-
-    if not BUILD_PARAMETERS.pkgtype:
-        LOG.error("No pkg type provided, exit ...")
-        sys.exit(1)
-    elif not BUILD_PARAMETERS.pkgtype in PKG_TYPES:
-        LOG.error("Wrong pkg type, only support: %s, exit ..." %
-                  PKG_TYPES)
-        sys.exit(1)
-
-    if BUILD_PARAMETERS.pkgtype == "apk" or \
-       BUILD_PARAMETERS.pkgtype == "apk-aio":
-        if not BUILD_PARAMETERS.pkgmode:
-            LOG.error("No pkg mode option provided, exit ...")
-            sys.exit(1)
-        elif not BUILD_PARAMETERS.pkgmode in PKG_MODES:
-            LOG.error(
-                "Wrong pkg mode option provided, only support:%s, exit ..." %
-                PKG_MODES)
-            sys.exit(1)
-
-        if not BUILD_PARAMETERS.pkgarch:
-            LOG.error("No pkg arch option provided, exit ...")
-            sys.exit(1)
-        elif not BUILD_PARAMETERS.pkgarch in PKG_ARCHS:
-            LOG.error(
-                "Wrong pkg arch option provided, only support:%s, exit ..." %
-                PKG_ARCHS)
-            sys.exit(1)
-
-    if BUILD_PARAMETERS.pkgtype == "apk-aio" or \
-       BUILD_PARAMETERS.pkgtype == "cordova-aio":
-        if not BUILD_PARAMETERS.destdir or not os.path.exists(
-                BUILD_PARAMETERS.destdir):
-            LOG.error("No all-in-one installation dest dir found, exit ...")
-            sys.exit(1)
-
-    elif not BUILD_PARAMETERS.destdir:
-        BUILD_PARAMETERS.destdir = BUILD_PARAMETERS.srcdir
-    BUILD_PARAMETERS.destdir = os.path.expanduser(BUILD_PARAMETERS.destdir)
-
-    if not BUILD_PARAMETERS.pkgpacktools:
-        BUILD_PARAMETERS.pkgpacktools = os.path.join(
-            BUILD_PARAMETERS.srcdir, "..", "..", "..", "tools")
-    BUILD_PARAMETERS.pkgpacktools = os.path.expanduser(
-        BUILD_PARAMETERS.pkgpacktools)
-
-    config_json = None
-    if BUILD_PARAMETERS.pkgcfg:
-        config_json_file_path = BUILD_PARAMETERS.pkgcfg
-    else:
-        config_json_file_path = os.path.join(
-            BUILD_PARAMETERS.srcdir, "suite.json")
-    try:
-        LOG.info("Using config json file: %s" % config_json_file_path)
-        with open(config_json_file_path, "rt") as config_json_file:
-            config_raw = config_json_file.read()
-            config_json_file.close()
-            config_json = json.loads(config_raw)
-    except Exception as e:
-        LOG.error("Fail to read config json file: %s, exit ..." % e)
-        sys.exit(1)
-
-    global PKG_NAME
-    PKG_NAME = safelyGetValue(config_json, "pkg-name")
-    if not PKG_NAME:
-        PKG_NAME = os.path.basename(BUILD_PARAMETERS.srcdir)
-        LOG.warning(
-            "Fail to read pkg name from json, "
-            "using src dir name as pkg name ...")
-
-    LOG.info("================= %s (%s-%s) ================" %
-             (PKG_NAME, pkg_main_version, pkg_release_version))
-
-    if not safelyGetValue(config_json, "pkg-list"):
-        LOG.error("Fail to read pkg-list, exit ...")
-        sys.exit(1)
-
-    pkg_json = None
-    for i_pkg in config_json["pkg-list"].keys():
-        i_pkg_list = i_pkg.replace(" ", "").split(",")
-        if BUILD_PARAMETERS.pkgtype in i_pkg_list:
-            pkg_json = config_json["pkg-list"][i_pkg]
-
-    if not pkg_json:
-        LOG.error("Fail to read pkg json, exit ...")
-        sys.exit(1)
-
-    if not prepareBuildRoot():
-        exitHandler(1)
-
-    if "pkg-blacklist" in config_json:
-        PKG_BLACK_LIST.extend(config_json["pkg-blacklist"])
-
-    if not buildPKG(pkg_json):
-        exitHandler(1)
-
-    LOG.info("+Building package ...")
-    if BUILD_PARAMETERS.pkgtype == "apk-aio" or \
-       BUILD_PARAMETERS.pkgtype == "cordova-aio":
-        pkg_file_list = os.listdir(os.path.join(BUILD_ROOT, "pkg"))
-        for i_file in pkg_file_list:
-            if not doCopy(
-                    os.path.join(BUILD_ROOT, "pkg", i_file),
-                    os.path.join(BUILD_PARAMETERS.destdir, i_file)):
-                exitHandler(1)
-    else:
-        pkg_file = os.path.join(
-            BUILD_PARAMETERS.destdir,
-            "%s-%s.%s.zip" %
-            (PKG_NAME,
-             pkg_main_version,
-             pkg_release_version))
-             
-
-        if not zipDir(os.path.join(BUILD_ROOT, "pkg"), pkg_file):
-            exitHandler(1)
-
-if __name__ == "__main__":
-    main()
-    exitHandler(0)
diff --git a/common/tct-messaging-mms-tizen-tests/resources/COPYING b/common/tct-messaging-mms-tizen-tests/resources/COPYING
deleted file mode 100755 (executable)
index 1866d2d..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-All test files under this folder except COPYING and Makefile.am come from
-https://github.com/w3c/testharness.js (commit 81649066b179216eed02dfb58f631eb8bb6c7629)
-without any modification besides the necessary adjustment on reference path to test harness
-
-These tests are copyright by W3C and/or the author listed in the test
-file. The tests are dual-licensed under the W3C Test Suite License:
-http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
-and the BSD 3-clause License:
-http://www.w3.org/Consortium/Legal/2008/03-bsd-license
-under W3C's test suite licensing policy:
-http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
-
diff --git a/common/tct-messaging-mms-tizen-tests/resources/testharness.css b/common/tct-messaging-mms-tizen-tests/resources/testharness.css
deleted file mode 100755 (executable)
index 365084f..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-html {
-    font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;
-}
-
-#log .warning,
-#log .warning a {
-  color: black;
-  background: yellow;
-}
-
-#log .error,
-#log .error a {
-  color: white;
-  background: red;
-}
-
-#log pre {
-  border: 1px solid black;
-  padding: 1em;
-}
-
-section#summary {
-    margin-bottom:1em;
-}
-
-table#results {
-    border-collapse:collapse;
-    table-layout:fixed;
-    width:100%;
-}
-
-table#results th:first-child,
-table#results td:first-child {
-    width:4em;
-}
-
-table#results th:last-child,
-table#results td:last-child {
-    width:50%;
-}
-
-table#results.assertions th:last-child,
-table#results.assertions td:last-child {
-    width:35%;
-}
-
-table#results th {
-    padding:0;
-    padding-bottom:0.5em;
-    border-bottom:medium solid black;
-}
-
-table#results td {
-    padding:1em;
-    padding-bottom:0.5em;
-    border-bottom:thin solid black;
-}
-
-tr.pass > td:first-child {
-    color:green;
-}
-
-tr.fail > td:first-child {
-    color:red;
-}
-
-tr.timeout > td:first-child {
-    color:red;
-}
-
-tr.notrun > td:first-child {
-    color:blue;
-}
-
-.pass > td:first-child, .fail > td:first-child, .timeout > td:first-child, .notrun > td:first-child {
-    font-variant:small-caps;
-}
-
-table#results span {
-    display:block;
-}
-
-table#results span.expected {
-    font-family:DejaVu Sans Mono, Bitstream Vera Sans Mono, Monospace;
-    white-space:pre;
-}
-
-table#results span.actual {
-    font-family:DejaVu Sans Mono, Bitstream Vera Sans Mono, Monospace;
-    white-space:pre;
-}
-
diff --git a/common/tct-messaging-mms-tizen-tests/resources/testharness.js b/common/tct-messaging-mms-tizen-tests/resources/testharness.js
deleted file mode 100755 (executable)
index 9a6a779..0000000
+++ /dev/null
@@ -1,2353 +0,0 @@
-/*global self*/
-/*jshint latedef: nofunc*/
-/*
-Distributed under both the W3C Test Suite License [1] and the W3C
-3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
-policies and contribution forms [3].
-
-[1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
-[2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
-[3] http://www.w3.org/2004/10/27-testcases
-*/
-
-/* Documentation is in docs/api.md */
-
-(function ()
-{
-    var debug = false;
-    // default timeout is 10 seconds, test can override if needed
-    var settings = {
-        output:true,
-        harness_timeout:{
-            "normal":90000,
-            "long":90000
-        },
-        test_timeout:null
-    };
-
-    var xhtml_ns = "http://www.w3.org/1999/xhtml";
-
-    /*
-     * TestEnvironment is an abstraction for the environment in which the test
-     * harness is used. Each implementation of a test environment has to provide
-     * the following interface:
-     *
-     * interface TestEnvironment {
-     *   // Invoked after the global 'tests' object has been created and it's
-     *   // safe to call add_*_callback() to register event handlers.
-     *   void on_tests_ready();
-     *
-     *   // Invoked after setup() has been called to notify the test environment
-     *   // of changes to the test harness properties.
-     *   void on_new_harness_properties(object properties);
-     *
-     *   // Should return a new unique default test name.
-     *   DOMString next_default_test_name();
-     *
-     *   // Should return the test harness timeout duration in milliseconds.
-     *   float test_timeout();
-     *
-     *   // Should return the global scope object.
-     *   object global_scope();
-     * };
-     */
-
-    /*
-     * A test environment with a DOM. The global object is 'window'. By default
-     * test results are displayed in a table. Any parent windows receive
-     * callbacks or messages via postMessage() when test events occur. See
-     * apisample11.html and apisample12.html.
-     */
-    function WindowTestEnvironment() {
-        this.name_counter = 0;
-        this.window_cache = null;
-        this.output_handler = null;
-        this.all_loaded = false;
-        var this_obj = this;
-        on_event(window, 'load', function() {
-            this_obj.all_loaded = true;
-        });
-    }
-
-    WindowTestEnvironment.prototype._dispatch = function(selector, callback_args, message_arg) {
-        this._forEach_windows(
-                function(w, is_same_origin) {
-                    if (is_same_origin && selector in w) {
-                        try {
-                            w[selector].apply(undefined, callback_args);
-                        } catch (e) {
-                            if (debug) {
-                                throw e;
-                            }
-                        }
-                    }
-                    if (supports_post_message(w) && w !== self) {
-                        w.postMessage(message_arg, "*");
-                    }
-                });
-    };
-
-    WindowTestEnvironment.prototype._forEach_windows = function(callback) {
-        // Iterate of the the windows [self ... top, opener]. The callback is passed
-        // two objects, the first one is the windows object itself, the second one
-        // is a boolean indicating whether or not its on the same origin as the
-        // current window.
-        var cache = this.window_cache;
-        if (!cache) {
-            cache = [[self, true]];
-            var w = self;
-            var i = 0;
-            var so;
-            var origins = location.ancestorOrigins;
-            while (w != w.parent) {
-                w = w.parent;
-                // In WebKit, calls to parent windows' properties that aren't on the same
-                // origin cause an error message to be displayed in the error console but
-                // don't throw an exception. This is a deviation from the current HTML5
-                // spec. See: https://bugs.webkit.org/show_bug.cgi?id=43504
-                // The problem with WebKit's behavior is that it pollutes the error console
-                // with error messages that can't be caught.
-                //
-                // This issue can be mitigated by relying on the (for now) proprietary
-                // `location.ancestorOrigins` property which returns an ordered list of
-                // the origins of enclosing windows. See:
-                // http://trac.webkit.org/changeset/113945.
-                if (origins) {
-                    so = (location.origin == origins[i]);
-                } else {
-                    so = is_same_origin(w);
-                }
-                cache.push([w, so]);
-                i++;
-            }
-            w = window.opener;
-            if (w) {
-                // window.opener isn't included in the `location.ancestorOrigins` prop.
-                // We'll just have to deal with a simple check and an error msg on WebKit
-                // browsers in this case.
-                cache.push([w, is_same_origin(w)]);
-            }
-            this.window_cache = cache;
-        }
-
-        forEach(cache,
-                function(a) {
-                    callback.apply(null, a);
-                });
-    };
-
-    WindowTestEnvironment.prototype.on_tests_ready = function() {
-        var output = new Output();
-        this.output_handler = output;
-
-        var this_obj = this;
-        add_start_callback(function (properties) {
-            this_obj.output_handler.init(properties);
-            this_obj._dispatch("start_callback", [properties],
-                           { type: "start", properties: properties });
-        });
-        add_test_state_callback(function(test) {
-            this_obj.output_handler.show_status();
-            this_obj._dispatch("test_state_callback", [test],
-                               { type: "test_state", test: test.structured_clone() });
-        });
-        add_result_callback(function (test) {
-            this_obj.output_handler.show_status();
-            this_obj._dispatch("result_callback", [test],
-                               { type: "result", test: test.structured_clone() });
-        });
-        add_completion_callback(function (tests, harness_status) {
-            this_obj.output_handler.show_results(tests, harness_status);
-            var cloned_tests = map(tests, function(test) { return test.structured_clone(); });
-            this_obj._dispatch("completion_callback", [tests, harness_status],
-                               { type: "complete", tests: cloned_tests,
-                                 status: harness_status.structured_clone() });
-        });
-    };
-
-    WindowTestEnvironment.prototype.next_default_test_name = function() {
-        //Don't use document.title to work around an Opera bug in XHTML documents
-        var title = document.getElementsByTagName("title")[0];
-        var prefix = (title && title.firstChild && title.firstChild.data) || "Untitled";
-        var suffix = this.name_counter > 0 ? " " + this.name_counter : "";
-        this.name_counter++;
-        return prefix + suffix;
-    };
-
-    WindowTestEnvironment.prototype.on_new_harness_properties = function(properties) {
-        this.output_handler.setup(properties);
-    };
-
-    WindowTestEnvironment.prototype.add_on_loaded_callback = function(callback) {
-        on_event(window, 'load', callback);
-    };
-
-    WindowTestEnvironment.prototype.test_timeout = function() {
-        var metas = document.getElementsByTagName("meta");
-        for (var i = 0; i < metas.length; i++) {
-            if (metas[i].name == "timeout") {
-                if (metas[i].content == "long") {
-                    return settings.harness_timeout.long;
-                }
-                break;
-            }
-        }
-        return settings.harness_timeout.normal;
-    };
-
-    WindowTestEnvironment.prototype.global_scope = function() {
-        return window;
-    };
-
-    /*
-     * Base TestEnvironment implementation for a generic web worker.
-     *
-     * Workers accumulate test results. One or more clients can connect and
-     * retrieve results from a worker at any time.
-     *
-     * WorkerTestEnvironment supports communicating with a client via a
-     * MessagePort.  The mechanism for determining the appropriate MessagePort
-     * for communicating with a client depends on the type of worker and is
-     * implemented by the various specializations of WorkerTestEnvironment
-     * below.
-     *
-     * A client document using testharness can use fetch_tests_from_worker() to
-     * retrieve results from a worker. See apisample16.html.
-     */
-    function WorkerTestEnvironment() {
-        this.name_counter = 0;
-        this.all_loaded = true;
-        this.message_list = [];
-        this.message_ports = [];
-    }
-
-    WorkerTestEnvironment.prototype._dispatch = function(message) {
-        this.message_list.push(message);
-        for (var i = 0; i < this.message_ports.length; ++i)
-        {
-            this.message_ports[i].postMessage(message);
-        }
-    };
-
-    // The only requirement is that port has a postMessage() method. It doesn't
-    // have to be an instance of a MessagePort, and often isn't.
-    WorkerTestEnvironment.prototype._add_message_port = function(port) {
-        this.message_ports.push(port);
-        for (var i = 0; i < this.message_list.length; ++i)
-        {
-            port.postMessage(this.message_list[i]);
-        }
-    };
-
-    WorkerTestEnvironment.prototype.next_default_test_name = function() {
-        var suffix = this.name_counter > 0 ? " " + this.name_counter : "";
-        this.name_counter++;
-        return "Untitled" + suffix;
-    };
-
-    WorkerTestEnvironment.prototype.on_new_harness_properties = function() {};
-
-    WorkerTestEnvironment.prototype.on_tests_ready = function() {
-        var this_obj = this;
-        add_start_callback(
-                function(properties) {
-                    this_obj._dispatch({
-                        type: "start",
-                        properties: properties,
-                    });
-                });
-        add_test_state_callback(
-                function(test) {
-                    this_obj._dispatch({
-                        type: "test_state",
-                        test: test.structured_clone()
-                    });
-                });
-        add_result_callback(
-                function(test) {
-                    this_obj._dispatch({
-                        type: "result",
-                        test: test.structured_clone()
-                    });
-                });
-        add_completion_callback(
-                function(tests, harness_status) {
-                    this_obj._dispatch({
-                        type: "complete",
-                        tests: map(tests,
-                            function(test) {
-                                return test.structured_clone();
-                            }),
-                        status: harness_status.structured_clone()
-                    });
-                });
-    };
-
-    WorkerTestEnvironment.prototype.add_on_loaded_callback = function() {};
-
-    WorkerTestEnvironment.prototype.test_timeout = function() {
-        // Tests running in a worker don't have a default timeout. I.e. all
-        // worker tests behave as if settings.explicit_timeout is true.
-        return null;
-    };
-
-    WorkerTestEnvironment.prototype.global_scope = function() {
-        return self;
-    };
-
-    /*
-     * Dedicated web workers.
-     * https://html.spec.whatwg.org/multipage/workers.html#dedicatedworkerglobalscope
-     *
-     * This class is used as the test_environment when testharness is running
-     * inside a dedicated worker.
-     */
-    function DedicatedWorkerTestEnvironment() {
-        WorkerTestEnvironment.call(this);
-        // self is an instance of DedicatedWorkerGlobalScope which exposes
-        // a postMessage() method for communicating via the message channel
-        // established when the worker is created.
-        this._add_message_port(self);
-    }
-    DedicatedWorkerTestEnvironment.prototype = Object.create(WorkerTestEnvironment.prototype);
-
-    DedicatedWorkerTestEnvironment.prototype.on_tests_ready = function() {
-        WorkerTestEnvironment.prototype.on_tests_ready.call(this);
-        // In the absence of an onload notification, we a require dedicated
-        // workers to explicitly signal when the tests are done.
-        tests.wait_for_finish = true;
-    };
-
-    /*
-     * Shared web workers.
-     * https://html.spec.whatwg.org/multipage/workers.html#sharedworkerglobalscope
-     *
-     * This class is used as the test_environment when testharness is running
-     * inside a shared web worker.
-     */
-    function SharedWorkerTestEnvironment() {
-        WorkerTestEnvironment.call(this);
-        var this_obj = this;
-        // Shared workers receive message ports via the 'onconnect' event for
-        // each connection.
-        self.addEventListener("connect",
-                function(message_event) {
-                    this_obj._add_message_port(message_event.source);
-                });
-    }
-    SharedWorkerTestEnvironment.prototype = Object.create(WorkerTestEnvironment.prototype);
-
-    SharedWorkerTestEnvironment.prototype.on_tests_ready = function() {
-        WorkerTestEnvironment.prototype.on_tests_ready.call(this);
-        // In the absence of an onload notification, we a require shared
-        // workers to explicitly signal when the tests are done.
-        tests.wait_for_finish = true;
-    };
-
-    /*
-     * Service workers.
-     * http://www.w3.org/TR/service-workers/
-     *
-     * This class is used as the test_environment when testharness is running
-     * inside a service worker.
-     */
-    function ServiceWorkerTestEnvironment() {
-        WorkerTestEnvironment.call(this);
-        this.all_loaded = false;
-        this.on_loaded_callback = null;
-        var this_obj = this;
-        self.addEventListener("message",
-                function(event) {
-                    if (event.data.type && event.data.type === "connect") {
-                        this_obj._add_message_port(event.ports[0]);
-                        event.ports[0].start();
-                    }
-                });
-
-        // The oninstall event is received after the service worker script and
-        // all imported scripts have been fetched and executed. It's the
-        // equivalent of an onload event for a document. All tests should have
-        // been added by the time this event is received, thus it's not
-        // necessary to wait until the onactivate event.
-        on_event(self, "install",
-                function(event) {
-                    this_obj.all_loaded = true;
-                    if (this_obj.on_loaded_callback) {
-                        this_obj.on_loaded_callback();
-                    }
-                });
-    }
-    ServiceWorkerTestEnvironment.prototype = Object.create(WorkerTestEnvironment.prototype);
-
-    ServiceWorkerTestEnvironment.prototype.add_on_loaded_callback = function(callback) {
-        if (this.all_loaded) {
-            callback();
-        } else {
-            this.on_loaded_callback = callback;
-        }
-    };
-
-    function create_test_environment() {
-        if ('document' in self) {
-            return new WindowTestEnvironment();
-        }
-        if ('DedicatedWorkerGlobalScope' in self &&
-            self instanceof DedicatedWorkerGlobalScope) {
-            return new DedicatedWorkerTestEnvironment();
-        }
-        if ('SharedWorkerGlobalScope' in self &&
-            self instanceof SharedWorkerGlobalScope) {
-            return new SharedWorkerTestEnvironment();
-        }
-        if ('ServiceWorkerGlobalScope' in self &&
-            self instanceof ServiceWorkerGlobalScope) {
-            return new ServiceWorkerTestEnvironment();
-        }
-        throw new Error("Unsupported test environment");
-    }
-
-    var test_environment = create_test_environment();
-
-    function is_shared_worker(worker) {
-        return 'SharedWorker' in self && worker instanceof SharedWorker;
-    }
-
-    function is_service_worker(worker) {
-        return 'ServiceWorker' in self && worker instanceof ServiceWorker;
-    }
-
-    /*
-     * API functions
-     */
-
-    function test(func, name, properties)
-    {
-        var test_name = name ? name : test_environment.next_default_test_name();
-        properties = properties ? properties : {};
-        var test_obj = new Test(test_name, properties);
-        test_obj.step(func, test_obj, test_obj);
-        if (test_obj.phase === test_obj.phases.STARTED) {
-            test_obj.done();
-        }
-    }
-
-    function async_test(func, name, properties)
-    {
-        if (typeof func !== "function") {
-            properties = name;
-            name = func;
-            func = null;
-        }
-        var test_name = name ? name : test_environment.next_default_test_name();
-        properties = properties ? properties : {};
-        var test_obj = new Test(test_name, properties);
-        if (func) {
-            test_obj.step(func, test_obj, test_obj);
-        }
-        return test_obj;
-    }
-
-    function promise_test(func, name, properties) {
-        var test = async_test(name, properties);
-        Promise.resolve(test.step(func, test, test))
-            .then(
-                function() {
-                    test.done();
-                })
-            .catch(test.step_func(
-                function(value) {
-                    if (value instanceof AssertionError) {
-                        throw value;
-                    }
-                    assert(false, "promise_test", null,
-                           "Unhandled rejection with value: ${value}", {value:value});
-                }));
-    }
-
-    function setup(func_or_properties, maybe_properties)
-    {
-        var func = null;
-        var properties = {};
-        if (arguments.length === 2) {
-            func = func_or_properties;
-            properties = maybe_properties;
-        } else if (func_or_properties instanceof Function) {
-            func = func_or_properties;
-        } else {
-            properties = func_or_properties;
-        }
-        tests.setup(func, properties);
-        test_environment.on_new_harness_properties(properties);
-    }
-
-    function done() {
-        if (tests.tests.length === 0) {
-            tests.set_file_is_test();
-        }
-        if (tests.file_is_test) {
-            tests.tests[0].done();
-        }
-        tests.end_wait();
-    }
-
-    function generate_tests(func, args, properties) {
-        forEach(args, function(x, i)
-                {
-                    var name = x[0];
-                    test(function()
-                         {
-                             func.apply(this, x.slice(1));
-                         },
-                         name,
-                         Array.isArray(properties) ? properties[i] : properties);
-                });
-    }
-
-    function on_event(object, event, callback)
-    {
-        object.addEventListener(event, callback, false);
-    }
-
-    expose(test, 'test');
-    expose(async_test, 'async_test');
-    expose(promise_test, 'promise_test');
-    expose(generate_tests, 'generate_tests');
-    expose(setup, 'setup');
-    expose(done, 'done');
-    expose(on_event, 'on_event');
-
-    /*
-     * Return a string truncated to the given length, with ... added at the end
-     * if it was longer.
-     */
-    function truncate(s, len)
-    {
-        if (s.length > len) {
-            return s.substring(0, len - 3) + "...";
-        }
-        return s;
-    }
-
-    /*
-     * Return true if object is probably a Node object.
-     */
-    function is_node(object)
-    {
-        // I use duck-typing instead of instanceof, because
-        // instanceof doesn't work if the node is from another window (like an
-        // iframe's contentWindow):
-        // http://www.w3.org/Bugs/Public/show_bug.cgi?id=12295
-        if ("nodeType" in object &&
-            "nodeName" in object &&
-            "nodeValue" in object &&
-            "childNodes" in object) {
-            try {
-                object.nodeType;
-            } catch (e) {
-                // The object is probably Node.prototype or another prototype
-                // object that inherits from it, and not a Node instance.
-                return false;
-            }
-            return true;
-        }
-        return false;
-    }
-
-    /*
-     * Convert a value to a nice, human-readable string
-     */
-    function format_value(val, seen)
-    {
-        if (!seen) {
-            seen = [];
-        }
-        if (typeof val === "object" && val !== null) {
-            if (seen.indexOf(val) >= 0) {
-                return "[...]";
-            }
-            seen.push(val);
-        }
-        if (Array.isArray(val)) {
-            return "[" + val.map(function(x) {return format_value(x, seen);}).join(", ") + "]";
-        }
-
-        switch (typeof val) {
-        case "string":
-            val = val.replace("\\", "\\\\");
-            for (var i = 0; i < 32; i++) {
-                var replace = "\\";
-                switch (i) {
-                case 0: replace += "0"; break;
-                case 1: replace += "x01"; break;
-                case 2: replace += "x02"; break;
-                case 3: replace += "x03"; break;
-                case 4: replace += "x04"; break;
-                case 5: replace += "x05"; break;
-                case 6: replace += "x06"; break;
-                case 7: replace += "x07"; break;
-                case 8: replace += "b"; break;
-                case 9: replace += "t"; break;
-                case 10: replace += "n"; break;
-                case 11: replace += "v"; break;
-                case 12: replace += "f"; break;
-                case 13: replace += "r"; break;
-                case 14: replace += "x0e"; break;
-                case 15: replace += "x0f"; break;
-                case 16: replace += "x10"; break;
-                case 17: replace += "x11"; break;
-                case 18: replace += "x12"; break;
-                case 19: replace += "x13"; break;
-                case 20: replace += "x14"; break;
-                case 21: replace += "x15"; break;
-                case 22: replace += "x16"; break;
-                case 23: replace += "x17"; break;
-                case 24: replace += "x18"; break;
-                case 25: replace += "x19"; break;
-                case 26: replace += "x1a"; break;
-                case 27: replace += "x1b"; break;
-                case 28: replace += "x1c"; break;
-                case 29: replace += "x1d"; break;
-                case 30: replace += "x1e"; break;
-                case 31: replace += "x1f"; break;
-                }
-                val = val.replace(RegExp(String.fromCharCode(i), "g"), replace);
-            }
-            return '"' + val.replace(/"/g, '\\"') + '"';
-        case "boolean":
-        case "undefined":
-            return String(val);
-        case "number":
-            // In JavaScript, -0 === 0 and String(-0) == "0", so we have to
-            // special-case.
-            if (val === -0 && 1/val === -Infinity) {
-                return "-0";
-            }
-            return String(val);
-        case "object":
-            if (val === null) {
-                return "null";
-            }
-
-            // Special-case Node objects, since those come up a lot in my tests.  I
-            // ignore namespaces.
-            if (is_node(val)) {
-                switch (val.nodeType) {
-                case Node.ELEMENT_NODE:
-                    var ret = "<" + val.localName;
-                    for (var i = 0; i < val.attributes.length; i++) {
-                        ret += " " + val.attributes[i].name + '="' + val.attributes[i].value + '"';
-                    }
-                    ret += ">" + val.innerHTML + "</" + val.localName + ">";
-                    return "Element node " + truncate(ret, 60);
-                case Node.TEXT_NODE:
-                    return 'Text node "' + truncate(val.data, 60) + '"';
-                case Node.PROCESSING_INSTRUCTION_NODE:
-                    return "ProcessingInstruction node with target " + format_value(truncate(val.target, 60)) + " and data " + format_value(truncate(val.data, 60));
-                case Node.COMMENT_NODE:
-                    return "Comment node <!--" + truncate(val.data, 60) + "-->";
-                case Node.DOCUMENT_NODE:
-                    return "Document node with " + val.childNodes.length + (val.childNodes.length == 1 ? " child" : " children");
-                case Node.DOCUMENT_TYPE_NODE:
-                    return "DocumentType node";
-                case Node.DOCUMENT_FRAGMENT_NODE:
-                    return "DocumentFragment node with " + val.childNodes.length + (val.childNodes.length == 1 ? " child" : " children");
-                default:
-                    return "Node object of unknown type";
-                }
-            }
-
-        /* falls through */
-        default:
-            return typeof val + ' "' + truncate(String(val), 60) + '"';
-        }
-    }
-    expose(format_value, "format_value");
-
-    /*
-     * Assertions
-     */
-
-    function assert_true(actual, description)
-    {
-        assert(actual === true, "assert_true", description,
-                                "expected true got ${actual}", {actual:actual});
-    }
-    expose(assert_true, "assert_true");
-
-    function assert_false(actual, description)
-    {
-        assert(actual === false, "assert_false", description,
-                                 "expected false got ${actual}", {actual:actual});
-    }
-    expose(assert_false, "assert_false");
-
-    function same_value(x, y) {
-        if (y !== y) {
-            //NaN case
-            return x !== x;
-        }
-        if (x === 0 && y === 0) {
-            //Distinguish +0 and -0
-            return 1/x === 1/y;
-        }
-        return x === y;
-    }
-
-    function assert_equals(actual, expected, description)
-    {
-         /*
-          * Test if two primitives are equal or two objects
-          * are the same object
-          */
-        if (typeof actual != typeof expected) {
-            assert(false, "assert_equals", description,
-                          "expected (" + typeof expected + ") ${expected} but got (" + typeof actual + ") ${actual}",
-                          {expected:expected, actual:actual});
-            return;
-        }
-        assert(same_value(actual, expected), "assert_equals", description,
-                                             "expected ${expected} but got ${actual}",
-                                             {expected:expected, actual:actual});
-    }
-    expose(assert_equals, "assert_equals");
-
-    function assert_not_equals(actual, expected, description)
-    {
-         /*
-          * Test if two primitives are unequal or two objects
-          * are different objects
-          */
-        assert(!same_value(actual, expected), "assert_not_equals", description,
-                                              "got disallowed value ${actual}",
-                                              {actual:actual});
-    }
-    expose(assert_not_equals, "assert_not_equals");
-
-    function assert_in_array(actual, expected, description)
-    {
-        assert(expected.indexOf(actual) != -1, "assert_in_array", description,
-                                               "value ${actual} not in array ${expected}",
-                                               {actual:actual, expected:expected});
-    }
-    expose(assert_in_array, "assert_in_array");
-
-    function assert_object_equals(actual, expected, description)
-    {
-         //This needs to be improved a great deal
-         function check_equal(actual, expected, stack)
-         {
-             stack.push(actual);
-
-             var p;
-             for (p in actual) {
-                 assert(expected.hasOwnProperty(p), "assert_object_equals", description,
-                                                    "unexpected property ${p}", {p:p});
-
-                 if (typeof actual[p] === "object" && actual[p] !== null) {
-                     if (stack.indexOf(actual[p]) === -1) {
-                         check_equal(actual[p], expected[p], stack);
-                     }
-                 } else {
-                     assert(same_value(actual[p], expected[p]), "assert_object_equals", description,
-                                                       "property ${p} expected ${expected} got ${actual}",
-                                                       {p:p, expected:expected, actual:actual});
-                 }
-             }
-             for (p in expected) {
-                 assert(actual.hasOwnProperty(p),
-                        "assert_object_equals", description,
-                        "expected property ${p} missing", {p:p});
-             }
-             stack.pop();
-         }
-         check_equal(actual, expected, []);
-    }
-    expose(assert_object_equals, "assert_object_equals");
-
-    function assert_array_equals(actual, expected, description)
-    {
-        assert(actual.length === expected.length,
-               "assert_array_equals", description,
-               "lengths differ, expected ${expected} got ${actual}",
-               {expected:expected.length, actual:actual.length});
-
-        for (var i = 0; i < actual.length; i++) {
-            assert(actual.hasOwnProperty(i) === expected.hasOwnProperty(i),
-                   "assert_array_equals", description,
-                   "property ${i}, property expected to be ${expected} but was ${actual}",
-                   {i:i, expected:expected.hasOwnProperty(i) ? "present" : "missing",
-                   actual:actual.hasOwnProperty(i) ? "present" : "missing"});
-            assert(same_value(expected[i], actual[i]),
-                   "assert_array_equals", description,
-                   "property ${i}, expected ${expected} but got ${actual}",
-                   {i:i, expected:expected[i], actual:actual[i]});
-        }
-    }
-    expose(assert_array_equals, "assert_array_equals");
-
-    function assert_approx_equals(actual, expected, epsilon, description)
-    {
-        /*
-         * Test if two primitive numbers are equal withing +/- epsilon
-         */
-        assert(typeof actual === "number",
-               "assert_approx_equals", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(Math.abs(actual - expected) <= epsilon,
-               "assert_approx_equals", description,
-               "expected ${expected} +/- ${epsilon} but got ${actual}",
-               {expected:expected, actual:actual, epsilon:epsilon});
-    }
-    expose(assert_approx_equals, "assert_approx_equals");
-
-    function assert_less_than(actual, expected, description)
-    {
-        /*
-         * Test if a primitive number is less than another
-         */
-        assert(typeof actual === "number",
-               "assert_less_than", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(actual < expected,
-               "assert_less_than", description,
-               "expected a number less than ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_less_than, "assert_less_than");
-
-    function assert_greater_than(actual, expected, description)
-    {
-        /*
-         * Test if a primitive number is greater than another
-         */
-        assert(typeof actual === "number",
-               "assert_greater_than", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(actual > expected,
-               "assert_greater_than", description,
-               "expected a number greater than ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_greater_than, "assert_greater_than");
-
-    function assert_less_than_equal(actual, expected, description)
-    {
-        /*
-         * Test if a primitive number is less than or equal to another
-         */
-        assert(typeof actual === "number",
-               "assert_less_than_equal", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(actual <= expected,
-               "assert_less_than", description,
-               "expected a number less than or equal to ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_less_than_equal, "assert_less_than_equal");
-
-    function assert_greater_than_equal(actual, expected, description)
-    {
-        /*
-         * Test if a primitive number is greater than or equal to another
-         */
-        assert(typeof actual === "number",
-               "assert_greater_than_equal", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(actual >= expected,
-               "assert_greater_than_equal", description,
-               "expected a number greater than or equal to ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_greater_than_equal, "assert_greater_than_equal");
-
-    function assert_regexp_match(actual, expected, description) {
-        /*
-         * Test if a string (actual) matches a regexp (expected)
-         */
-        assert(expected.test(actual),
-               "assert_regexp_match", description,
-               "expected ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_regexp_match, "assert_regexp_match");
-
-    function assert_class_string(object, class_string, description) {
-        assert_equals({}.toString.call(object), "[object " + class_string + "]",
-                      description);
-    }
-    expose(assert_class_string, "assert_class_string");
-
-
-    function _assert_own_property(name) {
-        return function(object, property_name, description)
-        {
-            assert(property_name in object,
-                   name, description,
-                   "expected property ${p} missing", {p:property_name});
-        };
-    }
-    expose(_assert_own_property("assert_exists"), "assert_exists");
-    expose(_assert_own_property("assert_own_property"), "assert_own_property");
-
-    function assert_not_exists(object, property_name, description)
-    {
-        assert(!object.hasOwnProperty(property_name),
-               "assert_not_exists", description,
-               "unexpected property ${p} found", {p:property_name});
-    }
-    expose(assert_not_exists, "assert_not_exists");
-
-    function _assert_inherits(name) {
-        return function (object, property_name, description)
-        {
-            assert(typeof object === "object",
-                   name, description,
-                   "provided value is not an object");
-
-            assert("hasOwnProperty" in object,
-                   name, description,
-                   "provided value is an object but has no hasOwnProperty method");
-
-            assert(!object.hasOwnProperty(property_name),
-                   name, description,
-                   "property ${p} found on object expected in prototype chain",
-                   {p:property_name});
-
-            assert(property_name in object,
-                   name, description,
-                   "property ${p} not found in prototype chain",
-                   {p:property_name});
-        };
-    }
-    expose(_assert_inherits("assert_inherits"), "assert_inherits");
-    expose(_assert_inherits("assert_idl_attribute"), "assert_idl_attribute");
-
-    function assert_readonly(object, property_name, description)
-    {
-         var initial_value = object[property_name];
-         try {
-             //Note that this can have side effects in the case where
-             //the property has PutForwards
-             object[property_name] = initial_value + "a"; //XXX use some other value here?
-             assert(same_value(object[property_name], initial_value),
-                    "assert_readonly", description,
-                    "changing property ${p} succeeded",
-                    {p:property_name});
-         } finally {
-             object[property_name] = initial_value;
-         }
-    }
-    expose(assert_readonly, "assert_readonly");
-
-    function assert_throws(code, func, description)
-    {
-        try {
-            func.call(this);
-            assert(false, "assert_throws", description,
-                   "${func} did not throw", {func:func});
-        } catch (e) {
-            if (e instanceof AssertionError) {
-                throw e;
-            }
-            if (code === null) {
-                return;
-            }
-            if (typeof code === "object") {
-                assert(typeof e == "object" && "name" in e && e.name == code.name,
-                       "assert_throws", description,
-                       "${func} threw ${actual} (${actual_name}) expected ${expected} (${expected_name})",
-                                    {func:func, actual:e, actual_name:e.name,
-                                     expected:code,
-                                     expected_name:code.name});
-                return;
-            }
-
-            var code_name_map = {
-                INDEX_SIZE_ERR: 'IndexSizeError',
-                HIERARCHY_REQUEST_ERR: 'HierarchyRequestError',
-                WRONG_DOCUMENT_ERR: 'WrongDocumentError',
-                INVALID_CHARACTER_ERR: 'InvalidCharacterError',
-                NO_MODIFICATION_ALLOWED_ERR: 'NoModificationAllowedError',
-                NOT_FOUND_ERR: 'NotFoundError',
-                NOT_SUPPORTED_ERR: 'NotSupportedError',
-                INVALID_STATE_ERR: 'InvalidStateError',
-                SYNTAX_ERR: 'SyntaxError',
-                INVALID_MODIFICATION_ERR: 'InvalidModificationError',
-                NAMESPACE_ERR: 'NamespaceError',
-                INVALID_ACCESS_ERR: 'InvalidAccessError',
-                TYPE_MISMATCH_ERR: 'TypeMismatchError',
-                SECURITY_ERR: 'SecurityError',
-                NETWORK_ERR: 'NetworkError',
-                ABORT_ERR: 'AbortError',
-                URL_MISMATCH_ERR: 'URLMismatchError',
-                QUOTA_EXCEEDED_ERR: 'QuotaExceededError',
-                TIMEOUT_ERR: 'TimeoutError',
-                INVALID_NODE_TYPE_ERR: 'InvalidNodeTypeError',
-                DATA_CLONE_ERR: 'DataCloneError'
-            };
-
-            var name = code in code_name_map ? code_name_map[code] : code;
-
-            var name_code_map = {
-                IndexSizeError: 1,
-                HierarchyRequestError: 3,
-                WrongDocumentError: 4,
-                InvalidCharacterError: 5,
-                NoModificationAllowedError: 7,
-                NotFoundError: 8,
-                NotSupportedError: 9,
-                InvalidStateError: 11,
-                SyntaxError: 12,
-                InvalidModificationError: 13,
-                NamespaceError: 14,
-                InvalidAccessError: 15,
-                TypeMismatchError: 17,
-                SecurityError: 18,
-                NetworkError: 19,
-                AbortError: 20,
-                URLMismatchError: 21,
-                QuotaExceededError: 22,
-                TimeoutError: 23,
-                InvalidNodeTypeError: 24,
-                DataCloneError: 25,
-
-                UnknownError: 0,
-                ConstraintError: 0,
-                DataError: 0,
-                TransactionInactiveError: 0,
-                ReadOnlyError: 0,
-                VersionError: 0
-            };
-
-            if (!(name in name_code_map)) {
-                throw new AssertionError('Test bug: unrecognized DOMException code "' + code + '" passed to assert_throws()');
-            }
-
-            var required_props = { code: name_code_map[name] };
-
-            if (required_props.code === 0 ||
-               ("name" in e && e.name !== e.name.toUpperCase() && e.name !== "DOMException")) {
-                // New style exception: also test the name property.
-                required_props.name = name;
-            }
-
-            //We'd like to test that e instanceof the appropriate interface,
-            //but we can't, because we don't know what window it was created
-            //in.  It might be an instanceof the appropriate interface on some
-            //unknown other window.  TODO: Work around this somehow?
-
-            assert(typeof e == "object",
-                   "assert_throws", description,
-                   "${func} threw ${e} with type ${type}, not an object",
-                   {func:func, e:e, type:typeof e});
-
-            for (var prop in required_props) {
-                assert(typeof e == "object" && prop in e && e[prop] == required_props[prop],
-                       "assert_throws", description,
-                       "${func} threw ${e} that is not a DOMException " + code + ": property ${prop} is equal to ${actual}, expected ${expected}",
-                       {func:func, e:e, prop:prop, actual:e[prop], expected:required_props[prop]});
-            }
-        }
-    }
-    expose(assert_throws, "assert_throws");
-
-    function assert_unreached(description) {
-         assert(false, "assert_unreached", description,
-                "Reached unreachable code");
-    }
-    expose(assert_unreached, "assert_unreached");
-
-    function assert_any(assert_func, actual, expected_array)
-    {
-        var args = [].slice.call(arguments, 3);
-        var errors = [];
-        var passed = false;
-        forEach(expected_array,
-                function(expected)
-                {
-                    try {
-                        assert_func.apply(this, [actual, expected].concat(args));
-                        passed = true;
-                    } catch (e) {
-                        errors.push(e.message);
-                    }
-                });
-        if (!passed) {
-            throw new AssertionError(errors.join("\n\n"));
-        }
-    }
-    expose(assert_any, "assert_any");
-
-    function Test(name, properties)
-    {
-        if (tests.file_is_test && tests.tests.length) {
-            throw new Error("Tried to create a test with file_is_test");
-        }
-        this.name = name;
-
-        this.phase = this.phases.INITIAL;
-
-        this.status = this.NOTRUN;
-        this.timeout_id = null;
-        this.index = null;
-
-        this.properties = properties;
-        var timeout = properties.timeout ? properties.timeout : settings.test_timeout;
-        if (timeout !== null) {
-            this.timeout_length = timeout * tests.timeout_multiplier;
-        } else {
-            this.timeout_length = null;
-        }
-
-        this.message = null;
-
-        this.steps = [];
-
-        this.cleanup_callbacks = [];
-
-        tests.push(this);
-    }
-
-    Test.statuses = {
-        PASS:0,
-        FAIL:1,
-        TIMEOUT:2,
-        NOTRUN:3
-    };
-
-    Test.prototype = merge({}, Test.statuses);
-
-    Test.prototype.phases = {
-        INITIAL:0,
-        STARTED:1,
-        HAS_RESULT:2,
-        COMPLETE:3
-    };
-
-    Test.prototype.structured_clone = function()
-    {
-        if (!this._structured_clone) {
-            var msg = this.message;
-            msg = msg ? String(msg) : msg;
-            this._structured_clone = merge({
-                name:String(this.name),
-                properties:merge({}, this.properties),
-            }, Test.statuses);
-        }
-        this._structured_clone.status = this.status;
-        this._structured_clone.message = this.message;
-        this._structured_clone.index = this.index;
-        return this._structured_clone;
-    };
-
-    Test.prototype.step = function(func, this_obj)
-    {
-        if (this.phase > this.phases.STARTED) {
-            return;
-        }
-        this.phase = this.phases.STARTED;
-        //If we don't get a result before the harness times out that will be a test timout
-        this.set_status(this.TIMEOUT, "Test timed out");
-
-        tests.started = true;
-        tests.notify_test_state(this);
-
-        if (this.timeout_id === null) {
-            this.set_timeout();
-        }
-
-        this.steps.push(func);
-
-        if (arguments.length === 1) {
-            this_obj = this;
-        }
-
-        try {
-            return func.apply(this_obj, Array.prototype.slice.call(arguments, 2));
-        } catch (e) {
-            if (this.phase >= this.phases.HAS_RESULT) {
-                return;
-            }
-            var message = (typeof e === "object" && e !== null) ? e.message : e;
-            if (typeof e.stack != "undefined" && typeof e.message == "string") {
-                //Try to make it more informative for some exceptions, at least
-                //in Gecko and WebKit.  This results in a stack dump instead of
-                //just errors like "Cannot read property 'parentNode' of null"
-                //or "root is null".  Makes it a lot longer, of course.
-                message += "(stack: " + e.stack + ")";
-            }
-            this.set_status(this.FAIL, message);
-            this.phase = this.phases.HAS_RESULT;
-            this.done();
-        }
-    };
-
-    Test.prototype.step_func = function(func, this_obj)
-    {
-        var test_this = this;
-
-        if (arguments.length === 1) {
-            this_obj = test_this;
-        }
-
-        return function()
-        {
-            return test_this.step.apply(test_this, [func, this_obj].concat(
-                Array.prototype.slice.call(arguments)));
-        };
-    };
-
-    Test.prototype.step_func_done = function(func, this_obj)
-    {
-        var test_this = this;
-
-        if (arguments.length === 1) {
-            this_obj = test_this;
-        }
-
-        return function()
-        {
-            if (func) {
-                test_this.step.apply(test_this, [func, this_obj].concat(
-                    Array.prototype.slice.call(arguments)));
-            }
-            test_this.done();
-        };
-    };
-
-    Test.prototype.unreached_func = function(description)
-    {
-        return this.step_func(function() {
-            assert_unreached(description);
-        });
-    };
-
-    Test.prototype.add_cleanup = function(callback) {
-        this.cleanup_callbacks.push(callback);
-    };
-
-    Test.prototype.force_timeout = function() {
-        this.set_status(this.TIMEOUT);
-        this.phase = this.phases.HAS_RESULT;
-    };
-
-    Test.prototype.set_timeout = function()
-    {
-        if (this.timeout_length !== null) {
-            var this_obj = this;
-            this.timeout_id = setTimeout(function()
-                                         {
-                                             this_obj.timeout();
-                                         }, this.timeout_length);
-        }
-    };
-
-    Test.prototype.set_status = function(status, message)
-    {
-        this.status = status;
-        this.message = message;
-    };
-
-    Test.prototype.timeout = function()
-    {
-        this.timeout_id = null;
-        this.set_status(this.TIMEOUT, "Test timed out");
-        this.phase = this.phases.HAS_RESULT;
-        this.done();
-    };
-
-    Test.prototype.done = function()
-    {
-        if (this.phase == this.phases.COMPLETE) {
-            return;
-        }
-
-        if (this.phase <= this.phases.STARTED) {
-            this.set_status(this.PASS, null);
-        }
-
-        this.phase = this.phases.COMPLETE;
-
-        clearTimeout(this.timeout_id);
-        tests.result(this);
-        this.cleanup();
-    };
-
-    Test.prototype.cleanup = function() {
-        forEach(this.cleanup_callbacks,
-                function(cleanup_callback) {
-                    cleanup_callback();
-                });
-    };
-
-    /*
-     * A RemoteTest object mirrors a Test object on a remote worker. The
-     * associated RemoteWorker updates the RemoteTest object in response to
-     * received events. In turn, the RemoteTest object replicates these events
-     * on the local document. This allows listeners (test result reporting
-     * etc..) to transparently handle local and remote events.
-     */
-    function RemoteTest(clone) {
-        var this_obj = this;
-        Object.keys(clone).forEach(
-                function(key) {
-                    this_obj[key] = clone[key];
-                });
-        this.index = null;
-        this.phase = this.phases.INITIAL;
-        this.update_state_from(clone);
-        tests.push(this);
-    }
-
-    RemoteTest.prototype.structured_clone = function() {
-        var clone = {};
-        Object.keys(this).forEach(
-                function(key) {
-                    if (typeof(this[key]) === "object") {
-                        clone[key] = merge({}, this[key]);
-                    } else {
-                        clone[key] = this[key];
-                    }
-                });
-        clone.phases = merge({}, this.phases);
-        return clone;
-    };
-
-    RemoteTest.prototype.cleanup = function() {};
-    RemoteTest.prototype.phases = Test.prototype.phases;
-    RemoteTest.prototype.update_state_from = function(clone) {
-        this.status = clone.status;
-        this.message = clone.message;
-        if (this.phase === this.phases.INITIAL) {
-            this.phase = this.phases.STARTED;
-        }
-    };
-    RemoteTest.prototype.done = function() {
-        this.phase = this.phases.COMPLETE;
-    }
-
-    /*
-     * A RemoteWorker listens for test events from a worker. These events are
-     * then used to construct and maintain RemoteTest objects that mirror the
-     * tests running on the remote worker.
-     */
-    function RemoteWorker(worker) {
-        this.running = true;
-        this.tests = new Array();
-
-        var this_obj = this;
-        worker.onerror = function(error) { this_obj.worker_error(error); };
-
-        var message_port;
-
-        if (is_service_worker(worker)) {
-            // The ServiceWorker's implicit MessagePort is currently not
-            // reliably accessible from the ServiceWorkerGlobalScope due to
-            // Blink setting MessageEvent.source to null for messages sent via
-            // ServiceWorker.postMessage(). Until that's resolved, create an
-            // explicit MessageChannel and pass one end to the worker.
-            var message_channel = new MessageChannel();
-            message_port = message_channel.port1;
-            message_port.start();
-            worker.postMessage({type: "connect"}, [message_channel.port2]);
-        } else if (is_shared_worker(worker)) {
-            message_port = worker.port;
-        } else {
-            message_port = worker;
-        }
-
-        // Keeping a reference to the worker until worker_done() is seen
-        // prevents the Worker object and its MessageChannel from going away
-        // before all the messages are dispatched.
-        this.worker = worker;
-
-        message_port.onmessage =
-            function(message) {
-                if (this_obj.running && (message.data.type in this_obj.message_handlers)) {
-                    this_obj.message_handlers[message.data.type].call(this_obj, message.data);
-                }
-            };
-    }
-
-    RemoteWorker.prototype.worker_error = function(error) {
-        var message = error.message || String(error);
-        var filename = (error.filename ? " " + error.filename: "");
-        // FIXME: Display worker error states separately from main document
-        // error state.
-        this.worker_done({
-            status: {
-                status: tests.status.ERROR,
-                message: "Error in worker" + filename + ": " + message
-            }
-        });
-        error.preventDefault();
-    };
-
-    RemoteWorker.prototype.test_state = function(data) {
-        var remote_test = this.tests[data.test.index];
-        if (!remote_test) {
-            remote_test = new RemoteTest(data.test);
-            this.tests[data.test.index] = remote_test;
-        }
-        remote_test.update_state_from(data.test);
-        tests.notify_test_state(remote_test);
-    };
-
-    RemoteWorker.prototype.test_done = function(data) {
-        var remote_test = this.tests[data.test.index];
-        remote_test.update_state_from(data.test);
-        remote_test.done();
-        tests.result(remote_test);
-    };
-
-    RemoteWorker.prototype.worker_done = function(data) {
-        if (tests.status.status === null &&
-            data.status.status !== data.status.OK) {
-            tests.status.status = data.status.status;
-            tests.status.message = data.status.message;
-        }
-        this.running = false;
-        this.worker = null;
-        if (tests.all_done()) {
-            tests.complete();
-        }
-    };
-
-    RemoteWorker.prototype.message_handlers = {
-        test_state: RemoteWorker.prototype.test_state,
-        result: RemoteWorker.prototype.test_done,
-        complete: RemoteWorker.prototype.worker_done
-    };
-
-    /*
-     * Harness
-     */
-
-    function TestsStatus()
-    {
-        this.status = null;
-        this.message = null;
-    }
-
-    TestsStatus.statuses = {
-        OK:0,
-        ERROR:1,
-        TIMEOUT:2
-    };
-
-    TestsStatus.prototype = merge({}, TestsStatus.statuses);
-
-    TestsStatus.prototype.structured_clone = function()
-    {
-        if (!this._structured_clone) {
-            var msg = this.message;
-            msg = msg ? String(msg) : msg;
-            this._structured_clone = merge({
-                status:this.status,
-                message:msg
-            }, TestsStatus.statuses);
-        }
-        return this._structured_clone;
-    };
-
-    function Tests()
-    {
-        this.tests = [];
-        this.num_pending = 0;
-
-        this.phases = {
-            INITIAL:0,
-            SETUP:1,
-            HAVE_TESTS:2,
-            HAVE_RESULTS:3,
-            COMPLETE:4
-        };
-        this.phase = this.phases.INITIAL;
-
-        this.properties = {};
-
-        this.wait_for_finish = false;
-        this.processing_callbacks = false;
-
-        this.allow_uncaught_exception = false;
-
-        this.file_is_test = false;
-
-        this.timeout_multiplier = 1;
-        this.timeout_length = test_environment.test_timeout();
-        this.timeout_id = null;
-
-        this.start_callbacks = [];
-        this.test_state_callbacks = [];
-        this.test_done_callbacks = [];
-        this.all_done_callbacks = [];
-
-        this.pending_workers = [];
-
-        this.status = new TestsStatus();
-
-        var this_obj = this;
-
-        test_environment.add_on_loaded_callback(function() {
-            if (this_obj.all_done()) {
-                this_obj.complete();
-            }
-        });
-
-        this.set_timeout();
-    }
-
-    Tests.prototype.setup = function(func, properties)
-    {
-        if (this.phase >= this.phases.HAVE_RESULTS) {
-            return;
-        }
-
-        if (this.phase < this.phases.SETUP) {
-            this.phase = this.phases.SETUP;
-        }
-
-        this.properties = properties;
-
-        for (var p in properties) {
-            if (properties.hasOwnProperty(p)) {
-                var value = properties[p];
-                if (p == "allow_uncaught_exception") {
-                    this.allow_uncaught_exception = value;
-                } else if (p == "explicit_done" && value) {
-                    this.wait_for_finish = true;
-                } else if (p == "explicit_timeout" && value) {
-                    this.timeout_length = null;
-                    if (this.timeout_id)
-                    {
-                        clearTimeout(this.timeout_id);
-                    }
-                } else if (p == "timeout_multiplier") {
-                    this.timeout_multiplier = value;
-                }
-            }
-        }
-
-        if (func) {
-            try {
-                func();
-            } catch (e) {
-                this.status.status = this.status.ERROR;
-                this.status.message = String(e);
-            }
-        }
-        this.set_timeout();
-    };
-
-    Tests.prototype.set_file_is_test = function() {
-        if (this.tests.length > 0) {
-            throw new Error("Tried to set file as test after creating a test");
-        }
-        this.wait_for_finish = true;
-        this.file_is_test = true;
-        // Create the test, which will add it to the list of tests
-        async_test();
-    };
-
-    Tests.prototype.set_timeout = function() {
-        var this_obj = this;
-        clearTimeout(this.timeout_id);
-        if (this.timeout_length !== null) {
-            this.timeout_id = setTimeout(function() {
-                                             this_obj.timeout();
-                                         }, this.timeout_length);
-        }
-    };
-
-    Tests.prototype.timeout = function() {
-        if (this.status.status === null) {
-            this.status.status = this.status.TIMEOUT;
-        }
-        this.complete();
-    };
-
-    Tests.prototype.end_wait = function()
-    {
-        this.wait_for_finish = false;
-        if (this.all_done()) {
-            this.complete();
-        }
-    };
-
-    Tests.prototype.push = function(test)
-    {
-        if (this.phase < this.phases.HAVE_TESTS) {
-            this.start();
-        }
-        this.num_pending++;
-        test.index = this.tests.push(test);
-        this.notify_test_state(test);
-    };
-
-    Tests.prototype.notify_test_state = function(test) {
-        var this_obj = this;
-        forEach(this.test_state_callbacks,
-                function(callback) {
-                    callback(test, this_obj);
-                });
-    };
-
-    Tests.prototype.all_done = function() {
-        return (this.tests.length > 0 && test_environment.all_loaded &&
-                this.num_pending === 0 && !this.wait_for_finish &&
-                !this.processing_callbacks &&
-                !this.pending_workers.some(function(w) { return w.running; }));
-    };
-
-    Tests.prototype.start = function() {
-        this.phase = this.phases.HAVE_TESTS;
-        this.notify_start();
-    };
-
-    Tests.prototype.notify_start = function() {
-        var this_obj = this;
-        forEach (this.start_callbacks,
-                 function(callback)
-                 {
-                     callback(this_obj.properties);
-                 });
-    };
-
-    Tests.prototype.result = function(test)
-    {
-        if (this.phase > this.phases.HAVE_RESULTS) {
-            return;
-        }
-        this.phase = this.phases.HAVE_RESULTS;
-        this.num_pending--;
-        this.notify_result(test);
-    };
-
-    Tests.prototype.notify_result = function(test) {
-        var this_obj = this;
-        this.processing_callbacks = true;
-        forEach(this.test_done_callbacks,
-                function(callback)
-                {
-                    callback(test, this_obj);
-                });
-        this.processing_callbacks = false;
-        if (this_obj.all_done()) {
-            this_obj.complete();
-        }
-    };
-
-    Tests.prototype.complete = function() {
-        if (this.phase === this.phases.COMPLETE) {
-            return;
-        }
-        this.phase = this.phases.COMPLETE;
-        var this_obj = this;
-        this.tests.forEach(
-            function(x)
-            {
-                if (x.phase < x.phases.COMPLETE) {
-                    this_obj.notify_result(x);
-                    x.cleanup();
-                    x.phase = x.phases.COMPLETE;
-                }
-            }
-        );
-        this.notify_complete();
-    };
-
-    Tests.prototype.notify_complete = function() {
-        var this_obj = this;
-        if (this.status.status === null) {
-            this.status.status = this.status.OK;
-        }
-
-        forEach (this.all_done_callbacks,
-                 function(callback)
-                 {
-                     callback(this_obj.tests, this_obj.status);
-                 });
-    };
-
-    Tests.prototype.fetch_tests_from_worker = function(worker) {
-        if (this.phase >= this.phases.COMPLETE) {
-            return;
-        }
-
-        this.pending_workers.push(new RemoteWorker(worker));
-    };
-
-    function fetch_tests_from_worker(port) {
-        tests.fetch_tests_from_worker(port);
-    }
-    expose(fetch_tests_from_worker, 'fetch_tests_from_worker');
-
-    function timeout() {
-        if (tests.timeout_length === null) {
-            tests.timeout();
-        }
-    }
-    expose(timeout, 'timeout');
-
-    function add_start_callback(callback) {
-        tests.start_callbacks.push(callback);
-    }
-
-    function add_test_state_callback(callback) {
-        tests.test_state_callbacks.push(callback);
-    }
-
-    function add_result_callback(callback)
-    {
-        tests.test_done_callbacks.push(callback);
-    }
-
-    function add_completion_callback(callback)
-    {
-       tests.all_done_callbacks.push(callback);
-    }
-
-    expose(add_start_callback, 'add_start_callback');
-    expose(add_test_state_callback, 'add_test_state_callback');
-    expose(add_result_callback, 'add_result_callback');
-    expose(add_completion_callback, 'add_completion_callback');
-
-    /*
-     * Output listener
-    */
-
-    function Output() {
-        this.output_document = document;
-        this.output_node = null;
-        this.enabled = settings.output;
-        this.phase = this.INITIAL;
-    }
-
-    Output.prototype.INITIAL = 0;
-    Output.prototype.STARTED = 1;
-    Output.prototype.HAVE_RESULTS = 2;
-    Output.prototype.COMPLETE = 3;
-
-    Output.prototype.setup = function(properties) {
-        if (this.phase > this.INITIAL) {
-            return;
-        }
-
-        //If output is disabled in testharnessreport.js the test shouldn't be
-        //able to override that
-        this.enabled = this.enabled && (properties.hasOwnProperty("output") ?
-                                        properties.output : settings.output);
-    };
-
-    Output.prototype.init = function(properties) {
-        if (this.phase >= this.STARTED) {
-            return;
-        }
-        if (properties.output_document) {
-            this.output_document = properties.output_document;
-        } else {
-            this.output_document = document;
-        }
-        this.phase = this.STARTED;
-    };
-
-    Output.prototype.resolve_log = function() {
-        var output_document;
-        if (typeof this.output_document === "function") {
-            output_document = this.output_document.apply(undefined);
-        } else {
-            output_document = this.output_document;
-        }
-        if (!output_document) {
-            return;
-        }
-        var node = output_document.getElementById("log");
-        if (!node) {
-            if (!document.body || document.readyState == "loading") {
-                return;
-            }
-            node = output_document.createElement("div");
-            node.id = "log";
-            output_document.body.appendChild(node);
-        }
-        this.output_document = output_document;
-        this.output_node = node;
-    };
-
-    Output.prototype.show_status = function() {
-        if (this.phase < this.STARTED) {
-            this.init();
-        }
-        if (!this.enabled) {
-            return;
-        }
-        if (this.phase < this.HAVE_RESULTS) {
-            this.resolve_log();
-            this.phase = this.HAVE_RESULTS;
-        }
-        var done_count = tests.tests.length - tests.num_pending;
-        if (this.output_node) {
-            if (done_count < 100 ||
-                (done_count < 1000 && done_count % 100 === 0) ||
-                done_count % 1000 === 0) {
-                this.output_node.textContent = "Running, " +
-                    done_count + " complete, " +
-                    tests.num_pending + " remain";
-            }
-        }
-    };
-
-    Output.prototype.show_results = function (tests, harness_status) {
-        if (this.phase >= this.COMPLETE) {
-            return;
-        }
-        if (!this.enabled) {
-            return;
-        }
-        if (!this.output_node) {
-            this.resolve_log();
-        }
-        this.phase = this.COMPLETE;
-
-        var log = this.output_node;
-        if (!log) {
-            return;
-        }
-        var output_document = this.output_document;
-
-        while (log.lastChild) {
-            log.removeChild(log.lastChild);
-        }
-
-        var script_prefix = null;
-        var scripts = document.getElementsByTagName("script");
-        for (var i = 0; i < scripts.length; i++) {
-            var src;
-            if (scripts[i].src) {
-                src = scripts[i].src;
-            } else if (scripts[i].href) {
-                //SVG case
-                src = scripts[i].href.baseVal;
-            }
-
-            var matches = src && src.match(/^(.*\/|)testharness\.js$/);
-            if (matches) {
-                script_prefix = matches[1];
-                break;
-            }
-        }
-
-        if (script_prefix !== null) {
-            var stylesheet = output_document.createElementNS(xhtml_ns, "link");
-            stylesheet.setAttribute("rel", "stylesheet");
-            stylesheet.setAttribute("href", script_prefix + "testharness.css");
-            var heads = output_document.getElementsByTagName("head");
-            if (heads.length) {
-                heads[0].appendChild(stylesheet);
-            }
-        }
-
-        var status_text_harness = {};
-        status_text_harness[harness_status.OK] = "OK";
-        status_text_harness[harness_status.ERROR] = "Error";
-        status_text_harness[harness_status.TIMEOUT] = "Timeout";
-
-        var status_text = {};
-        status_text[Test.prototype.PASS] = "Pass";
-        status_text[Test.prototype.FAIL] = "Fail";
-        status_text[Test.prototype.TIMEOUT] = "Timeout";
-        status_text[Test.prototype.NOTRUN] = "Not Run";
-
-        var status_number = {};
-        forEach(tests,
-                function(test) {
-                    var status = status_text[test.status];
-                    if (status_number.hasOwnProperty(status)) {
-                        status_number[status] += 1;
-                    } else {
-                        status_number[status] = 1;
-                    }
-                });
-
-        function status_class(status)
-        {
-            return status.replace(/\s/g, '').toLowerCase();
-        }
-
-        var summary_template = ["section", {"id":"summary"},
-                                ["h2", {}, "Summary"],
-                                function()
-                                {
-
-                                    var status = status_text_harness[harness_status.status];
-                                    var rv = [["section", {},
-                                               ["p", {},
-                                                "Harness status: ",
-                                                ["span", {"class":status_class(status)},
-                                                 status
-                                                ],
-                                               ]
-                                              ]];
-
-                                    if (harness_status.status === harness_status.ERROR) {
-                                        rv[0].push(["pre", {}, harness_status.message]);
-                                    }
-                                    return rv;
-                                },
-                                ["p", {}, "Found ${num_tests} tests"],
-                                function() {
-                                    var rv = [["div", {}]];
-                                    var i = 0;
-                                    while (status_text.hasOwnProperty(i)) {
-                                        if (status_number.hasOwnProperty(status_text[i])) {
-                                            var status = status_text[i];
-                                            rv[0].push(["div", {"class":status_class(status)},
-                                                        ["label", {},
-                                                         ["input", {type:"checkbox", checked:"checked"}],
-                                                         status_number[status] + " " + status]]);
-                                        }
-                                        i++;
-                                    }
-                                    return rv;
-                                },
-                               ];
-
-        log.appendChild(render(summary_template, {num_tests:tests.length}, output_document));
-
-        forEach(output_document.querySelectorAll("section#summary label"),
-                function(element)
-                {
-                    on_event(element, "click",
-                             function(e)
-                             {
-                                 if (output_document.getElementById("results") === null) {
-                                     e.preventDefault();
-                                     return;
-                                 }
-                                 var result_class = element.parentNode.getAttribute("class");
-                                 var style_element = output_document.querySelector("style#hide-" + result_class);
-                                 var input_element = element.querySelector("input");
-                                 if (!style_element && !input_element.checked) {
-                                     style_element = output_document.createElementNS(xhtml_ns, "style");
-                                     style_element.id = "hide-" + result_class;
-                                     style_element.textContent = "table#results > tbody > tr."+result_class+"{display:none}";
-                                     output_document.body.appendChild(style_element);
-                                 } else if (style_element && input_element.checked) {
-                                     style_element.parentNode.removeChild(style_element);
-                                 }
-                             });
-                });
-
-        // This use of innerHTML plus manual escaping is not recommended in
-        // general, but is necessary here for performance.  Using textContent
-        // on each individual <td> adds tens of seconds of execution time for
-        // large test suites (tens of thousands of tests).
-        function escape_html(s)
-        {
-            return s.replace(/\&/g, "&amp;")
-                .replace(/</g, "&lt;")
-                .replace(/"/g, "&quot;")
-                .replace(/'/g, "&#39;");
-        }
-
-        function has_assertions()
-        {
-            for (var i = 0; i < tests.length; i++) {
-                if (tests[i].properties.hasOwnProperty("assert")) {
-                    return true;
-                }
-            }
-            return false;
-        }
-
-        function get_assertion(test)
-        {
-            if (test.properties.hasOwnProperty("assert")) {
-                if (Array.isArray(test.properties.assert)) {
-                    return test.properties.assert.join(' ');
-                }
-                return test.properties.assert;
-            }
-            return '';
-        }
-
-        log.appendChild(document.createElementNS(xhtml_ns, "section"));
-        var assertions = has_assertions();
-        var html = "<h2>Details</h2><table id='results' " + (assertions ? "class='assertions'" : "" ) + ">" +
-            "<thead><tr><th>Result</th><th>Test Name</th>" +
-            (assertions ? "<th>Assertion</th>" : "") +
-            "<th>Message</th></tr></thead>" +
-            "<tbody>";
-        for (var i = 0; i < tests.length; i++) {
-            html += '<tr class="' +
-                escape_html(status_class(status_text[tests[i].status])) +
-                '"><td>' +
-                escape_html(status_text[tests[i].status]) +
-                "</td><td>" +
-                escape_html(tests[i].name) +
-                "</td><td>" +
-                (assertions ? escape_html(get_assertion(tests[i])) + "</td><td>" : "") +
-                escape_html(tests[i].message ? tests[i].message : " ") +
-                "</td></tr>";
-        }
-        html += "</tbody></table>";
-        try {
-            log.lastChild.innerHTML = html;
-        } catch (e) {
-            log.appendChild(document.createElementNS(xhtml_ns, "p"))
-               .textContent = "Setting innerHTML for the log threw an exception.";
-            log.appendChild(document.createElementNS(xhtml_ns, "pre"))
-               .textContent = html;
-        }
-    };
-
-    /*
-     * Template code
-     *
-     * A template is just a javascript structure. An element is represented as:
-     *
-     * [tag_name, {attr_name:attr_value}, child1, child2]
-     *
-     * the children can either be strings (which act like text nodes), other templates or
-     * functions (see below)
-     *
-     * A text node is represented as
-     *
-     * ["{text}", value]
-     *
-     * String values have a simple substitution syntax; ${foo} represents a variable foo.
-     *
-     * It is possible to embed logic in templates by using a function in a place where a
-     * node would usually go. The function must either return part of a template or null.
-     *
-     * In cases where a set of nodes are required as output rather than a single node
-     * with children it is possible to just use a list
-     * [node1, node2, node3]
-     *
-     * Usage:
-     *
-     * render(template, substitutions) - take a template and an object mapping
-     * variable names to parameters and return either a DOM node or a list of DOM nodes
-     *
-     * substitute(template, substitutions) - take a template and variable mapping object,
-     * make the variable substitutions and return the substituted template
-     *
-     */
-
-    function is_single_node(template)
-    {
-        return typeof template[0] === "string";
-    }
-
-    function substitute(template, substitutions)
-    {
-        if (typeof template === "function") {
-            var replacement = template(substitutions);
-            if (!replacement) {
-                return null;
-            }
-
-            return substitute(replacement, substitutions);
-        }
-
-        if (is_single_node(template)) {
-            return substitute_single(template, substitutions);
-        }
-
-        return filter(map(template, function(x) {
-                              return substitute(x, substitutions);
-                          }), function(x) {return x !== null;});
-    }
-
-    function substitute_single(template, substitutions)
-    {
-        var substitution_re = /\$\{([^ }]*)\}/g;
-
-        function do_substitution(input) {
-            var components = input.split(substitution_re);
-            var rv = [];
-            for (var i = 0; i < components.length; i += 2) {
-                rv.push(components[i]);
-                if (components[i + 1]) {
-                    rv.push(String(substitutions[components[i + 1]]));
-                }
-            }
-            return rv;
-        }
-
-        function substitute_attrs(attrs, rv)
-        {
-            rv[1] = {};
-            for (var name in template[1]) {
-                if (attrs.hasOwnProperty(name)) {
-                    var new_name = do_substitution(name).join("");
-                    var new_value = do_substitution(attrs[name]).join("");
-                    rv[1][new_name] = new_value;
-                }
-            }
-        }
-
-        function substitute_children(children, rv)
-        {
-            for (var i = 0; i < children.length; i++) {
-                if (children[i] instanceof Object) {
-                    var replacement = substitute(children[i], substitutions);
-                    if (replacement !== null) {
-                        if (is_single_node(replacement)) {
-                            rv.push(replacement);
-                        } else {
-                            extend(rv, replacement);
-                        }
-                    }
-                } else {
-                    extend(rv, do_substitution(String(children[i])));
-                }
-            }
-            return rv;
-        }
-
-        var rv = [];
-        rv.push(do_substitution(String(template[0])).join(""));
-
-        if (template[0] === "{text}") {
-            substitute_children(template.slice(1), rv);
-        } else {
-            substitute_attrs(template[1], rv);
-            substitute_children(template.slice(2), rv);
-        }
-
-        return rv;
-    }
-
-    function make_dom_single(template, doc)
-    {
-        var output_document = doc || document;
-        var element;
-        if (template[0] === "{text}") {
-            element = output_document.createTextNode("");
-            for (var i = 1; i < template.length; i++) {
-                element.data += template[i];
-            }
-        } else {
-            element = output_document.createElementNS(xhtml_ns, template[0]);
-            for (var name in template[1]) {
-                if (template[1].hasOwnProperty(name)) {
-                    element.setAttribute(name, template[1][name]);
-                }
-            }
-            for (var i = 2; i < template.length; i++) {
-                if (template[i] instanceof Object) {
-                    var sub_element = make_dom(template[i]);
-                    element.appendChild(sub_element);
-                } else {
-                    var text_node = output_document.createTextNode(template[i]);
-                    element.appendChild(text_node);
-                }
-            }
-        }
-
-        return element;
-    }
-
-    function make_dom(template, substitutions, output_document)
-    {
-        if (is_single_node(template)) {
-            return make_dom_single(template, output_document);
-        }
-
-        return map(template, function(x) {
-                       return make_dom_single(x, output_document);
-                   });
-    }
-
-    function render(template, substitutions, output_document)
-    {
-        return make_dom(substitute(template, substitutions), output_document);
-    }
-
-    /*
-     * Utility funcions
-     */
-    function assert(expected_true, function_name, description, error, substitutions)
-    {
-        if (tests.tests.length === 0) {
-            tests.set_file_is_test();
-        }
-        if (expected_true !== true) {
-            var msg = make_message(function_name, description,
-                                   error, substitutions);
-            throw new AssertionError(msg);
-        }
-    }
-
-    function AssertionError(message)
-    {
-        this.message = message;
-    }
-
-    AssertionError.prototype.toString = function() {
-        return this.message;
-    };
-
-    function make_message(function_name, description, error, substitutions)
-    {
-        for (var p in substitutions) {
-            if (substitutions.hasOwnProperty(p)) {
-                substitutions[p] = format_value(substitutions[p]);
-            }
-        }
-        var node_form = substitute(["{text}", "${function_name}: ${description}" + error],
-                                   merge({function_name:function_name,
-                                          description:(description?description + " ":"")},
-                                          substitutions));
-        return node_form.slice(1).join("");
-    }
-
-    function filter(array, callable, thisObj) {
-        var rv = [];
-        for (var i = 0; i < array.length; i++) {
-            if (array.hasOwnProperty(i)) {
-                var pass = callable.call(thisObj, array[i], i, array);
-                if (pass) {
-                    rv.push(array[i]);
-                }
-            }
-        }
-        return rv;
-    }
-
-    function map(array, callable, thisObj)
-    {
-        var rv = [];
-        rv.length = array.length;
-        for (var i = 0; i < array.length; i++) {
-            if (array.hasOwnProperty(i)) {
-                rv[i] = callable.call(thisObj, array[i], i, array);
-            }
-        }
-        return rv;
-    }
-
-    function extend(array, items)
-    {
-        Array.prototype.push.apply(array, items);
-    }
-
-    function forEach (array, callback, thisObj)
-    {
-        for (var i = 0; i < array.length; i++) {
-            if (array.hasOwnProperty(i)) {
-                callback.call(thisObj, array[i], i, array);
-            }
-        }
-    }
-
-    function merge(a,b)
-    {
-        var rv = {};
-        var p;
-        for (p in a) {
-            rv[p] = a[p];
-        }
-        for (p in b) {
-            rv[p] = b[p];
-        }
-        return rv;
-    }
-
-    function expose(object, name)
-    {
-        var components = name.split(".");
-        var target = test_environment.global_scope();
-        for (var i = 0; i < components.length - 1; i++) {
-            if (!(components[i] in target)) {
-                target[components[i]] = {};
-            }
-            target = target[components[i]];
-        }
-        target[components[components.length - 1]] = object;
-    }
-
-    function is_same_origin(w) {
-        try {
-            'random_prop' in w;
-            return true;
-        } catch (e) {
-            return false;
-        }
-    }
-
-    function supports_post_message(w)
-    {
-        var supports;
-        var type;
-        // Given IE  implements postMessage across nested iframes but not across
-        // windows or tabs, you can't infer cross-origin communication from the presence
-        // of postMessage on the current window object only.
-        //
-        // Touching the postMessage prop on a window can throw if the window is
-        // not from the same origin AND post message is not supported in that
-        // browser. So just doing an existence test here won't do, you also need
-        // to wrap it in a try..cacth block.
-        try {
-            type = typeof w.postMessage;
-            if (type === "function") {
-                supports = true;
-            }
-
-            // IE8 supports postMessage, but implements it as a host object which
-            // returns "object" as its `typeof`.
-            else if (type === "object") {
-                supports = true;
-            }
-
-            // This is the case where postMessage isn't supported AND accessing a
-            // window property across origins does NOT throw (e.g. old Safari browser).
-            else {
-                supports = false;
-            }
-        } catch (e) {
-            // This is the case where postMessage isn't supported AND accessing a
-            // window property across origins throws (e.g. old Firefox browser).
-            supports = false;
-        }
-        return supports;
-    }
-
-    /**
-     * Setup globals
-     */
-
-    var tests = new Tests();
-
-    addEventListener("error", function(e) {
-        if (tests.file_is_test) {
-            var test = tests.tests[0];
-            if (test.phase >= test.phases.HAS_RESULT) {
-                return;
-            }
-            var message = e.message;
-            test.set_status(test.FAIL, message);
-            test.phase = test.phases.HAS_RESULT;
-            test.done();
-            done();
-        } else if (!tests.allow_uncaught_exception) {
-            tests.status.status = tests.status.ERROR;
-            tests.status.message = e.message;
-        }
-    });
-
-    test_environment.on_tests_ready();
-
-})();
-// vim: set expandtab shiftwidth=4 tabstop=4:
diff --git a/common/tct-messaging-mms-tizen-tests/resources/testharnessreport.js b/common/tct-messaging-mms-tizen-tests/resources/testharnessreport.js
deleted file mode 100755 (executable)
index d7df7e2..0000000
+++ /dev/null
@@ -1,397 +0,0 @@
-/*global add_completion_callback, setup */
-/*
- * This file is intended for vendors to implement
- * code needed to integrate testharness.js tests with their own test systems.
- *
- * The default implementation extracts metadata from the tests and validates
- * it against the cached version that should be present in the test source
- * file. If the cache is not found or is out of sync, source code suitable for
- * caching the metadata is optionally generated.
- *
- * The cached metadata is present for extraction by test processing tools that
- * are unable to execute javascript.
- *
- * Metadata is attached to tests via the properties parameter in the test
- * constructor. See testharness.js for details.
- *
- * Typically test system integration will attach callbacks when each test has
- * run, using add_result_callback(callback(test)), or when the whole test file
- * has completed, using
- * add_completion_callback(callback(tests, harness_status)).
- *
- * For more documentation about the callback functions and the
- * parameters they are called with see testharness.js
- */
-
-
-
-var metadata_generator = {
-
-    currentMetadata: {},
-    cachedMetadata: false,
-    metadataProperties: ['help', 'assert', 'author'],
-
-    error: function(message) {
-        var messageElement = document.createElement('p');
-        messageElement.setAttribute('class', 'error');
-        this.appendText(messageElement, message);
-
-        var summary = document.getElementById('summary');
-        if (summary) {
-            summary.parentNode.insertBefore(messageElement, summary);
-        }
-        else {
-            document.body.appendChild(messageElement);
-        }
-    },
-
-    /**
-     * Ensure property value has contact information
-     */
-    validateContact: function(test, propertyName) {
-        var result = true;
-        var value = test.properties[propertyName];
-        var values = Array.isArray(value) ? value : [value];
-        for (var index = 0; index < values.length; index++) {
-            value = values[index];
-            var re = /(\S+)(\s*)<(.*)>(.*)/;
-            if (! re.test(value)) {
-                re = /(\S+)(\s+)(http[s]?:\/\/)(.*)/;
-                if (! re.test(value)) {
-                    this.error('Metadata property "' + propertyName +
-                        '" for test: "' + test.name +
-                        '" must have name and contact information ' +
-                        '("name <email>" or "name http(s)://")');
-                    result = false;
-                }
-            }
-        }
-        return result;
-    },
-
-    /**
-     * Extract metadata from test object
-     */
-    extractFromTest: function(test) {
-        var testMetadata = {};
-        // filter out metadata from other properties in test
-        for (var metaIndex = 0; metaIndex < this.metadataProperties.length;
-             metaIndex++) {
-            var meta = this.metadataProperties[metaIndex];
-            if (test.properties.hasOwnProperty(meta)) {
-                if ('author' == meta) {
-                    this.validateContact(test, meta);
-                }
-                testMetadata[meta] = test.properties[meta];
-            }
-        }
-        return testMetadata;
-    },
-
-    /**
-     * Compare cached metadata to extracted metadata
-     */
-    validateCache: function() {
-        for (var testName in this.currentMetadata) {
-            if (! this.cachedMetadata.hasOwnProperty(testName)) {
-                return false;
-            }
-            var testMetadata = this.currentMetadata[testName];
-            var cachedTestMetadata = this.cachedMetadata[testName];
-            delete this.cachedMetadata[testName];
-
-            for (var metaIndex = 0; metaIndex < this.metadataProperties.length;
-                 metaIndex++) {
-                var meta = this.metadataProperties[metaIndex];
-                if (cachedTestMetadata.hasOwnProperty(meta) &&
-                    testMetadata.hasOwnProperty(meta)) {
-                    if (Array.isArray(cachedTestMetadata[meta])) {
-                      if (! Array.isArray(testMetadata[meta])) {
-                          return false;
-                      }
-                      if (cachedTestMetadata[meta].length ==
-                          testMetadata[meta].length) {
-                          for (var index = 0;
-                               index < cachedTestMetadata[meta].length;
-                               index++) {
-                              if (cachedTestMetadata[meta][index] !=
-                                  testMetadata[meta][index]) {
-                                  return false;
-                              }
-                          }
-                      }
-                      else {
-                          return false;
-                      }
-                    }
-                    else {
-                      if (Array.isArray(testMetadata[meta])) {
-                        return false;
-                      }
-                      if (cachedTestMetadata[meta] != testMetadata[meta]) {
-                        return false;
-                      }
-                    }
-                }
-                else if (cachedTestMetadata.hasOwnProperty(meta) ||
-                         testMetadata.hasOwnProperty(meta)) {
-                    return false;
-                }
-            }
-        }
-        for (var testName in this.cachedMetadata) {
-            return false;
-        }
-        return true;
-    },
-
-    appendText: function(elemement, text) {
-        elemement.appendChild(document.createTextNode(text));
-    },
-
-    jsonifyArray: function(arrayValue, indent) {
-        var output = '[';
-
-        if (1 == arrayValue.length) {
-            output += JSON.stringify(arrayValue[0]);
-        }
-        else {
-            for (var index = 0; index < arrayValue.length; index++) {
-                if (0 < index) {
-                    output += ',\n  ' + indent;
-                }
-                output += JSON.stringify(arrayValue[index]);
-            }
-        }
-        output += ']';
-        return output;
-    },
-
-    jsonifyObject: function(objectValue, indent) {
-        var output = '{';
-        var value;
-
-        var count = 0;
-        for (var property in objectValue) {
-            ++count;
-            if (Array.isArray(objectValue[property]) ||
-                ('object' == typeof(value))) {
-                ++count;
-            }
-        }
-        if (1 == count) {
-            for (var property in objectValue) {
-                output += ' "' + property + '": ' +
-                    JSON.stringify(objectValue[property]) +
-                    ' ';
-            }
-        }
-        else {
-            var first = true;
-            for (var property in objectValue) {
-                if (! first) {
-                    output += ',';
-                }
-                first = false;
-                output += '\n  ' + indent + '"' + property + '": ';
-                value = objectValue[property];
-                if (Array.isArray(value)) {
-                    output += this.jsonifyArray(value, indent +
-                        '                '.substr(0, 5 + property.length));
-                }
-                else if ('object' == typeof(value)) {
-                    output += this.jsonifyObject(value, indent + '  ');
-                }
-                else {
-                    output += JSON.stringify(value);
-                }
-            }
-            if (1 < output.length) {
-                output += '\n' + indent;
-            }
-        }
-        output += '}';
-        return output;
-    },
-
-    /**
-     * Generate javascript source code for captured metadata
-     * Metadata is in pretty-printed JSON format
-     */
-    generateSource: function() {
-        var source =
-            '<script id="metadata_cache">/*\n' +
-            this.jsonifyObject(this.currentMetadata, '') + '\n' +
-            '*/</script>\n';
-        return source;
-    },
-
-    /**
-     * Add element containing metadata source code
-     */
-    addSourceElement: function(event) {
-        var sourceWrapper = document.createElement('div');
-        sourceWrapper.setAttribute('id', 'metadata_source');
-
-        var instructions = document.createElement('p');
-        if (this.cachedMetadata) {
-            this.appendText(instructions,
-                'Replace the existing <script id="metadata_cache"> element ' +
-                'in the test\'s <head> with the following:');
-        }
-        else {
-            this.appendText(instructions,
-                'Copy the following into the <head> element of the test ' +
-                'or the test\'s metadata sidecar file:');
-        }
-        sourceWrapper.appendChild(instructions);
-
-        var sourceElement = document.createElement('pre');
-        this.appendText(sourceElement, this.generateSource());
-
-        sourceWrapper.appendChild(sourceElement);
-
-        var messageElement = document.getElementById('metadata_issue');
-        messageElement.parentNode.insertBefore(sourceWrapper,
-                                               messageElement.nextSibling);
-        messageElement.parentNode.removeChild(messageElement);
-
-        (event.preventDefault) ? event.preventDefault() :
-                                 event.returnValue = false;
-    },
-
-    /**
-     * Extract the metadata cache from the cache element if present
-     */
-    getCachedMetadata: function() {
-        var cacheElement = document.getElementById('metadata_cache');
-
-        if (cacheElement) {
-            var cacheText = cacheElement.firstChild.nodeValue;
-            var openBrace = cacheText.indexOf('{');
-            var closeBrace = cacheText.lastIndexOf('}');
-            if ((-1 < openBrace) && (-1 < closeBrace)) {
-                cacheText = cacheText.slice(openBrace, closeBrace + 1);
-                try {
-                    this.cachedMetadata = JSON.parse(cacheText);
-                }
-                catch (exc) {
-                    this.cachedMetadata = 'Invalid JSON in Cached metadata. ';
-                }
-            }
-            else {
-                this.cachedMetadata = 'Metadata not found in cache element. ';
-            }
-        }
-    },
-
-    /**
-     * Main entry point, extract metadata from tests, compare to cached version
-     * if present.
-     * If cache not present or differs from extrated metadata, generate an error
-     */
-    process: function(tests) {
-        for (var index = 0; index < tests.length; index++) {
-            var test = tests[index];
-            if (this.currentMetadata.hasOwnProperty(test.name)) {
-                this.error('Duplicate test name: ' + test.name);
-            }
-            else {
-                this.currentMetadata[test.name] = this.extractFromTest(test);
-            }
-        }
-
-        this.getCachedMetadata();
-
-        var message = null;
-        var messageClass = 'warning';
-        var showSource = false;
-
-        if (0 === tests.length) {
-            if (this.cachedMetadata) {
-                message = 'Cached metadata present but no tests. ';
-            }
-        }
-        else if (1 === tests.length) {
-            if (this.cachedMetadata) {
-                message = 'Single test files should not have cached metadata. ';
-            }
-            else {
-                var testMetadata = this.currentMetadata[tests[0].name];
-                for (var meta in testMetadata) {
-                    if (testMetadata.hasOwnProperty(meta)) {
-                        message = 'Single tests should not have metadata. ' +
-                                  'Move metadata to <head>. ';
-                        break;
-                    }
-                }
-            }
-        }
-        else {
-            if (this.cachedMetadata) {
-                messageClass = 'error';
-                if ('string' == typeof(this.cachedMetadata)) {
-                    message = this.cachedMetadata;
-                    showSource = true;
-                }
-                else if (! this.validateCache()) {
-                    message = 'Cached metadata out of sync. ';
-                    showSource = true;
-                }
-            }
-        }
-
-        if (message) {
-            var messageElement = document.createElement('p');
-            messageElement.setAttribute('id', 'metadata_issue');
-            messageElement.setAttribute('class', messageClass);
-            this.appendText(messageElement, message);
-
-            if (showSource) {
-                var link = document.createElement('a');
-                this.appendText(link, 'Click for source code.');
-                link.setAttribute('href', '#');
-                link.setAttribute('onclick',
-                                  'metadata_generator.addSourceElement(event)');
-                messageElement.appendChild(link);
-            }
-
-            var summary = document.getElementById('summary');
-            if (summary) {
-                summary.parentNode.insertBefore(messageElement, summary);
-            }
-            else {
-                var log = document.getElementById('log');
-                if (log) {
-                    log.appendChild(messageElement);
-                }
-            }
-        }
-    },
-
-    setup: function() {
-        add_completion_callback(
-            function (tests, harness_status) {
-                metadata_generator.process(tests, harness_status);
-            });
-    }
-};
-
-metadata_generator.setup();
-
-/* If the parent window has a testharness_properties object,
- * we use this to provide the test settings. This is used by the
- * default in-browser runner to configure the timeout and the
- * rendering of results
- */
-try {
-    if (window.opener && "testharness_properties" in window.opener) {
-        /* If we pass the testharness_properties object as-is here without
-         * JSON stringifying and reparsing it, IE fails & emits the message
-         * "Could not complete the operation due to error 80700019".
-         */
-        setup(JSON.parse(JSON.stringify(window.opener.testharness_properties)));
-    }
-} catch (e) {
-}
-// vim: set expandtab shiftwidth=4 tabstop=4:
diff --git a/common/tct-messaging-mms-tizen-tests/suite.json b/common/tct-messaging-mms-tizen-tests/suite.json
deleted file mode 100755 (executable)
index 0ce94a2..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-{
-    "pkg-blacklist": [
-        "config.xml",
-        "pack.py",
-        "testcase.xsl",
-        "testresult.xsl",
-        "tests.css",
-        "icon.png",
-        "manifest.json",
-        "suite.json",
-        "inst.*"
-    ],
-    "pkg-list": {
-        "apk,cordova": {
-            "blacklist": [
-                "*"
-            ],
-            "copylist": {
-                "inst.apk.py": "inst.py",
-                "tests.full.xml": "tests.full.xml",
-                "tests.xml": "tests.xml"
-            },
-            "pkg-app": {
-                "sign-flag": "true"
-            }
-        },
-        "apk-aio, cordova-aio": {
-            "blacklist": []
-        },
-        "wgt": {
-            "blacklist": [
-                "messaging",
-                "COPYING",
-                "LICENSE.*",
-                "NOTICE",
-                "README",
-                "resources",
-                "tests.full.xml",
-                "webrunner"
-            ],
-            "copylist": {
-                "inst.wgt.py": "inst.py",
-                "askpolicy.sh": "askpolicy.sh",
-                "tests.full.xml": "tests.full.xml",
-                "tests.xml": "tests.xml"
-            },
-            "pkg-app": {
-                "sign-flag": "true"
-            }
-        },
-        "xpk": {
-            "blacklist": [
-                "*"
-            ],
-            "copylist": {
-                "inst.xpk.py": "inst.py",
-                "tests.full.xml": "tests.full.xml",
-                "tests.xml": "tests.xml"
-            },
-            "pkg-app": {
-                "blacklist": [],
-                "sign-flag": "true"
-            }
-        }
-    },
-    "pkg-name": "tct-messaging-mms-tizen-tests"
-}
diff --git a/common/tct-messaging-mms-tizen-tests/testcase.xsl b/common/tct-messaging-mms-tizen-tests/testcase.xsl
deleted file mode 100755 (executable)
index fb32685..0000000
+++ /dev/null
@@ -1,200 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-  <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
-  <xsl:template match="/">
-    <html>
-      <STYLE type="text/css">
-        @import "tests.css";
-      </STYLE>
-      <head>
-        <script type="text/javascript" src="jquery.min.js"/>
-      </head>
-      <body>
-        <div id="testcasepage">
-          <div id="title">
-            <table>
-              <tr>
-                <td>
-                  <h1>Test Cases</h1>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="suites">
-            <a name="contents"/>
-            <table>
-              <tr>
-                <th>Test Suite</th>
-                <th>Total</th>
-                <th>Auto</th>
-                <th>Manual</th>
-              </tr>
-              <tr>
-                <td>
-                  Total
-                </td>
-                <td>
-                  <xsl:value-of select="count(test_definition/suite/set//testcase)"/>
-                </td>
-                <td>
-                  <xsl:value-of select="count(test_definition/suite/set//testcase[@execution_type = 'auto'])"/>
-                </td>
-                <td>
-                  <xsl:value-of select="count(test_definition/suite/set//testcase[@execution_type != 'auto'])"/>
-                </td>
-              </tr>
-              <xsl:for-each select="test_definition/suite">
-                <tr>
-                  <td>
-                    <a>
-                      <xsl:attribute name="href">
-                        #<xsl:value-of select="@name"/>
-                      </xsl:attribute>
-                      <xsl:value-of select="@name"/>
-                    </a>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase)"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set/testcase[@execution_type = 'auto'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set/testcase[@execution_type != 'auto'])"/>
-                  </td>
-                </tr>
-              </xsl:for-each>
-            </table>
-          </div>
-          <div id="title">
-            <table>
-              <tr>
-                <td class="title">
-                  <h1>Detailed Test Cases</h1>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="cases">
-            <xsl:for-each select="test_definition/suite">
-              <xsl:sort select="@name"/>
-              <div id="btc">
-                <a href="#contents">Back to Contents</a>
-              </div>
-              <div id="suite_title">
-                Test Suite:
-                <xsl:value-of select="@name"/>
-                <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
-              </div>
-              <table>
-                <tr>
-                  <th>Case_ID</th>
-                  <th>Purpose</th>
-                  <th>Type</th>
-                  <th>Component</th>
-                  <th>Execution Type</th>
-                  <th>Description</th>
-                  <th>Specification</th>
-                </tr>
-                <xsl:for-each select=".//set">
-                  <xsl:sort select="@name"/>
-                  <tr>
-                    <td colspan="7">
-                      Test Set:
-                      <xsl:value-of select="@name"/>
-                    </td>
-                  </tr>
-                  <xsl:for-each select=".//testcase">
-                    <!-- xsl:sort select="@id" /> -->
-                    <tr>
-                      <td>
-                        <xsl:value-of select="@id"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@purpose"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@type"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@component"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@execution_type"/>
-                      </td>
-                      <td>
-                        <p>
-                          Pre_condition:
-                          <xsl:value-of select=".//description/pre_condition"/>
-                        </p>
-                        <p>
-                          Post_condition:
-                          <xsl:value-of select=".//description/post_condition"/>
-                        </p>
-                        <p>
-                          Test Script Entry:
-                          <xsl:value-of select=".//description/test_script_entry"/>
-                        </p>
-                        <p>
-                          Steps:
-                          <p/>
-                          <xsl:for-each select=".//description/steps/step"><xsl:sort select="@order"/>
-                            Step
-                            <xsl:value-of select="@order"/>
-                            :
-                            <xsl:value-of select="./step_desc"/>
-                            ;
-                            <p/>
-                            Expected Result:
-                            <xsl:value-of select="./expected"/>
-                            <p/>
-                          </xsl:for-each>
-                        </p>
-                      </td>
-                      <td>
-                        <xsl:for-each select=".//specs/spec"><b>[Spec_Assertion]:</b><br/>
-                          [Category]:
-                          <xsl:value-of select="./spec_assertion/@category"/>
-                          <br/>
-                          [Section]:
-                          <xsl:value-of select="./spec_assertion/@section"/>
-                          <br/>
-                          [Specification]:
-                          <xsl:value-of select="./spec_assertion/@specification"/>
-                          <br/>
-                          [Interface]:
-                          <xsl:value-of select="./spec_assertion/@interface"/>
-                          <br/>
-                          <xsl:choose><xsl:when test="./spec_assertion/@element_name">
-                              [<xsl:value-of select="./spec_assertion/@element_type"/>]:
-                              <xsl:value-of select="./spec_assertion/@element_name"/>
-                              <br/>
-                            </xsl:when></xsl:choose>
-                          [URL]:
-                          <xsl:value-of select="./spec_url"/>
-                          <br/>
-                          [Statement]:
-                          <xsl:value-of select="./spec_statement"/>
-                          <br/>
-                        </xsl:for-each>
-                      </td>
-                    </tr>
-                  </xsl:for-each>
-                </xsl:for-each>
-              </table>
-            </xsl:for-each>
-          </div>
-        </div>
-        <div id="goTopBtn">
-          <img border="0" src="./back_top.png"/>
-        </div>
-        <script type="text/javascript" src="application.js"/>
-        <script language="javascript" type="text/javascript">
-          $(document).ready(function(){
-            goTopEx();
-          });
-        </script>
-      </body>
-    </html>
-  </xsl:template>
-</xsl:stylesheet>
diff --git a/common/tct-messaging-mms-tizen-tests/testresult.xsl b/common/tct-messaging-mms-tizen-tests/testresult.xsl
deleted file mode 100755 (executable)
index c5199c0..0000000
+++ /dev/null
@@ -1,491 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-  <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
-  <xsl:template match="/">
-    <html>
-      <STYLE type="text/css">
-        @import "tests.css";
-      </STYLE>
-      <head>
-        <script type="text/javascript" src="jquery.min.js"/>
-      </head>
-      <body>
-        <div id="testcasepage">
-          <div id="title">
-            <table>
-              <tr>
-                <td>
-                  <h1>Test Report</h1>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="device">
-            <table>
-              <tr>
-                <th colspan="2">Device Information</th>
-              </tr>
-              <tr>
-                <td>Device Name</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@device_name">
-                      <xsl:if test="test_definition/environment/@device_name = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@device_name"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Device Model</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@device_model">
-                      <xsl:if test="test_definition/environment/@device_model = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@device_model"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>OS Version</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@os_version">
-                      <xsl:if test="test_definition/environment/@os_version = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@os_version"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Device ID</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@device_id">
-                      <xsl:if test="test_definition/environment/@device_id = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@device_id"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Firmware Version</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@firmware_version">
-                      <xsl:if test="test_definition/environment/@firmware_version = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@firmware_version"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Build ID</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@build_id">
-                      <xsl:if test="test_definition/environment/@build_id = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@build_id"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Screen Size</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@screen_size">
-                      <xsl:if test="test_definition/environment/@screen_size = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@screen_size"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Resolution</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@resolution">
-                      <xsl:if test="test_definition/environment/@resolution = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@resolution"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Host Info</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@host">
-                      <xsl:if test="test_definition/environment/@host = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@host"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>CTS Version</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@cts_version">
-                      <xsl:if test="test_definition/environment/@cts_version = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@cts_version"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Others</td>
-                <td>
-                  <xsl:if test="test_definition/environment/other = ''">
-                    N/A
-                  </xsl:if>
-                  <xsl:call-template name="br-replace">
-                    <xsl:with-param name="word" select="test_definition/environment/other"/>
-                  </xsl:call-template>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="summary">
-            <table>
-              <tr>
-                <th colspan="2">Test Summary</th>
-              </tr>
-              <tr>
-                <td>Test Plan Name</td>
-                <td>
-                  <xsl:value-of select="test_definition/summary/@test_plan_name"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Tests Total</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase)"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Test Passed</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase[@result = 'PASS'])"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Test Failed</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase[@result = 'FAIL'])"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Test Block</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase[@result = 'BLOCK'])"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Test Not Run</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase) - count(test_definition//suite/set/testcase[@result = 'PASS']) - count(test_definition//suite/set/testcase[@result = 'FAIL']) - count(test_definition//suite/set/testcase[@result = 'BLOCK'])"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Start time</td>
-                <td>
-                  <xsl:value-of select="test_definition/summary/start_at"/>
-                </td>
-              </tr>
-              <tr>
-                <td>End time</td>
-                <td>
-                  <xsl:value-of select="test_definition/summary/end_at"/>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="suite_summary">
-            <div id="title">
-              <a name="contents"/>
-              <table>
-                <tr>
-                  <td class="title">
-                    <h1>Test Summary by Suite</h1>
-                  </td>
-                </tr>
-              </table>
-            </div>
-            <table>
-              <tr>
-                <th>Suite</th>
-                <th>Passed</th>
-                <th>Failed</th>
-                <th>Blocked</th>
-                <th>Not Run</th>
-                <th>Total</th>
-              </tr>
-              <xsl:for-each select="test_definition/suite">
-                <xsl:sort select="@name"/>
-                <tr>
-                  <td>
-                    <a>
-                      <xsl:attribute name="href">
-                        #<xsl:value-of select="@name"/>
-                      </xsl:attribute>
-                      <xsl:value-of select="@name"/>
-                    </a>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase[@result = 'PASS'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase[@result = 'FAIL'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase[@result = 'BLOCK'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase) - count(set//testcase[@result = 'PASS']) - count(set//testcase[@result = 'FAIL']) - count(set//testcase[@result = 'BLOCK'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase)"/>
-                  </td>
-                </tr>
-              </xsl:for-each>
-            </table>
-          </div>
-          <div id="fail_cases">
-            <div id="title">
-              <table>
-                <tr>
-                  <td class="title">
-                    <h1 align="center">
-                      Test Failures (
-                        <xsl:value-of select="count(test_definition/suite/set//testcase[@result = 'FAIL'])"/>
-                      )
-                    </h1>
-                  </td>
-                </tr>
-              </table>
-            </div>
-            <xsl:for-each select="test_definition/suite">
-              <xsl:sort select="@name"/>
-              <div id="btc">
-                <a href="#contents">Back to Contents</a>
-              </div>
-              <div id="suite_title">
-                Test Suite:
-                <xsl:value-of select="@name"/>
-                <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
-              </div>
-              <table>
-                <tr>
-                  <th>Case_ID</th>
-                  <th>Purpose</th>
-                  <th>Result</th>
-                  <th>Stdout</th>
-                </tr>
-                <xsl:for-each select=".//set">
-                  <xsl:sort select="@name"/>
-                  <tr>
-                    <td colspan="4">
-                      Test Set:
-                      <xsl:value-of select="@name"/>
-                    </td>
-                  </tr>
-                  <xsl:for-each select=".//testcase">
-                    <xsl:sort select="@id"/>
-                    <xsl:choose>
-                      <xsl:when test="@result">
-                        <xsl:if test="@result = 'FAIL'">
-                          <tr>
-                            <td>
-                              <xsl:value-of select="@id"/>
-                            </td>
-                            <td>
-                              <xsl:value-of select="@purpose"/>
-                            </td>
-                            <td class="red_rate">
-                              <xsl:value-of select="@result"/>
-                            </td>
-                            <td>
-                              <xsl:value-of select=".//result_info/stdout"/>
-                              <xsl:if test=".//result_info/stdout = ''">
-                                N/A
-                              </xsl:if>
-                            </td>
-                          </tr>
-                        </xsl:if>
-                      </xsl:when>
-                    </xsl:choose>
-                  </xsl:for-each>
-                </xsl:for-each>
-              </table>
-            </xsl:for-each>
-          </div>
-          <div id="cases">
-            <div id="title">
-              <table>
-                <tr>
-                  <td class="title">
-                    <h1 align="center">Detailed Test Results</h1>
-                  </td>
-                </tr>
-              </table>
-            </div>
-            <xsl:for-each select="test_definition/suite">
-              <xsl:sort select="@name"/>
-              <div id="btc">
-                <a href="#contents">Back to Contents</a>
-              </div>
-              <div id="suite_title">
-                Test Suite:
-                <xsl:value-of select="@name"/>
-                <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
-              </div>
-              <table>
-                <tr>
-                  <th>Case_ID</th>
-                  <th>Purpose</th>
-                  <th>Result</th>
-                  <th>Stdout</th>
-                </tr>
-                <xsl:for-each select=".//set">
-                  <xsl:sort select="@name"/>
-                  <tr>
-                    <td colspan="4">
-                      Test Set:
-                      <xsl:value-of select="@name"/>
-                    </td>
-                  </tr>
-                  <xsl:for-each select=".//testcase">
-                    <xsl:sort select="@id"/>
-                    <tr>
-                      <td>
-                        <xsl:value-of select="@id"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@purpose"/>
-                      </td>
-                      <xsl:choose>
-                        <xsl:when test="@result">
-                          <xsl:if test="@result = 'FAIL'">
-                            <td class="red_rate">
-                              <xsl:value-of select="@result"/>
-                            </td>
-                          </xsl:if>
-                          <xsl:if test="@result = 'PASS'">
-                            <td class="green_rate">
-                              <xsl:value-of select="@result"/>
-                            </td>
-                          </xsl:if>
-                          <xsl:if test="@result = 'BLOCK' ">
-                            <td>
-                              BLOCK
-                            </td>
-                          </xsl:if>
-                          <xsl:if test="@result != 'BLOCK' and @result != 'FAIL' and @result != 'PASS' ">
-                            <td>
-                              Not Run
-                            </td>
-                          </xsl:if>
-                        </xsl:when>
-                        <xsl:otherwise>
-                          <td>
-                          </td>
-                        </xsl:otherwise>
-                      </xsl:choose>
-                      <td>
-                        <xsl:value-of select=".//result_info/stdout"/>
-                        <xsl:if test=".//result_info/stdout = ''">
-                          N/A
-                        </xsl:if>
-                      </td>
-                    </tr>
-                  </xsl:for-each>
-                </xsl:for-each>
-              </table>
-            </xsl:for-each>
-          </div>
-        </div>
-        <div id="goTopBtn">
-          <img border="0" src="./back_top.png"/>
-        </div>
-        <script type="text/javascript" src="application.js"/>
-        <script language="javascript" type="text/javascript">
-          $(document).ready(function(){
-            goTopEx();
-          });
-        </script>
-      </body>
-    </html>
-  </xsl:template>
-  <xsl:template name="br-replace">
-    <xsl:param name="word"/>
-    <xsl:variable name="cr">
-      <xsl:text>
-      </xsl:text>
-    </xsl:variable>
-    <xsl:choose>
-      <xsl:when test="contains($word,$cr)">
-        <xsl:value-of select="substring-before($word,$cr)"/>
-        <br/>
-        <xsl:call-template name="br-replace">
-          <xsl:with-param name="word" select="substring-after($word,$cr)"/>
-        </xsl:call-template>
-      </xsl:when>
-      <xsl:otherwise>
-        <xsl:value-of select="$word"/>
-      </xsl:otherwise>
-    </xsl:choose>
-  </xsl:template>
-</xsl:stylesheet>
diff --git a/common/tct-messaging-mms-tizen-tests/tests.css b/common/tct-messaging-mms-tizen-tests/tests.css
deleted file mode 100755 (executable)
index c2ba69b..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-@charset "UTF-8";\r
-/* CSS Document */\r
-#testcasepage div,\r
-#testcasepage h1,\r
-#testcasepage p,\r
-#testcasepage table,\r
-#testcasepage tr,\r
-#testcasepage th,\r
-#testcasepage td {\r
-  margin: 0;\r
-  padding: 0;\r
-  border: 0;\r
-  font-weight: inherit;\r
-  font-style: inherit;\r
-  font-size: 0.96em;\r
-  font-family: arial;\r
-  vertical-align: baseline;\r
-}\r
-\r
-#testcasepage p {\r
-  text-align: left;\r
-}\r
-\r
-#suite_title {\r
-  text-align: left;\r
-}\r
-\r
-#btc {\r
-  text-align: right;\r
-}\r
-\r
-#testcasepage table {\r
-  border-collapse: separate;\r
-  border-spacing: 0;\r
-  margin-bottom: 1.4em;\r
-  vertical-align: middle;\r
-}\r
-\r
-#testcasepage th,\r
-#testcasepage td {\r
-  text-align: left;\r
-  font-weight: normal;\r
-  padding: 4px 10px 4px 5px;\r
-  vertical-align: middle;\r
-}\r
-\r
-#cases table {\r
-  width: 101%;\r
-}\r
-\r
-#fail_cases table {\r
-  width: 101%;\r
-}\r
-\r
-#title table {\r
-  width: 101%;\r
-}\r
-\r
-#device table {\r
-  width: 50%;\r
-}\r
-\r
-#summary table {\r
-  width: 50%;\r
-}\r
-\r
-#testcasepage th {\r
-  border-bottom: 1px solid #000;\r
-  background-color: #AAAAAA;\r
-  border-left: 1px solid #000;\r
-  border-top: 1px solid #000;\r
-  color: #000;\r
-  font-weight: bold;\r
-  vertical-align: bottom;\r
-}\r
-\r
-#testcasepage th:last-child,\r
-#testcasepage td:last-child {\r
-  border-right: 1px solid #000;\r
-}\r
-\r
-#testcasepage td {\r
-  border-left: 1px solid;\r
-  font-weight: normal;\r
-  border-bottom: 1px solid;\r
-}\r
-\r
-#testcasepage td.yellow_rate {\r
-  background-color: #ffcc00;\r
-}\r
-\r
-#testcasepage td.green_rate {\r
-  background-color: #33cc33;\r
-}\r
-\r
-#testcasepage td.dgreen_rate {\r
-  background-color: #339933;\r
-}\r
-\r
-#testcasepage td.red_rate {\r
-  background-color: #FF3333;\r
-}\r
-\r
-#title table,\r
-#title tr,\r
-#title td {\r
-  border-left: none;\r
-  border-bottom: none;\r
-  text-align: center;\r
-}\r
-\r
-#title td:last-child {\r
-  border-right: none;\r
-}\r
-\r
-#testcasepage h1 {\r
-  font-size: 2em;\r
-  font-family: Arial, sans-serif;\r
-  font-weight: bold;\r
-  line-height: 1;\r
-  color: #000;\r
-  margin-bottom: 0.75em;\r
-  padding-top: 0.25em;\r
-  font-weight: bold;\r
-}\r
-\r
-#goTopBtn {\r
-  right: 0px;\r
-  bottom: 0px;\r
-  position: fixed; +position: absolute;\r
-  top: expression(parseInt(document.body.scrollTop) + document.body.clientHeight - 40);\r
-}\r
diff --git a/common/tct-messaging-mms-tizen-tests/tests.full.xml b/common/tct-messaging-mms-tizen-tests/tests.full.xml
deleted file mode 100755 (executable)
index db298c4..0000000
+++ /dev/null
@@ -1,2994 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet type="text/xsl"  href="./testcase.xsl"?>
-<test_definition>
-  <suite name="tct-messaging-mms-tizen-tests" extension="crosswalk" category="Tizen Web Device APIs">
-    <set name="Messaging-mms_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony.mms"/>
-      </capabilities>
-      <testcase purpose="Check if instance of interface MessageBody (MMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute loaded of MessageBody (MMS) exists, has type Boolean and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_loaded_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_loaded_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="loaded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageId of MessageBody (MMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_messageId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_messageId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute plainBody of MessageBody (MMS) exists, has type DOMString" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_plainBody_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_plainBody_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="plainBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsremoved">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsremoved.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsupdated">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsupdated.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Checks various message attributes upon message (mms) creation" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_mms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_mms.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_mms_onsuccess">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageServiceArraySuccessCallback_mms_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageService (MMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method loadMessageAttachment of MessageService (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageAttachment_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageAttachment_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method loadMessageBody of MessageService (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageBody_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_loadMessageBody_missarg_message">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_missarg_message.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageStorage of MessageService (MMS) exists, has type MessageStorage and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_messageStorage_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_messageStorage_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="messageStorage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method sendMessage of MessageService (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_sendMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageService (MMS) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_mms_without_callbacks">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_sendMessage_mms_without_callbacks.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_body_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_body_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId equal to 3" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_folderId_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_folderId_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_from_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_from_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment equal to false" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_hasAttachment_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_hasAttachment_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead equal to true" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_isRead_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_isRead_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_mms_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_mms_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by subject (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_subject_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_subject_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_timestamp_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_timestamp_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_to_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_to_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationChangeListener method throws exception when conversationsChangeCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addConversationsChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addDraftMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addFoldersChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (mms)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="300">/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addMessagesChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageStorage (MMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-MMS-2_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony.mms"/>
-      </capabilities>
-      <testcase purpose="Check if method findConversations of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_from">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_from.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_id">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_id.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by messageCount (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_messageCount">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_messageCount.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by preview (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_preview">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_preview.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by timestamp (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_timestamp">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_to">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_type">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_type.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by unreadMessages (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_unreadMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_unreadMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method findFolders of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findFolders_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findFolders_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method findMessages of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_folderId_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_folderId_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_from_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_from_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_hasAttachment_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_id_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_id_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_isRead_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_isRead_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_plainBody_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_timestamp_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_to_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_to_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_type_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_type_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-MMS-3_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony.mms"/>
-      </capabilities>
-      <testcase purpose="Check if method removeChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeConversations of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeConversations_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeMessages of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_updateMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_messages_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_messages_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations works properly for mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_formms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_removeConversations_formms.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute attachments of Message (MMS) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_attachments_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_attachments_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="attachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute body of Message (MMS) exists, has type MessageBody" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_body_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_body_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="body" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with function (mms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_function">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_function.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with empty object (mms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_object">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_object.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with minimum arguments (mms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_minargs">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_minargs.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute conversationId of Message (MMS) exists, has type MessageConvId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_conversationId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_conversationId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="conversationId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface Message (MMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute folderId of Message (MMS) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_folderId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_folderId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="folderId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute from of Message (MMS) exists, has type DOMString and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_from_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_from_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute hasAttachment of Message (MMS) exists, has type Boolean and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_hasAttachment_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_hasAttachment_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="hasAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute id of Message (MMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_id_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_id_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute inResponseTo of Message (MMS) exists, has type MessageId" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_inResponseTo_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_inResponseTo_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="inResponseTo" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute isRead of Message (MMS) exists, has type Boolean" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_isRead_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_isRead_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageStatus of Message (MMS) exists, has type DOMString and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_messageStatus_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_messageStatus_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="messageStatus" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute subject of Message (MMS) exists, has type DOMString" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_subject_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_subject_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="subject" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute timestamp of Message (MMS) exists, has type Date and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_timestamp_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_timestamp_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute to of Message (MMS) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_to_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_to_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type of Message (MMS) exists, has type MessageServiceTag and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly without errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_getMessageServices_without_error_callback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_getMessageServices_without_error_callback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if type attribute exists in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-mms_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony.mms"/>
-      </capabilities>
-      <testcase purpose="Check if instance of interface MessageBody (MMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute loaded of MessageBody (MMS) exists, has type Boolean and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_loaded_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_loaded_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="loaded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageId of MessageBody (MMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_messageId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_messageId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute plainBody of MessageBody (MMS) exists, has type DOMString" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_plainBody_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_plainBody_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="plainBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsremoved">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsremoved.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsupdated">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsupdated.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Checks various message attributes upon message (mms) creation" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_mms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_mms.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_mms_onsuccess">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageServiceArraySuccessCallback_mms_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageService (MMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method loadMessageAttachment of MessageService (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageAttachment_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageAttachment_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method loadMessageBody of MessageService (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageBody_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_loadMessageBody_missarg_message">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_missarg_message.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageStorage of MessageService (MMS) exists, has type MessageStorage and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_messageStorage_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_messageStorage_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="messageStorage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method sendMessage of MessageService (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_sendMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageService (MMS) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_mms_without_callbacks">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_sendMessage_mms_without_callbacks.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_body_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_body_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId equal to 3" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_folderId_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_folderId_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_from_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_from_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment equal to false" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_hasAttachment_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_hasAttachment_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead equal to true" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_isRead_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_isRead_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_mms_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_mms_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by subject (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_subject_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_subject_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_timestamp_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_timestamp_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_to_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_to_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationChangeListener method throws exception when conversationsChangeCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addConversationsChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addDraftMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addFoldersChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (mms)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="300">/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addMessagesChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageStorage (MMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-MMS-2_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony.mms"/>
-      </capabilities>
-      <testcase purpose="Check if method findConversations of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_from">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_from.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_id">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_id.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by messageCount (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_messageCount">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_messageCount.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by preview (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_preview">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_preview.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by timestamp (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_timestamp">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_to">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_type">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_type.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by unreadMessages (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_unreadMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_unreadMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method findFolders of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findFolders_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findFolders_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method findMessages of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_folderId_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_folderId_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_from_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_from_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_hasAttachment_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_id_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_id_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_isRead_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_isRead_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_plainBody_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_timestamp_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_to_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_to_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_type_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_type_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-MMS-3_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony.mms"/>
-      </capabilities>
-      <testcase purpose="Check if method removeChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeConversations of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeConversations_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeMessages of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_updateMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_messages_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_messages_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations works properly for mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_formms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_removeConversations_formms.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute attachments of Message (MMS) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_attachments_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_attachments_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="attachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute body of Message (MMS) exists, has type MessageBody" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_body_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_body_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="body" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with function (mms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_function">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_function.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with empty object (mms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_object">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_object.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with minimum arguments (mms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_minargs">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_minargs.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute conversationId of Message (MMS) exists, has type MessageConvId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_conversationId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_conversationId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="conversationId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface Message (MMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute folderId of Message (MMS) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_folderId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_folderId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="folderId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute from of Message (MMS) exists, has type DOMString and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_from_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_from_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute hasAttachment of Message (MMS) exists, has type Boolean and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_hasAttachment_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_hasAttachment_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="hasAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute id of Message (MMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_id_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_id_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute inResponseTo of Message (MMS) exists, has type MessageId" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_inResponseTo_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_inResponseTo_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="inResponseTo" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute isRead of Message (MMS) exists, has type Boolean" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_isRead_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_isRead_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageStatus of Message (MMS) exists, has type DOMString and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_messageStatus_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_messageStatus_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="messageStatus" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute subject of Message (MMS) exists, has type DOMString" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_subject_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_subject_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="subject" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute timestamp of Message (MMS) exists, has type Date and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_timestamp_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_timestamp_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute to of Message (MMS) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_to_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_to_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type of Message (MMS) exists, has type MessageServiceTag and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly without errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_getMessageServices_without_error_callback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_getMessageServices_without_error_callback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if type attribute exists in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-  </suite>
-</test_definition>
diff --git a/common/tct-messaging-mms-tizen-tests/tests.xml b/common/tct-messaging-mms-tizen-tests/tests.xml
deleted file mode 100755 (executable)
index 99d4f87..0000000
+++ /dev/null
@@ -1,1272 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet type="text/xsl" href="./testcase.xsl"?>
-<test_definition>
-  <suite name="tct-messaging-mms-tizen-tests" extension="crosswalk" category="Tizen Web Device APIs">
-    <set name="Messaging-mms_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony.mms"/>
-      </capabilities>
-      <testcase purpose="Check if instance of interface MessageBody (MMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute loaded of MessageBody (MMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_loaded_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_loaded_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageId of MessageBody (MMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_messageId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_messageId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute plainBody of MessageBody (MMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_plainBody_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_plainBody_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsremoved">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsremoved.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsupdated">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsupdated.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Checks various message attributes upon message (mms) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_mms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_mms.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_mms_onsuccess">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageServiceArraySuccessCallback_mms_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageService (MMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method loadMessageAttachment of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageAttachment_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageAttachment_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method loadMessageBody of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageBody_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_loadMessageBody_missarg_message">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_missarg_message.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageStorage of MessageService (MMS) exists, has type MessageStorage and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_messageStorage_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_messageStorage_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method sendMessage of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_sendMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageService (MMS) exists, has type MessageServiceTag and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_mms_without_callbacks">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_sendMessage_mms_without_callbacks.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_body_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_body_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId equal to 3" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_folderId_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_folderId_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_from_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_from_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment equal to false" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_hasAttachment_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_hasAttachment_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead equal to true" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_isRead_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_isRead_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_mms_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_mms_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by subject (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_subject_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_subject_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_timestamp_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_timestamp_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_to_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_to_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationChangeListener method throws exception when conversationsChangeCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addConversationsChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addDraftMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addFoldersChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (mms)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="300">/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addMessagesChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageStorage (MMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-MMS-2_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony.mms"/>
-      </capabilities>
-      <testcase purpose="Check if method findConversations of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_from">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_from.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_id">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_id.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by messageCount (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_messageCount">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_messageCount.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by preview (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_preview">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_preview.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by timestamp (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_timestamp">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_to">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_type">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_type.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by unreadMessages (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_unreadMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_unreadMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method findFolders of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findFolders_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findFolders_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method findMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_folderId_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_folderId_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_from_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_from_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_hasAttachment_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_id_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_id_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_isRead_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_isRead_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_plainBody_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_timestamp_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_to_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_to_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_type_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_type_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-MMS-3_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony.mms"/>
-      </capabilities>
-      <testcase purpose="Check if method removeChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeConversations of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeConversations_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_updateMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_messages_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_messages_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations works properly for mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_formms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_removeConversations_formms.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute attachments of Message (MMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_attachments_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_attachments_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute body of Message (MMS) exists, has type MessageBody" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_body_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_body_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly (email)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with function (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_function">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_function.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with empty object (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_object">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_object.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with minimum arguments (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_minargs">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_minargs.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute conversationId of Message (MMS) exists, has type MessageConvId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_conversationId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_conversationId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface Message (MMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute folderId of Message (MMS) exists, has type MessageFolderId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_folderId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_folderId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute from of Message (MMS) exists, has type DOMString and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_from_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_from_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute hasAttachment of Message (MMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_hasAttachment_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_hasAttachment_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute id of Message (MMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_id_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_id_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute inResponseTo of Message (MMS) exists, has type MessageId" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_inResponseTo_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_inResponseTo_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute isRead of Message (MMS) exists, has type Boolean" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_isRead_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_isRead_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageStatus of Message (MMS) exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_messageStatus_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_messageStatus_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute subject of Message (MMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_subject_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_subject_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute timestamp of Message (MMS) exists, has type Date and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_timestamp_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_timestamp_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute to of Message (MMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_to_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_to_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute type of Message (MMS) exists, has type MessageServiceTag and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_getMessageServices_without_error_callback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_getMessageServices_without_error_callback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if type attribute exists in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-mms_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony.mms"/>
-      </capabilities>
-      <testcase purpose="Check if instance of interface MessageBody (MMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute loaded of MessageBody (MMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_loaded_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_loaded_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageId of MessageBody (MMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_messageId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_messageId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute plainBody of MessageBody (MMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_plainBody_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_plainBody_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsremoved">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsremoved.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsupdated">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsupdated.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Checks various message attributes upon message (mms) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_mms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_mms.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_mms_onsuccess">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageServiceArraySuccessCallback_mms_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageService (MMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method loadMessageAttachment of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageAttachment_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageAttachment_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method loadMessageBody of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageBody_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_loadMessageBody_missarg_message">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_missarg_message.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageStorage of MessageService (MMS) exists, has type MessageStorage and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_messageStorage_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_messageStorage_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method sendMessage of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_sendMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageService (MMS) exists, has type MessageServiceTag and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_mms_without_callbacks">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_sendMessage_mms_without_callbacks.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_body_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_body_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId equal to 3" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_folderId_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_folderId_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_from_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_from_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment equal to false" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_hasAttachment_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_hasAttachment_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead equal to true" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_isRead_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_isRead_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_mms_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_mms_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by subject (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_subject_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_subject_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_timestamp_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_timestamp_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_to_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_to_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationChangeListener method throws exception when conversationsChangeCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addConversationsChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addDraftMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addFoldersChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (mms)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="300">/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addMessagesChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageStorage (MMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-MMS-2_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony.mms"/>
-      </capabilities>
-      <testcase purpose="Check if method findConversations of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_from">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_from.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_id">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_id.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by messageCount (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_messageCount">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_messageCount.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by preview (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_preview">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_preview.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by timestamp (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_timestamp">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_to">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_type">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_type.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by unreadMessages (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_unreadMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_unreadMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method findFolders of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findFolders_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findFolders_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method findMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_folderId_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_folderId_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_from_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_from_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_hasAttachment_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_id_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_id_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_isRead_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_isRead_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_plainBody_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_timestamp_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_to_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_to_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_type_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_type_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-MMS-3_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony.mms"/>
-      </capabilities>
-      <testcase purpose="Check if method removeChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeConversations of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeConversations_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_updateMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_messages_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_messages_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations works properly for mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_formms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_removeConversations_formms.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute attachments of Message (MMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_attachments_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_attachments_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute body of Message (MMS) exists, has type MessageBody" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_body_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_body_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly (email)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with function (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_function">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_function.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with empty object (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_object">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_object.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with minimum arguments (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_minargs">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_minargs.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute conversationId of Message (MMS) exists, has type MessageConvId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_conversationId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_conversationId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface Message (MMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_mms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute folderId of Message (MMS) exists, has type MessageFolderId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_folderId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_folderId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute from of Message (MMS) exists, has type DOMString and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_from_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_from_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute hasAttachment of Message (MMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_hasAttachment_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_hasAttachment_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute id of Message (MMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_id_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_id_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute inResponseTo of Message (MMS) exists, has type MessageId" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_inResponseTo_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_inResponseTo_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute isRead of Message (MMS) exists, has type Boolean" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_isRead_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_isRead_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageStatus of Message (MMS) exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_messageStatus_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_messageStatus_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute subject of Message (MMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_subject_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_subject_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute timestamp of Message (MMS) exists, has type Date and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_timestamp_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_timestamp_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute to of Message (MMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_to_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_to_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute type of Message (MMS) exists, has type MessageServiceTag and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_getMessageServices_without_error_callback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_getMessageServices_without_error_callback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if type attribute exists in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-  </suite>
-</test_definition>
diff --git a/common/tct-messaging-mms-tizen-tests/webapi-tizen-messaging-test_image.jpg b/common/tct-messaging-mms-tizen-tests/webapi-tizen-messaging-test_image.jpg
deleted file mode 100755 (executable)
index 7a57964..0000000
Binary files a/common/tct-messaging-mms-tizen-tests/webapi-tizen-messaging-test_image.jpg and /dev/null differ
diff --git a/common/tct-messaging-mms-tizen-tests/webapi-tizen-messaging-test_noise.mp3 b/common/tct-messaging-mms-tizen-tests/webapi-tizen-messaging-test_noise.mp3
deleted file mode 100755 (executable)
index d4d1659..0000000
Binary files a/common/tct-messaging-mms-tizen-tests/webapi-tizen-messaging-test_noise.mp3 and /dev/null differ
diff --git a/common/tct-messaging-mms-tizen-tests/webrunner/index.html b/common/tct-messaging-mms-tizen-tests/webrunner/index.html
deleted file mode 100755 (executable)
index 69cc2d6..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-<!doctype html>
-<!--
-Copyright (c) 2013 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Wang, Jing <jing.j.wang@intel.com>
-
--->
-
-<head>
-<meta name="viewport" content="width=device-width">
-<script src="jquery-1.10.2.min.js"></script>
-<style type="text/css">
-html {
-  font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;
-}
-
-body {
-  background-color: white;
-}
-
-table#browse {
-  border-collapse:collapse;
-  table-layout:fixed;width:85%;
-}
-
-table#browse th:first-child,table#browse td:first-child {width:35%;}
-
-table#browse th:last-child,table#browse td:last-child {width:25%;}
-
-table#browse th {
-  padding:0;
-  padding-bottom:0.5em;
-  text-align:left;
-  border-bottom:medium solid black;
-}
-table#browse td {
-  padding:1em;
-  padding-bottom:0.5em;
-  border-bottom:thin solid black;
-}
-div#navbar{
-  box-sizing: border-box;
-  width: 99%;
-  border: 0px;
-  text-align: left;
-  background: slateblue;
-  color: white;
-}
-div#footbar{
-  width: 99%;
-  border: 0px;
-  text-align: left;
-}
-textarea#testinfo{
-  width: 99%;
-  font-size: 0.8em;
-}
-input{
-  font-size: 1.2em;
-  padding-top: 0.1em;
-  padding-bottom: 0.1em;
-}
-
-#btnPrev,#btnNext{
-  width: 8%;
-}
-#btnExit,#btnRun,#btnSave,#btnBack,#btnPass,#btnFail,#btnBlock{
-  width: 16%;
-  font-weight: bold;
-}
-
-#btnPass { color: green;}
-#btnFail { color: red;}
-#btnBlock { color: orange;}
-#labBatch{ font-size: 0.5em;}
-#textTest { width: 53%; }
-#title { font-size: 1.4em; font-weight: bold;}
-#frmTest { border: none;}
-.listhide { display: none;}
-.short{
-  padding-left: 1em;
-}
-</style>
-</head>
-
-<body>
-<div id="navbar" class="batchhide">
-  <span class="short listhide suitehide"><input type="button" id="btnBack" value="Back"/></span>
-  <span class="short listhide suitehide">
-    <input type="button" id="btnPrev" value="<"/>
-    <input type="text"  id="textTest" readonly />
-    <input type="button" id="btnNext" value=">"/>
-  </span>
-  <span class="short tchide"> <input type="button" id="btnExit" value="Exit"/></span>
-  <span id="title" class="short tchide">Open Web Test</span>
-</div>
-<div id="divSum"> </div>
-<div width="99%" class="batchhide">
-  <textarea class="listhide suitehide" id="testinfo" rows=4 disabled>
-  </textarea>
-</div>
-<div id="footbar" class="batchhide">
-  <span class="short"><input type="button"  id="btnRun" value="Run"/></span>
-  <span class="short listhide tchide"><input type="button" id="btnSave" value="Save"/></span>
-  <span class="short listhide suitehide"><input type="button" id="btnPass" value="PASS"/></span>
-  <span class="short listhide suitehide"><input type="button" id="btnFail" value="FAIL"/></span>
-  <span class="short listhide suitehide"><input type="button" id="btnBlock" value="BLOCK"/></span>
-</div>
-<iframe width="100%" id="frmTest" allowFullScreen="true" mozAllowFullScreen="true" webkitAllowFullscreen="true" src="">
-</iframe>
-<script src="testrunner.js"> </script>
-</body>
-</html>
diff --git a/common/tct-messaging-mms-tizen-tests/webrunner/jquery-1.10.2.min.js b/common/tct-messaging-mms-tizen-tests/webrunner/jquery-1.10.2.min.js
deleted file mode 100755 (executable)
index da41706..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
-//@ sourceMappingURL=jquery-1.10.2.min.map
-*/
-(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav></:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t
-}({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Ct=/^(?:checkbox|radio)$/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle);
-u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=un(e,t),Pt.detach()),Gt[e]=n),n}function un(e,t){var n=x(t.createElement(e)).appendTo(t.body),r=x.css(n[0],"display");return n.remove(),r}x.each(["height","width"],function(e,n){x.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(x.css(e,"display"))?x.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,i),i):0)}}}),x.support.opacity||(x.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=x.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===x.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),x(function(){x.support.reliableMarginRight||(x.cssHooks.marginRight={get:function(e,n){return n?x.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!x.support.pixelPosition&&x.fn.position&&x.each(["top","left"],function(e,n){x.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?x(e).position()[n]+"px":r):t}}})}),x.expr&&x.expr.filters&&(x.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!x.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||x.css(e,"display"))},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(x.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Ct.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),x.param=function(e,n){var r,i=[],o=function(e,t){t=x.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(x.isArray(t))x.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==x.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var mn,yn,vn=x.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Cn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=x.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=o.href}catch(Ln){yn=a.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(T)||[];if(x.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(l){var u;return o[l]=!0,x.each(e[l]||[],function(e,l){var c=l(n,r,i);return"string"!=typeof c||a||o[c]?a?!(u=c):t:(n.dataTypes.unshift(c),s(c),!1)}),u}return s(n.dataTypes[0])||!o["*"]&&s("*")}function _n(e,n){var r,i,o=x.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&x.extend(!0,e,r),e}x.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,l=e.indexOf(" ");return l>=0&&(i=e.slice(l,e.length),e=e.slice(0,l)),x.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&x.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Cn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,x.ajaxSettings),t):_n(x.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,l,u,c,p=x.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?x(f):x.event,h=x.Deferred(),g=x.Callbacks("once memory"),m=p.statusCode||{},y={},v={},b=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(T)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),qn(An,p,n,C),2===b)return C;l=p.global,l&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)C.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,C,p)===!1||2===b))return C.abort();w="abort";for(i in{success:1,error:1,complete:1})C[i](p[i]);if(u=qn(jn,p,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},p.timeout));try{b=1,u.send(y,k)}catch(N){if(!(2>b))throw N;k(-1,N)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,N=n;2!==b&&(b=2,s&&clearTimeout(s),u=t,a=i||"",C.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=Mn(p,C,r)),w=On(p,w,C,c),c?(p.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(x.lastModified[o]=T),T=C.getResponseHeader("etag"),T&&(x.etag[o]=T)),204===e||"HEAD"===p.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,v=w.error,c=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(f,[y,N,C]):h.rejectWith(f,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,p,c?y:v]),g.fireWith(f,[C,N]),l&&(d.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,o){return x.isFunction(r)&&(o=o||i,i=r,r=t),x.ajax({url:e,type:n,dataType:o,data:r,success:i})}});function Mn(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in l)if(l[s]&&l[s].test(o)){u.unshift(s);break}if(u[0]in r)a=u[0];else{for(s in r){if(!u[0]||e.converters[s+" "+u[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==u[0]&&u.unshift(a),r[a]):t}function On(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=a.head||x("head")[0]||a.documentElement;return{send:function(t,i){n=a.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Fn=[],Bn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fn.pop()||x.expando+"_"+vn++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,l=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Fn.push(o)),s&&x.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=x.ajaxSettings.xhr(),x.support.cors=!!Rn&&"withCredentials"in Rn,Rn=x.support.ajax=!!Rn,Rn&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,p;try{if(r&&(i||4===l.readyState))if(r=t,a&&(l.onreadystatechange=x.noop,$n&&delete Pn[a]),i)4!==l.readyState&&l.abort();else{p={},s=l.status,u=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{c=l.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,u)},n.async?4===l.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},x(e).unload($n)),Pn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Yn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),a=(x.cssNumber[e]||"px"!==o&&+r)&&Yn.exec(x.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,x.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=x.now()}function Zn(e,t,n){var r,i=(Qn[t]||[]).concat(Qn["*"]),o=0,a=i.length;for(;a>o;o++)if(r=i[o].call(n,t,e))return r}function er(e,t,n){var r,i,o=0,a=Gn.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(tr(c,u.opts.specialEasing);a>o;o++)if(r=Gn[o].call(u,e,c,u.opts))return r;return x.map(c,Zn,u),x.isFunction(u.opts.start)&&u.opts.start.call(e,u),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function tr(e,t){var n,r,i,o,a;for(n in e)if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=x.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}x.Animation=x.extend(er,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,l,u=this,c={},p=e.style,f=e.nodeType&&nn(e),d=x._data(e,"fxshow");n.queue||(s=x._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(x.support.inlineBlockNeedsLayout&&"inline"!==ln(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",x.support.shrinkWrapBlocks||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Vn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show"))continue;c[r]=d&&d[r]||x.style(e,r)}if(!x.isEmptyObject(c)){d?"hidden"in d&&(f=d.hidden):d=x._data(e,"fxshow",{}),o&&(d.hidden=!f),f?x(e).show():u.done(function(){x(e).hide()}),u.done(function(){var t;x._removeData(e,"fxshow");for(t in c)x.style(e,t,c[t])});for(r in c)a=Zn(f?d[r]:0,r,u),r in d||(d[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}x.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=er(this,x.extend({},e),o);(i||x._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=x.timers,a=x._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=x._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}x.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=rr.prototype.init,x.fx.tick=function(){var e,n=x.timers,r=0;for(Xn=x.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||x.fx.stop(),Xn=t},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){Un||(Un=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Un),Un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){x.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,x.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},x.offset={setOffset:function(e,t,n){var r=x.css(e,"position");"static"===r&&(e.style.position="relative");var i=x(e),o=i.offset(),a=x.css(e,"top"),s=x.css(e,"left"),l=("absolute"===r||"fixed"===r)&&x.inArray("auto",[a,s])>-1,u={},c={},p,f;l?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),x.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+p),null!=t.left&&(u.left=t.left-o.left+f),"using"in t?t.using.call(e,u):i.css(u)}},x.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===x.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?x(a).scrollLeft():o,r?o:x(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return x.access(this,function(n,r,i){var o;return x.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?x.css(n,r,s):x.style(n,r,i,s)},n,a?i:t,a,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:(e.jQuery=e.$=x,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}))})(window);
diff --git a/common/tct-messaging-mms-tizen-tests/webrunner/testrunner.js b/common/tct-messaging-mms-tizen-tests/webrunner/testrunner.js
deleted file mode 100755 (executable)
index bb4da28..0000000
+++ /dev/null
@@ -1,935 +0,0 @@
-/*
-Copyright (c) 2013 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Wang, Jing <jing.j.wang@intel.com>
-
-*/
-$(function(){
-  try {
-    var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle");
-    console.log("Shape = " + shape);
-  } catch (error) {
-    console.log("Error name: " + error.name + ", message: " + error.message);
-  }
-
-  if(shape){
-    $('body').css('max-width', '100%');
-    $('body').css('max-height', '100%');
-    $('body').css('background-color', 'white');
-    $('body').css('margin-top', '8%');
-    $('body').css('margin-bottom', '5%');
-    $('body').css('margin-left', '8%');
-    $('body').css('margin-right', '8%');
-  }
-});
-
-var STUB_PORT = "";
-var RESOURCE_DIR;
-$.ajax({
-  url:"/opt/usr/home/owner/share/TCT_CONFIG",
-  data:{},
-  async:false,
-  success:function(data){
-    var regEx = /DEVICE_SUITE_TARGET_30=(.+)/i;
-    var path = regEx.exec(data);
-    RESOURCE_DIR = path[1];
-  }
-});
-$.ajax({
-  url:RESOURCE_DIR + "/tct/portconfigure.json",
-  dataType:"json",
-  data:{},
-  async:false,
-  success:function(data){
-    STUB_PORT = data[0]["STUB_PORT"];
-  }
-});
-(function (window){
-  function TestRunner() {
-    this.start = null;
-    this.ui = null;
-    this.submitResult = function () {};
-    this.report = function (result, message) {};
-    this.doTest = function () {};
-  }
-
-  TestRunner.prototype = (function () {
-    var index = -1;
-    var Tests = [];
-    var Testsuites = {};
-    var TestsuiteSums = {};
-    var TestsetSums =  {};
-    var sum = newSummary();
-    var testContext =  newTestContext();
-    function newSummary(sum) {
-      if (typeof sum === "undefined")
-        return {"TOTAL": 0, "PASS" : 0, "FAIL" : 0, "BLOCK" : 0, "NOTRUN" : 0};
-      return {"TOTAL": sum.TOTAL, "PASS": sum.PASS, "FAIL": sum.FAIL, "BLOCK": sum.BLOCK, "NOTRUN": sum.NOTRUN};
-    }
-    function newTestContext() {
-      return {start_time: null, prev_uri: "", uri: "", sub_index: 0, onload_delay: 0};
-    }
-    function getParms () {
-      var parms = {};
-      var items = location.search.substring(1).split('&');
-      for ( var i = 0, max = items.length; i < max; i++) {
-        var pos = items[i].indexOf('=');
-        if (pos > 0) {
-          var key = items[i].substring(0, pos);
-          var val = items[i].substring(pos + 1);
-          if (!parms[key]) {
-            var rawVal = decodeURI(val);
-            if (rawVal.indexOf(',') < 0)
-              parms[key] = rawVal;
-            else
-              parms[key] = rawVal.split(',');
-          }
-        } else
-           parms[items[i]] = 1;
-      }
-      return parms;
-    }
-    return {
-      constructor: TestRunner,
-      options:  getParms(),
-      addTestsuite: function (testsuite, category) {
-        if (!category)
-          category = "default";
-        if (typeof Testsuites[category] === "undefined")
-          Testsuites[category] = [];
-        Testsuites[category].push(testsuite);
-      },
-
-      goNext: function () {
-        if (Tests.length === 0) return false;
-        if (index >= Tests.length) {
-          index = -1;
-          return false;
-        }
-        index++;
-        return true;
-      },
-
-      goPrev: function () {
-        if (Tests.length === 0) return false;
-        if (index < 0) {
-          index = Tests.length;
-          return false;
-        }
-        index--;
-        return true;
-      },
-
-      runAll: function () {
-        testContext = newTestContext();
-        VIEWFLAGS.add("batch");
-        this.ui.updateView(VIEWFLAGS.del("suite"));
-        this.testIndex(-1);
-        this.doTest();
-      },
-
-      cleanTests: function () {
-        Tests = [];
-      },
-
-      testIndex: function (ind) {
-        if (typeof ind === "undefined")
-          return index;
-        index = ind;
-      },
-
-      getTest: function (ind) {
-        if (typeof ind === "undefined")
-          ind = index;
-        return Tests[ind];
-      },
-
-      addTest: function (test) {
-        if (test instanceof Array)
-          Tests = Tests.concat(test);
-        else
-          Tests.push(test);
-      },
-
-      sumInit: function (num) {
-        if (typeof num === "undefined")
-          num = Tests.length;
-        sum.TOTAL = sum.NOTRUN = num;
-        sum.PASS = sum.FAIL = sum.BLOCK = 0;
-      },
-
-      sumUpdate: function (oldRes, newRes, set) {
-        if (oldRes !== null) {
-          sum[oldRes]--;
-          if (set !== null) TestsetSums[set][oldRes]--;
-        }
-        if (newRes !== null) {
-          sum[newRes]++;
-          if (set != null) TestsetSums[set][newRes]++;
-        }
-      },
-
-      checkResult: function (oTestDoc) {
-        var message = "";
-        if (!oTestDoc) {
-          this.report('FAIL', 'Test page crash');
-          return true;
-        }
-        // Handle sub-index test
-        if (testContext.sub_index > 0) {
-          var oRes = $(oTestDoc).find("table#results");
-          if (oRes.length == 0)
-            return false;
-          var ind = testContext.sub_index - 1;
-          var $n = $(oRes).find('tbody > tr').eq(ind);
-          if ($n.length == 0)
-            return false
-          var result = $n.children("td:eq(0)").text();
-          message = $n.children("td:eq(2)").text();
-          this.report(result.toUpperCase(), message);
-          return true;
-        }
-
-        var oPass = $(oTestDoc).find(".pass");
-        var oFail = $(oTestDoc).find(".fail");
-        // Qunit sub-cases
-        var oUnitRes = $(oTestDoc).find("ol.qunit-assert-list");
-        $(oUnitRes).find('li').each(function() {
-          message += "[assert]" + $(this).attr("class");
-          message += "[message]*" + $(this).children("span").text() + "\n";
-        });
-        // All tests pass
-        if (oPass.length > 0 && oFail.length == 0) {
-          this.report('PASS', message);
-          return true;
-        }
-        // Handle failed tests
-        if (oFail.length > 0) {
-          var oRes = $(oTestDoc).find("table#results");
-          $(oRes).find('tr.fail').each(function() {
-            message += " *" + $(this).children("td:eq(1)").text() + ": ";
-            message += $(this).children("td:eq(2)").text();
-          });
-          this.report('FAIL', message);
-          return true;
-        }
-        return false;
-      },
-
-      testInfo: function (ind) {
-        var info = "";
-        var tc = this.getTest();
-        if (!tc) return info;
-        info += "Test   : (" + (index + 1) + "/" + sum.TOTAL + ") ";
-        info += tc.test_script_entry;
-        info += "\nPurpose: " +  tc.purpose;
-        if (tc.pre_condition)
-          info += "\nPrecondition: " + tc.pre_condition;
-        if (tc.steps)
-          info += "\n" + tc.steps;
-        return info;
-      },
-
-      getTestCaseUrl: function () {
-        function getUriField(uri, param) {
-          var querys = uri.split("?")
-          if (querys.length <= 1)
-            return "";
-          uri = querys[1];
-          var start = uri.indexOf(param);
-          if (start == -1)
-            return "";
-          start += param.length + 1;
-          var end = uri.indexOf("&", start);
-          if (end == -1)
-            return uri.substring(start);
-          return uri.substring(start, end);
-        }
-        var tc = this.getTest();
-        if (!tc) return null;
-        var delay = tc.onload_delay;
-        if (delay)
-          testContext.onload_delay = parseInt(delay) * 1000;
-        else
-          testContext.onload_delay = 5000;
-
-        var uri = tc.test_script_entry;
-        if (typeof this.options.testprefix !== "undefined") {
-          var pos = uri.indexOf('http://');
-          if (pos !== 0)
-            uri = this.options.testprefix + uri
-        }
-        var val = getUriField(uri, "value");
-        if (val && tc.execution_type == "auto" && VIEWFLAGS.has("batch")) { // Need sub index in TC
-          testContext.sub_index = parseInt(val);
-          testContext.uri = uri.split("?")[0];
-          if (testContext.uri == testContext.prev_uri)
-            return "";
-        } else {
-          testContext.uri = uri;
-          testContext.sub_index = 0;
-        }
-        testContext.prev_uri = testContext.uri;
-        testContext.start_time = new Date();
-        return testContext.uri;
-      },
-
-      loadReady: function () {
-        if (!VIEWFLAGS.has("batch"))
-          return;
-        if (!this.ui.testComplete()){
-          if (testContext.onload_delay > 0){
-            var tval = 500;
-            var self = this;
-            setTimeout(function() {self.loadReady();}, tval);
-            testContext.onload_delay -= tval;
-            return
-          }
-          this.report("BLOCK", "Timeout");
-        }
-        this.doTest();
-      },
-
-      getListSum: function () {
-        var sumdata = "";
-        sumdata += "<p><table id='browse'><tr><th>Testsuite</th>";
-        sumdata += "<th>Total</th><th>Pass</th><th>Fail</th><th>Block</th></tr>";
-        $.each(TestsuiteSums, function (key, val){
-          sumdata += "<tr><td>" + key+ "</td>";
-          sumdata += "<td style='color:black;'>" + val.TOTAL + "</td>";
-          sumdata += "<td style='color:green;'>" + val.PASS + "</td>";
-          sumdata += "<td style='color:red;'>" + val.FAIL + "</td>";
-          sumdata += "<td style='color:orange;'>" + val.BLOCK + "</td></tr>";
-        });
-        sumdata += "</table>";
-        return sumdata;
-      },
-
-      getTestSum: function (include_set) {
-        var sumdata = "<section><h3>Total:" + sum.TOTAL
-            + " Pass:<span style='color:green;'>" + sum.PASS
-            + "</span> Fail:<span style='color:red;'>" + sum.FAIL
-            + "</span> Block:<span style='color:orange;'>" + sum.BLOCK
-            + "</span> Notrun:<span style='color:black;'>" + sum.NOTRUN
-            + "</span>";
-                                if (this.options.notifyInfo) {
-          sumdata += "<span style='color:slateblue;'> " + this.options.notifyInfo + "</span>";
-          this.options.notifyInfo = "";
-        }
-        sumdata += "</h3></section>";
-        if (VIEWFLAGS.has("batch")) {
-          var tc = this.getTest();
-          if (tc)  sumdata += "<h4><span style='background-color: wheat'>(#" + index + ") " + tc.id + "</span></h4>";
-        }
-        if (this.options.testsuite_name)
-          TestsuiteSums[this.options.testsuite_name] = newSummary(sum)
-        if (include_set) {
-          sumdata += "<p><table id='browse'><tr><th>Testset</th>";
-          sumdata += "<th>Total</th><th>Pass</th><th>Fail</th><th>Block</th></tr>";
-          $.each(TestsetSums, function (key, val){
-            sumdata += "<tr><td>" + key+ "</td>";
-            sumdata += "<td style='color:black;'>" + val.TOTAL + "</td>";
-            sumdata += "<td style='color:green;'>" + val.PASS + "</td>";
-            sumdata += "<td style='color:red;'>" + val.FAIL + "</td>";
-            sumdata += "<td style='color:orange;'>" + val.BLOCK + "</td></tr>";
-          });
-          sumdata += "</table>";
-        }
-        return sumdata;
-      },
-
-      getListInfo: function () {
-        function createList(category) {
-          var testList = "";
-          $.each(Testsuites[category], function (ind, val) {
-            testList += "<li><input type='checkbox' id='" + val + "'>&nbsp;<a href=''>" + val + "</a>" + "</li>";
-          });
-          return testList;
-        }
-        var data = "<html><head><style>.category{background: #cccccc;border: 1px solid #aaaaaa;} li{list-style-type: none; padding-left: 0.6em; padding-bottom:0.8em; font-size: 1.3em;}html{font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;}</style></head><body>";
-        $.each(Testsuites, function(key, val) {
-          data += "<section><h3 class='category'><input type='checkbox' id='" + key + "'>&nbsp;" + key + "</h3>"
-          data +=  createList(key) + "</section>";
-        });
-        data += "</body></html>";
-        return data;
-      },
-
-      getBrowseInfo: function () {
-        var failList = passList = blockList = notrunList = "";
-        function createTestList(tc, color, ind) {
-          var mtag = (tc.execution_type === "manual") ? "(M)" : "";
-          return "<li>" + mtag + "<a rel='" + ind + "' href='' style ='color:" + color + ";'>" + tc.id + "</a>" + "</li>";
-        }
-        TestsetSums = {};
-        $.each(Tests, function (ind, val) {
-          if (this.set === null)
-            this.set = "default";
-          if (typeof TestsetSums[this.set] === "undefined")
-            TestsetSums[this.set] = newSummary();
-          TestsetSums[this.set][this.result]++;
-          TestsetSums[this.set]["TOTAL"]++;
-          if (this.result == "FAIL")
-            failList += createTestList(this, "red", ind);
-          if (this.result == "PASS")
-            passList += createTestList(this, "green", ind);
-          if (this.result == "BLOCK")
-            blockList += createTestList(this, "orange", ind);
-          if (this.result == "NOTRUN")
-            notrunList += createTestList(this, "black", ind);
-        });
-        var data = "<html><head><style>ul li {padding-bottom:0.8em;font-size: 1.3em;}";
-        data += "html{font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;}</style></head><body>";
-        if (notrunList)
-          data += "<section><h3>Notrun</h3><ul>" + notrunList + "</ul></section>";
-        if (failList)
-          data += "<section><h3 style='color: red;'>Fail</h3><ul>" + failList + "</ul></section>";
-        if (blockList)
-          data += "<section><h3 style='color: orange;'>Block</h3><ul>" + blockList + "</ul></section>";
-        if (passList)
-          data += "<section><h3 style='color: green'>Pass</h3><ul>" + passList + "</ul></section>";
-        data += "</body></html>";
-        return data;
-      },
-
-      TestCase: function () {
-        return {
-          id: null,
-          test_script_entry: null,
-          execution_type: "manual",
-          result: "NOTRUN",
-          purpose: "",
-          set: null,
-          pre_condition: "",
-          onload_delay: 0,
-          steps: "",
-          data: null};
-      },
-
-      TestSuite: function () {
-        return {
-          id: null,
-          sum: null,
-          data: null};
-      }
-
-    };
-     }());
-  // Standalone test runner
-  var master_runner = new TestRunner();
-  master_runner.start = function (ui) {
-    function filter(xml, self) {
-      var set_ind = 0;
-      var manuals = [];
-      $(xml).find("set").each(function () {
-        var setname = $(this).attr("name");
-        if (!setname)
-          setname = "set" + set_ind;
-        $(this).find("testcase").each(function () {
-          var v = $(this).attr('execution_type');
-          if (self.options.execution_type && v != self.options.execution_type
-              && $.inArray(v, self.options.execution_type) < 0) {
-            $(this).remove();
-            return;
-          }
-          v = $(this).attr('priority');
-          if (self.options.priority && v != self.options.priority
-              && $.inArray(v, self.options.priority) < 0){
-            $(this).remove();
-            return;
-          }
-          var test = self.TestCase();
-          test.id = $(this).attr("id");
-          test.execution_type = $(this).attr("execution_type");
-          test.test_script_entry = $(this).find("test_script_entry").text();
-          test.purpose = $(this).attr("purpose");
-          test.pre_condition = $(this).find("pre_condition").text();
-          test.onload_delay = $(this).attr("onload_delay");
-          test.result = "NOTRUN";
-          test.set = setname;
-          test.data = this;
-          if (test.execution_type === "auto")
-            self.addTest(test);
-          else
-            manuals.push(test);
-        });
-        set_ind++;
-      });
-      self.addTest(manuals);
-    }
-
-    var self = this;
-    if (ui) ui.bind(self);
-    if (self.options.testsuite_name)
-      self.options.testsuite = "opt/" + self.options.testsuite_name + "/tests.xml";
-    if (!self.options.testsuite) {
-      $.getJSON(TESTLIST_FILE, function(data) {
-        for (var i = 0, imax = data.length; i < imax; i++) {
-          for (var j = 0, jmax = data[i].tests.length; j < jmax; j++)
-            self.addTestsuite(data[i].tests[j], data[i].category);
-        }
-        self.ui.list();
-        self.options.multiplex = true;
-      });
-    } else {
-      $.get(self.options.testsuite, null, function (xml) {
-        self.internal.xmldoc = xml;
-        filter(xml, self);
-        self.sumInit();
-        self.ui.browse();
-        setTimeout(function () {
-        if (self.options.autorun)
-          self.runAll();
-        }, 500);
-      }, "xml");
-    }
-  };
-
-  master_runner.doTest = function () {
-    var self = this, tc = null;
-    while (self.goNext()) {
-      tc = self.getTest();
-      if (!tc || tc.execution_type === "manual")
-        break;
-      self.ui.updateTestInfo(self.testInfo(), null, null);
-      self.ui.runTest(self.getTestCaseUrl());
-      return;
-    }
-    this.ui.updateView(VIEWFLAGS.del("batch"));
-    if (self.options.autorun) {
-      self.submitResult();
-      if (self.options.multiplex) {
-        self.ui.list();
-        return;
-      }
-      close_window();
-      return;
-    }
-    if (!tc) {
-      setTimeout(function () {self.ui.browse();}, 500);
-      return;
-    }
-    this.ui.updateTest();
-  };
-
-  master_runner.report = function (result, log) {
-    var tc = this.getTest();
-    if (!tc) return;
-    var oldresult = tc.result;
-    this.sumUpdate(oldresult, result, tc.set);
-    tc.result = result;
-    $(tc.data).find('result_info').remove();
-    $(tc.data).attr('result', result);
-    var doc = $.parseXML("<result_info><actual_result>" + result +
-           "</actual_result><stdout>" +
-           escape_html(log) + "</stdout></result_info>");
-    $(tc.data).append(doc.documentElement);
-    if (VIEWFLAGS.has("batch")) result = null;
-    this.ui.updateTestInfo(null, this.getTestSum(false), result);
-  };
-
-  master_runner.submitResult = function () {
-    var SERVER = "http://127.0.0.1:8080";
-    var contents = (new XMLSerializer()).serializeToString(this.internal.xmldoc);
-    var resfile = "tests.res.xml";
-    if (this.options.testsuite_name)
-      resfile = this.options.testsuite_name + "." + resfile;
-    $.post(SERVER + "/save_file", {filename: resfile, data: contents})
-  };
-
-  master_runner.internal = {xmldoc: null};
-
-  // Controlled test runner
-  var slave_runner = new TestRunner();
-  slave_runner.start = function (ui) {
-    function sync_session_id() {
-      $.get(SERVER + "/init_session_id?session_id="
-            + self.internal.session_id);
-    }
-    var self = this;
-    self.internal.session_id = Math.round(Math.random() * 10000);
-    sync_session_id();
-    var next_step = self.internal.get_json("ask_next_step");
-    if (!next_step || next_step.step != "continue") {
-      close_window();
-      return false;
-    }
-    ui.bind(self);
-    var f = function () {
-      var p = self.internal.get_json("check_execution_progress");
-      if (p) self.sumInit(parseInt(p.total));
-      self.doTest();
-    };
-    self.ui.updateView(VIEWFLAGS.add("batch"));
-    self.ui.updateView(VIEWFLAGS.del("suite"));
-    setTimeout(f, 1000);
-    return true;
-  };
-
-  slave_runner.doTest = function () {
-    var self = this;
-    if (self.internal.stage > 0) {
-      self.ui.updateView(VIEWFLAGS.del("batch"));
-      self.goNext();
-      self.ui.updateTest();
-      return;
-    }
-    var next_step = self.internal.get_json("ask_next_step");
-    if (next_step && next_step.step == "continue") {
-      var task = self.internal.get_json("auto_test_task");
-      if (task === null) {
-        print_error("ask_test_task", "Fail get task");
-      } else if (task.invalid === 0) {
-        print_error("ask_test_task", "Invalid session");
-      } else if (task.stop === 0) {
-        print_error("ask_test_task", "close window");
-      } else if (task.none !== 0) { //handle auto test
-        var test = self.TestCase();
-        test.id = task.case_id;
-        test.onload_delay = task.onload_delay;
-        test.test_script_entry = task.entry;
-        test.execution_type = "auto";
-        test.purpose = task.purpose;
-        test.pre_condition = task.pre_condition;
-        self.addTest(test);
-        self.goNext();
-        self.ui.updateTestInfo(self.testInfo(), null, null);
-        self.ui.runTest(self.getTestCaseUrl());
-        return;
-      } else {  //handle manual test
-        self.ui.updateView(VIEWFLAGS.del("batch"));
-        self.internal.stage = 1;
-        var mtask = self.internal.get_json("manual_cases");
-        if (mtask && mtask.none != 0) {
-          self.cleanTests();
-          for (var i = 0, max = mtask.length; i < max; i++) {
-            var test = self.TestCase();
-            test.id = mtask[i].case_id;
-            test.test_script_entry = mtask[i].entry;
-            test.purpose = mtask[i].purpose;
-            test.pre_condition = mtask[i].pre_condition;
-            test.result = "NOTRUN";
-            test.execution_type = "manual";
-            test.index = i;
-            var steps = "";
-            $(mtask[i].steps).each(function () {
-              steps += "Step-" + this.order + "\t: " + this.step_desc + "\n";
-              steps += "Expect\t: " + this.expected + "\n";
-            });
-            test.steps = steps;
-            self.addTest(test);
-          }
-          self.ui.updateTest(-1);
-          self.sumInit();
-          self.ui.browse();
-        } else
-          close_window();
-        return;
-      }
-    }
-    close_window();
-  };
-
-  slave_runner.report = function(result, log) {
-    var tc = this.getTest();
-    var oldresult;
-    if (this.internal.stage > 0) {
-      this.internal.post_json("commit_manual_result",
-        {"case_id": tc.id, "result": result});
-      oldresult = tc.result
-      tc.result = result;
-    } else {
-      this.internal.post_json("commit_result",
-        { "case_id" : tc.id,
-          "result" : result,
-          "msg" : "[Message]" + log,
-          "session_id" : this.internal.session_id});
-      oldresult = "NOTRUN";
-    }
-    this.sumUpdate(oldresult, result, null);
-    if (VIEWFLAGS.has("batch")) result = null;
-    this.ui.updateTestInfo(null, this.getTestSum(false), result);
-  };
-
-  slave_runner.submitResult = function () {
-    $.get(SERVER + "/generate_xml");
-  };
-
-  slave_runner.internal = {
-    session_id: null,
-    stage: 0,
-    get_json: function (name) {
-      var jsondata = null;
-      $.getJSON(SERVER + "/" + name + "?session_id="
-         + this.session_id, function(data) {
-           jsondata = data;});
-      return jsondata; },
-    post_json: function (name, d) {
-       $.post(SERVER + "/" + name, d, null, "json");
-    }
-  };
-
-  var i_ui = (function () {
-    var testinfo = $("#testinfo").get(0);
-    var frmTest = $("#frmTest").get(0);
-    var textTest  = $("#textTest").get(0);
-    var btnPass = $("#btnPass").get(0);
-    var btnFail = $("#btnFail").get(0);
-    var btnBlock = $("#btnBlock").get(0);
-    var btnExit = $("#btnExit").get(0);
-    var btnNext = $("#btnNext").get(0);
-    var btnPrev = $("#btnPrev").get(0);
-    var btnRun  = $("#btnRun").get(0);
-    var divSum = $("#divSum").get(0);
-    var btnBack = $("#btnBack").get(0);
-    var btnSave = $("#btnSave").get(0);
-    var runner = null;
-    var listmode = null;
-    var nextTest = function () {
-      runner.goNext();
-      selectTest();
-    };
-
-    var prevTest = function() {
-      runner.goPrev();
-      selectTest();
-    };
-
-    var selectResult = function() {
-      runner.report(this.value, "");
-    };
-
-    var selectTest = function () {
-      frmTest.src = "";
-      var tc = runner.getTest();
-      if (!tc) {
-        if (runner.testIndex() === -1)
-          textTest.value = "---Begin---";
-        else
-          textTest.value = "---End---";
-        changeColor("NOTRUN");
-        return;
-      }
-      testinfo.value = runner.testInfo();
-      $(divSum).html(runner.getTestSum(false));
-      textTest.value = ((tc.execution_type === "manual") ? "(M)" : "") + tc.id;
-      changeColor(tc.result);
-    };
-
-    function changeColor(result) {
-      if (result === "PASS")
-        $(textTest).css("backgroundColor", "lightgreen");
-      else if (result === "FAIL")
-        $(textTest).css("backgroundColor", "tomato");
-      else if (result === "BLOCK")
-        $(textTest).css("backgroundColor", "yellow");
-      else
-        $(textTest).css("backgroundColor", "white");
-    }
-
-    return {
-      bind: function (r) {
-        var self = this;
-        r.ui = self;
-        runner = r;
-        $(btnPass).on("click", selectResult);
-        $(btnFail).on("click", selectResult);
-        $(btnBlock).on("click", selectResult);
-        $(btnNext).on("click", nextTest);
-        $(btnPrev).on("click", prevTest);
-        $(btnRun).on("click",  function () {
-          if (VIEWFLAGS.has("list")) {
-            runner.options.auto_testsuites = [];
-            var tdoc = frmTest.contentWindow.document;
-            $(tdoc).find("section li>input:checked").each(function () {
-              var tname = $(this).attr("id");
-              runner.options.auto_testsuites.push(tname);
-            });
-            self.list();
-          } else if (VIEWFLAGS.has("suite")) {
-            runner.runAll();
-          } else
-            self.runTest(runner.getTestCaseUrl());
-        });
-        $(frmTest).on("load",  function () {runner.loadReady();});
-        $(btnExit).on("click", function () {
-          runner.submitResult();
-          if (runner.options.multiplex && VIEWFLAGS.has("suite"))
-            self.list();
-          else
-            close_window();
-        });
-        $(btnBack).on("click", function () {
-          frmTest.src = "";
-          setTimeout(function () {self.browse();}, 300);
-        });
-        $(btnSave).on("click", function () {
-          runner.submitResult();
-          runner.options.notifyInfo = "*Save succeed*";
-          $(divSum).html(runner.getTestSum(true));
-        });
-        frmTest.height = $(window).height();
-      },
-
-      list: function () {
-        var tdoc = frmTest.contentWindow.document;
-        $(btnExit).attr("value", "Exit");
-        tdoc.open("text/html", "replace");
-        tdoc.writeln(runner.getListInfo());
-        var self = this;
-        $(tdoc).find("section li>a").on("click", function (e) {
-          runner.options.testsuite_name = $(this).text();
-          VIEWFLAGS.del("list");
-          runner.start();
-          window.scrollTo(0, 0);
-          e.preventDefault();
-        });
-        $(tdoc).find("section h3>input[type=checkbox]").on("click", function () {
-          $boxs = $(this).parent().parent().find("li>input[type=checkbox]");
-          $boxs.prop('checked', $(this).is(':checked'));
-        });
-        $(divSum).html(runner.getListSum());
-        runner.cleanTests();
-        self.updateView(VIEWFLAGS.add("list"));
-        if (runner.options.auto_testsuites) {
-          if (runner.options.auto_testsuites.length > 0) {
-            var ts = runner.options.auto_testsuites.shift();
-            runner.options.testsuite_name = ts;
-            runner.options.autorun = true;
-            VIEWFLAGS.del("list");
-            runner.start();
-          } else
-            runner.options.autorun = false;
-        }
-      },
-
-      browse: function () {
-        var tdoc = frmTest.contentWindow.document;
-        if (runner.options.multiplex)
-          $(btnExit).attr("value", "Back");
-        tdoc.open("text/html", "replace");
-        tdoc.writeln(runner.getBrowseInfo());
-        var self = this;
-        $(tdoc).find("section ul li>a").on("click", function (e) {
-          var ind = parseInt($(this).attr("rel"));
-          self.updateView(VIEWFLAGS.del("suite"));
-          self.updateTest(ind);
-          window.scrollTo(0, 0);
-          e.preventDefault();
-        });
-        $(divSum).html(runner.getTestSum(true));
-        self.updateView(VIEWFLAGS.add("suite"));
-      },
-
-      updateTest: function (ind) {
-        if (typeof ind !== "undefined") runner.testIndex(ind);
-        selectTest();
-      },
-
-      updateView: function (flags) {
-        if (flags & VIEWFLAGS.flags.batch)
-          $(".batchhide").hide();
-        else {
-          $(".batchhide").show();
-          if (flags & VIEWFLAGS.flags.list) {
-            $(".tchide").show();
-            $(".suitehide").show();
-            $(".listhide").hide();
-          } else if (flags & VIEWFLAGS.flags.suite) {
-            $(".listhide").show();
-            $(".tchide").show();
-            $(".suitehide").hide();
-          } else {
-            $(".listhide").show();
-            $(".suitehide").show();
-            $(".tchide").hide();
-          }
-        }
-      },
-
-        testComplete: function () {
-        return runner.checkResult(frmTest.contentWindow.document);
-      },
-
-      runTest: function (uri) {
-        if (uri === null) return;
-        if (uri)
-          frmTest.src = uri;
-        else
-          runner.loadReady();
-      },
-
-      updateTestInfo: function (info, sum, result) {
-        if (info !== null)
-          testinfo.value = info;
-        if (sum !== null)
-          $(divSum).html(sum);
-        if (result !== null)
-          changeColor(result);
-      },
-     };
-  } ());
-
-  function escape_html(s) {
-    return s.replace(/\&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g,
-      "&quot;").replace(/'/g, "&#39;");
-  }
-
-  function print_error(command, message) {
-    console.warn("Command -" + command + ": " + message);
-  }
-
-  function close_window() {
-    setTimeout(function () {
-      window.open('', '_self', '');
-      window.close();
-      if (window.parent != window.self) {
-        window.parent.onbeforeunload = null;
-        window.parent.close();
-      }
-    }, 1000);
-  }
-
-  function pre_init() {
-    var runner_ok = false;
-    $.get(SERVER + "/check_server", function () {
-      runner_ok = slave_runner.start(i_ui);
-    });
-    if (!runner_ok)
-      master_runner.start(i_ui);
-  }
-  var SERVER = "http://127.0.0.1:"+STUB_PORT;
-  var TESTLIST_FILE = "testlist.json"
-  var VIEWFLAGS = { val: 0,
-    flags: {suite: 1, batch: 2, list: 4},
-    add: function (f) { this.val |= this.flags[f]; return this.val},
-    del: function (f) { this.val &= ~this.flags[f]; return this.val},
-    has: function (f) { return this.val & this.flags[f];},
-  };
-  $.ajaxSetup({ async: false});
-  $(window).on("ready", pre_init);
-})(window);
diff --git a/common/tct-messaging-sms-tizen-tests/COPYING b/common/tct-messaging-sms-tizen-tests/COPYING
deleted file mode 100755 (executable)
index 7d06b32..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/common/tct-messaging-sms-tizen-tests/LICENSE.Apache-2.0 b/common/tct-messaging-sms-tizen-tests/LICENSE.Apache-2.0
deleted file mode 100755 (executable)
index d645695..0000000
+++ /dev/null
@@ -1,202 +0,0 @@
-
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
diff --git a/common/tct-messaging-sms-tizen-tests/NOTICE b/common/tct-messaging-sms-tizen-tests/NOTICE
deleted file mode 100755 (executable)
index b341ced..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
-Copyright (c) 2012 Intel Corporation.
-Except as noted, this software is licensed under Apache License, Version 2 or BSD-3-Clause License.
-Please, see the LICENSE.Apache-2.0 file for Apache License, Version 2 terms and conditions
-or the COPYING file for BSD-3-Clause License.
\ No newline at end of file
diff --git a/common/tct-messaging-sms-tizen-tests/README b/common/tct-messaging-sms-tizen-tests/README
deleted file mode 100755 (executable)
index 45d5611..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-----------------------------------------------
-License
-----------------------------------------------
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Zou, Zoe <yananx.xu@intel.com>
-
-
-
-----------------------------------------------
-Introduction
-----------------------------------------------
-This test suite is for testing Tizen Messaging API, which covers the following specifications (only SMS part):
-https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-
-
-----------------------------------------------
-Test Environment
----------------------------------------------- 
-1. Testkit-stub must be installed on target device.
-2. Testkit-lite must be installed on test machine.
-
-
-----------------------------------------------
-Pre-condition
-----------------------------------------------
-1. A SIM card MUST be inserted for sending SMS messages.
-
-2. Before testing, you MUST change some variables defined in
-   Messaging/support/messaging_common.js 
-   for message recipients. Here's the variables to modify:
-
-TEST_SMS_RECIPIENT          MUST be set to phone number
-                            (different from the device under test and without country calling code)
-TEST_SMS_RECIPIENT_2        MUST be set to phone number
-                            (different from the device under test,
-                             different from TEST_SMS_RECIPIENT and without country calling code)
-
-----------------------------------------------
-Build and Run
-----------------------------------------------
-(Suppose you only get the source code and testkit-lite has been setup on your test machine
- if you have got tct-messaging-sms-tizen-tests ZIP packages, you can directly go to step 3 on testing machine;
- if you have not installed the testkit-lite, you need to install the latest version)
-
-Steps:
-1. Prepare for building by running the following command:
-   cd tct-messaging-sms-tizen-tests
-
-2. Build ZIP package by running the following command:
-   ./pack.sh
-
-3. Unzip the package on the test machine by running the following command:
-   unzip -o tct-messaging-sms-tizen-tests-<version>.zip -d /home/owner/share/tct
-
-4. Install the package on the test machine by running the following command:
-   /home/owner/share/tct/opt/tct-messaging-sms-tizen-tests/inst.sh
-
-5. Run test cases by running the following command on host:
-   testkit-lite -f device:/home/owner/share/tct/opt/tct-messaging-sms-tizen-tests/tests.xml -e "WRTLauncher" -o tct-messaging-sms-tizen-tests.results.xml
diff --git a/common/tct-messaging-sms-tizen-tests/askpolicy.sh b/common/tct-messaging-sms-tizen-tests/askpolicy.sh
deleted file mode 100755 (executable)
index 1c39bdd..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-for i in `grep -r "0xA" /var/cynara/db/_ | grep $1`
-do
-    CLIENT=`echo $i | cut -d ";" -f1`
-    USER=`echo $i | cut -d ";" -f2`
-    PRIVILEGE=`echo $i | cut -d ";" -f3`
-    #echo "cyad --erase=\"\" -r=no -c $CLIENT -u $USER -p $PRIVILEGE"
-    cyad --erase="" -r=no -c $CLIENT -u $USER -p $PRIVILEGE
-done
diff --git a/common/tct-messaging-sms-tizen-tests/config.xml b/common/tct-messaging-sms-tizen-tests/config.xml
deleted file mode 100755 (executable)
index dc089ee..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<widget id='http://tizen.org/test/tct-messaging-sms-tizen-tests' xmlns='http://www.w3.org/ns/widgets' xmlns:tizen='http://tizen.org/ns/widgets' version='8.0'>
-  <access origin="*"/>
-  <name>tct-messaging-sms-tizen-tests</name>
-  <tizen:privilege name="http://tizen.org/privilege/messaging.read"/>
-  <tizen:privilege name="http://tizen.org/privilege/messaging.write"/>
-  <tizen:privilege name="http://tizen.org/privilege/filesystem.read"/>
-  <tizen:privilege name="http://tizen.org/privilege/filesystem.write"/>
-  <tizen:privilege name="http://tizen.org/privilege/mediastorage"/>
-  <tizen:privilege name="http://tizen.org/privilege/externalstorage"/>
-  <icon src="icon.png" height="117" width="117"/>
-  <tizen:application id="api1msg001.WebAPITizenMessagingSmsTests" package="api1msg001" required_version="8.0"/>
-  <tizen:setting screen-orientation="landscape" />
-  <tizen:setting background-support="enable"/>
-  <tizen:setting pointing-device-support="enable"/>
-</widget>
diff --git a/common/tct-messaging-sms-tizen-tests/icon.png b/common/tct-messaging-sms-tizen-tests/icon.png
deleted file mode 100755 (executable)
index aa50240..0000000
Binary files a/common/tct-messaging-sms-tizen-tests/icon.png and /dev/null differ
diff --git a/common/tct-messaging-sms-tizen-tests/inst.apk.py b/common/tct-messaging-sms-tizen-tests/inst.apk.py
deleted file mode 100755 (executable)
index d636bee..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import shutil
-import glob
-import time
-import sys
-import subprocess
-from optparse import OptionParser, make_option
-import configparser
-
-
-SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
-PARAMETERS = None
-ADB_CMD = "adb"
-
-
-def doCMD(cmd):
-    # Do not need handle timeout in this short script, let tool do it
-    print ("-->> \"%s\"" % cmd)
-    output = []
-    cmd_return_code = 1
-    cmd_proc = subprocess.Popen(
-        cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
-
-    while True:
-        output_line = cmd_proc.stdout.readline().decode("UTF-8").strip("\r\n")
-        cmd_return_code = cmd_proc.poll()
-        if output_line == '' and cmd_return_code != None:
-            break
-        sys.stdout.write("%s\n" % output_line)
-        sys.stdout.flush()
-        output.append(output_line)
-
-    return (cmd_return_code, output)
-
-
-def uninstPKGs():
-    action_status = True
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        for file in files:
-            if file.endswith(".apk"):
-                cmd = "%s -s %s uninstall org.xwalk.%s" % (
-                    ADB_CMD, PARAMETERS.device, os.path.basename(os.path.splitext(file)[0]))
-                (return_code, output) = doCMD(cmd)
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-    return action_status
-
-
-def instPKGs():
-    action_status = True
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        for file in files:
-            if file.endswith(".apk"):
-                cmd = "%s -s %s install %s" % (ADB_CMD,
-                                               PARAMETERS.device, os.path.join(root, file))
-                (return_code, output) = doCMD(cmd)
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-    return action_status
-
-
-def main():
-    try:
-        usage = "usage: inst.py -i"
-        opts_parser = OptionParser(usage=usage)
-        opts_parser.add_option(
-            "-s", dest="device", action="store", help="Specify device")
-        opts_parser.add_option(
-            "-i", dest="binstpkg", action="store_true", help="Install package")
-        opts_parser.add_option(
-            "-u", dest="buninstpkg", action="store_true", help="Uninstall package")
-        global PARAMETERS
-        (PARAMETERS, args) = opts_parser.parse_args()
-    except Exception as e:
-        print ("Got wrong option: %s, exit ..." % e)
-        sys.exit(1)
-
-    if not PARAMETERS.device:
-        (return_code, output) = doCMD("adb devices")
-        for line in output:
-            if str.find(line, "\tdevice") != -1:
-                PARAMETERS.device = line.split("\t")[0]
-                break
-
-    if not PARAMETERS.device:
-        print ("No device found")
-        sys.exit(1)
-
-    if PARAMETERS.binstpkg and PARAMETERS.buninstpkg:
-        print ("-i and -u are conflict")
-        sys.exit(1)
-
-    if PARAMETERS.buninstpkg:
-        if not uninstPKGs():
-            sys.exit(1)
-    else:
-        if not instPKGs():
-            sys.exit(1)
-
-if __name__ == "__main__":
-    main()
-    sys.exit(0)
diff --git a/common/tct-messaging-sms-tizen-tests/inst.wgt.py b/common/tct-messaging-sms-tizen-tests/inst.wgt.py
deleted file mode 100755 (executable)
index 6e07260..0000000
+++ /dev/null
@@ -1,256 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import shutil
-import glob
-import time
-import sys
-import subprocess
-import string
-from optparse import OptionParser, make_option
-import configparser
-
-
-SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
-PKG_NAME = os.path.basename(SCRIPT_DIR)
-PARAMETERS = None
-#XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5000/dbus/user_bus_socket"
-TCT_CONFIG_FILE = "/opt/tools/TCT_CONFIG"
-tct_parser = configparser.ConfigParser()
-tct_parser.read(TCT_CONFIG_FILE)
-SRC_DIR = tct_parser.get('DEVICE', 'DEVICE_SUITE_TARGET_30')
-PKG_SRC_DIR = "%s/tct/opt/%s" % (SRC_DIR, PKG_NAME)
-EXECUTION_MODE_30 = tct_parser.get('DEVICE', 'DEVICE_EXECUTION_MODE_30')
-ADMIN_USER_30 = tct_parser.get('DEVICE', 'DEVICE_ADMIN_USER_30')
-
-def userCheck():
-    global GLOVAL_OPT
-    if ADMIN_USER_30 == EXECUTION_MODE_30:
-        GLOVAL_OPT="--global"
-    else:
-        GLOVAL_OPT=""
-
-
-def askpolicyremoving():
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        for file in files:
-            if file.endswith(".wgt"):
-                pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
-   
-    print (pkg_id)
-    print (os.getcwd())
-    print (os.path.dirname(os.path.realpath(__file__)) )
-    if not doRemoteCopy("%s/askpolicy.sh" % SCRIPT_DIR, "%s" % (SRC_DIR)):
-        action_status = False
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell .%s/askpolicy.sh %s" % (PARAMETERS.device, 
-        SRC_DIR, pkg_id)
-    return doCMD(cmd)
-       
-def doCMD(cmd):
-    # Do not need handle timeout in this short script, let tool do it
-    print ("-->> \"%s\"" % cmd)
-    output = []
-    cmd_return_code = 1
-    cmd_proc = subprocess.Popen(
-        cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
-
-    while True:
-        output_line = cmd_proc.stdout.readline().decode("UTF-8").strip("\r\n")
-        cmd_return_code = cmd_proc.poll()
-        if output_line == '' and cmd_return_code != None:
-            break
-        sys.stdout.write("%s\n" % output_line)
-        sys.stdout.flush()
-        output.append(output_line)
-
-    return (cmd_return_code, output)
-
-def updateCMD(cmd=None):
-    if "pkgcmd" in cmd:
-        cmd = "su - %s -c '%s;%s'" % (PARAMETERS.user, XW_ENV, cmd)
-    return cmd
-def getUSERID():
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell id -u %s" % (
-            PARAMETERS.device, PARAMETERS.user)
-    else:
-        cmd = "ssh %s \"id -u %s\"" % (
-            PARAMETERS.device, PARAMETERS.user )
-    return doCMD(cmd)
-
-
-def getPKGID(pkg_name=None):
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell %s" % (
-            PARAMETERS.device, updateCMD('pkgcmd -l'))
-    else:
-        cmd = "ssh %s \"%s\"" % (
-            PARAMETERS.device, updateCMD('pkgcmd -l'))
-
-    (return_code, output) = doCMD(cmd)
-    if return_code != 0:
-        return None
-
-    test_pkg_id = None
-    for line in output:
-        if line.find("[" + pkg_name + "]") != -1:
-            pkgidIndex = line.split().index("pkgid")
-            test_pkg_id = line.split()[pkgidIndex+1].strip("[]")
-            break
-    return test_pkg_id
-
-
-def doRemoteCMD(cmd=None):
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell %s" % (PARAMETERS.device, updateCMD(cmd))
-    else:
-        cmd = "ssh %s \"%s\"" % (PARAMETERS.device, updateCMD(cmd))
-
-    return doCMD(cmd)
-
-
-def doRemoteCopy(src=None, dest=None):
-    if PARAMETERS.mode == "SDB":
-        cmd_prefix = "sdb -s %s push" % PARAMETERS.device
-        cmd = "%s %s %s" % (cmd_prefix, src, dest)
-    else:
-        cmd = "scp -r %s %s:/%s" % (src, PARAMETERS.device, dest)
-
-    (return_code, output) = doCMD(cmd)
-    doRemoteCMD("sync")
-
-    if return_code != 0:
-        return True
-    else:
-        return False
-
-
-def uninstPKGs():
-    action_status = True
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        if root.endswith("mediasrc"):
-            continue
-
-        for file in files:
-            if file.endswith(".wgt"):
-                pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
-                if not pkg_id:
-                    action_status = False
-                    continue
-                (return_code, output) = doRemoteCMD(
-                    "pkgcmd %s -q -u -n %s" % (GLOVAL_OPT, pkg_id))
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-
-    (return_code, output) = doRemoteCMD(
-        "rm -rf %s" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-
-    return action_status
-
-
-def instPKGs():
-    action_status = True
-    (return_code, output) = doRemoteCMD(
-        "mkdir -p %s" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        if root.endswith("mediasrc"):
-            continue
-
-        for file in files:
-            if file.endswith(".wgt"):
-                if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
-                    action_status = False
-                (return_code, output) = doRemoteCMD(
-                    "pkgcmd %s -i -t wgt -q -p %s/%s" % (GLOVAL_OPT, SRC_DIR, file))
-                doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, file))
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-
-    # Do some special copy/delete... steps
-    '''
-    (return_code, output) = doRemoteCMD(
-        "mkdir -p %s/tests" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-
-    if not doRemoteCopy("specname/tests", "%s/tests" % PKG_SRC_DIR):
-        action_status = False
-    '''
-
-    return action_status
-
-
-def main():
-    try:
-        usage = "usage: inst.py -i"
-        opts_parser = OptionParser(usage=usage)
-        opts_parser.add_option(
-            "-m", dest="mode", action="store", help="Specify mode")
-        opts_parser.add_option(
-            "-s", dest="device", action="store", help="Specify device")
-        opts_parser.add_option(
-            "-i", dest="binstpkg", action="store_true", help="Install package")
-        opts_parser.add_option(
-            "-u", dest="buninstpkg", action="store_true", help="Uninstall package")
-        opts_parser.add_option(
-            "-a", dest="user", action="store", help="User name")
-        global PARAMETERS
-        (PARAMETERS, args) = opts_parser.parse_args()
-    except Exception as e:
-        print ("Got wrong option: %s, exit ..." % e)
-        sys.exit(1)
-
-    if not PARAMETERS.user:
-        PARAMETERS.user = EXECUTION_MODE_30
-    if not PARAMETERS.mode:
-        PARAMETERS.mode = "SDB"
-
-    if PARAMETERS.mode == "SDB":
-        if not PARAMETERS.device:
-            (return_code, output) = doCMD("sdb devices")
-            for line in output:
-                if str.find(line, "\tdevice") != -1:
-                    PARAMETERS.device = line.split("\t")[0]
-                    break
-    else:
-        PARAMETERS.mode = "SSH"
-
-    if not PARAMETERS.device:
-        print ("No device provided")
-        sys.exit(1)
-
-    userCheck()
-
-    user_info = getUSERID()
-    re_code = user_info[0]
-    if re_code == 0 :
-        global XW_ENV
-        userid = user_info[1][0]
-        XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%s/dbus/user_bus_socket"%str(userid)
-    else:
-        print ("[Error] cmd commands error : %s" % str(user_info[1]))
-        sys.exit(1)
-    if PARAMETERS.binstpkg and PARAMETERS.buninstpkg:
-        print ("-i and -u are conflict")
-        sys.exit(1)
-
-    if PARAMETERS.buninstpkg:
-        if not uninstPKGs():
-            sys.exit(1)
-    else:
-        if not instPKGs():
-            #askpolicyremoving()
-            sys.exit(1)
-
-if __name__ == "__main__":
-    main()
-    sys.exit(0)
diff --git a/common/tct-messaging-sms-tizen-tests/inst.xpk.py b/common/tct-messaging-sms-tizen-tests/inst.xpk.py
deleted file mode 100755 (executable)
index ace8cbb..0000000
+++ /dev/null
@@ -1,231 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import shutil
-import glob
-import time
-import sys
-import subprocess
-import string
-from optparse import OptionParser, make_option
-import configparser
-
-
-SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
-PKG_NAME = os.path.basename(SCRIPT_DIR)
-PARAMETERS = None
-#XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5000/dbus/user_bus_socket"
-TCT_CONFIG_FILE = "/opt/tools/TCT_CONFIG"
-tct_parser = configparser.ConfigParser()
-tct_parser.read(TCT_CONFIG_FILE)
-SRC_DIR = tct_parser.get('DEVICE', 'DEVICE_SUITE_TARGET_30')
-PKG_SRC_DIR = "%s/tct/opt/%s" % (SRC_DIR, PKG_NAME)
-
-
-def doCMD(cmd):
-    # Do not need handle timeout in this short script, let tool do it
-    print ("-->> \"%s\"" % cmd)
-    output = []
-    cmd_return_code = 1
-    cmd_proc = subprocess.Popen(
-        cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
-
-    while True:
-        output_line = cmd_proc.stdout.readline().decode("UTF-8").strip("\r\n")
-        cmd_return_code = cmd_proc.poll()
-        if output_line == '' and cmd_return_code != None:
-            break
-        sys.stdout.write("%s\n" % output_line)
-        sys.stdout.flush()
-        output.append(output_line)
-
-    return (cmd_return_code, output)
-
-
-def updateCMD(cmd=None):
-    if "pkgcmd" in cmd:
-        cmd = "su - %s -c '%s;%s'" % (PARAMETERS.user, XW_ENV, cmd)
-    return cmd
-def getUSERID():
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell id -u %s" % (
-            PARAMETERS.device, PARAMETERS.user)
-    else:
-        cmd = "ssh %s \"id -u %s\"" % (
-            PARAMETERS.device, PARAMETERS.user )
-    return doCMD(cmd)
-
-
-
-
-def getPKGID(pkg_name=None):
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell %s" % (
-            PARAMETERS.device, updateCMD('pkgcmd -l'))
-    else:
-        cmd = "ssh %s \"%s\"" % (
-            PARAMETERS.device, updateCMD('pkgcmd -l'))
-
-    (return_code, output) = doCMD(cmd)
-    if return_code != 0:
-        return None
-
-    test_pkg_id = None
-    for line in output:
-        if line.find("[" + pkg_name + "]") != -1:
-            pkgidIndex = line.split().index("pkgid")
-            test_pkg_id = line.split()[pkgidIndex+1].strip("[]")
-            break
-    return test_pkg_id
-
-
-def doRemoteCMD(cmd=None):
-    if PARAMETERS.mode == "SDB":
-        cmd = "sdb -s %s shell %s" % (PARAMETERS.device, updateCMD(cmd))
-    else:
-        cmd = "ssh %s \"%s\"" % (PARAMETERS.device, updateCMD(cmd))
-
-    return doCMD(cmd)
-
-
-def doRemoteCopy(src=None, dest=None):
-    if PARAMETERS.mode == "SDB":
-        cmd_prefix = "sdb -s %s push" % PARAMETERS.device
-        cmd = "%s %s %s" % (cmd_prefix, src, dest)
-    else:
-        cmd = "scp -r %s %s:/%s" % (src, PARAMETERS.device, dest)
-
-    (return_code, output) = doCMD(cmd)
-    doRemoteCMD("sync")
-
-    if return_code != 0:
-        return True
-    else:
-        return False
-
-
-def uninstPKGs():
-    action_status = True
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        if root.endswith("mediasrc"):
-            continue
-
-        for file in files:
-            if file.endswith(".xpk"):
-                pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
-                if not pkg_id:
-                    action_status = False
-                    continue
-                (return_code, output) = doRemoteCMD(
-                    "pkgcmd -u -t xpk -q -n %s" % pkg_id)
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-
-    (return_code, output) = doRemoteCMD(
-        "rm -rf %s" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-
-    return action_status
-
-
-def instPKGs():
-    action_status = True
-    (return_code, output) = doRemoteCMD(
-        "mkdir -p %s" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-    for root, dirs, files in os.walk(SCRIPT_DIR):
-        if root.endswith("mediasrc"):
-            continue
-
-        for file in files:
-            if file.endswith(".xpk"):
-                if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
-                    action_status = False
-                (return_code, output) = doRemoteCMD(
-                    "pkgcmd -i -t xpk -q -p %s/%s" % (SRC_DIR, file))
-                doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, file))
-                for line in output:
-                    if "Failure" in line:
-                        action_status = False
-                        break
-
-    # Do some special copy/delete... steps
-    '''
-    (return_code, output) = doRemoteCMD(
-        "mkdir -p %s/tests" % PKG_SRC_DIR)
-    if return_code != 0:
-        action_status = False
-
-    if not doRemoteCopy("specname/tests", "%s/tests" % PKG_SRC_DIR):
-        action_status = False
-    '''
-
-    return action_status
-
-
-def main():
-    try:
-        usage = "usage: inst.py -i"
-        opts_parser = OptionParser(usage=usage)
-        opts_parser.add_option(
-            "-m", dest="mode", action="store", help="Specify mode")
-        opts_parser.add_option(
-            "-s", dest="device", action="store", help="Specify device")
-        opts_parser.add_option(
-            "-i", dest="binstpkg", action="store_true", help="Install package")
-        opts_parser.add_option(
-            "-u", dest="buninstpkg", action="store_true", help="Uninstall package")
-        opts_parser.add_option(
-            "-a", dest="user", action="store", help="User name")
-        global PARAMETERS
-        (PARAMETERS, args) = opts_parser.parse_args()
-    except Exception as e:
-        print ("Got wrong option: %s, exit ..." % e)
-        sys.exit(1)
-
-    if not PARAMETERS.user:
-        PARAMETERS.user = "owner"
-    if not PARAMETERS.mode:
-        PARAMETERS.mode = "SDB"
-
-    if PARAMETERS.mode == "SDB":
-        if not PARAMETERS.device:
-            (return_code, output) = doCMD("sdb devices")
-            for line in output:
-                if str.find(line, "\tdevice") != -1:
-                    PARAMETERS.device = line.split("\t")[0]
-                    break
-    else:
-        PARAMETERS.mode = "SSH"
-
-    if not PARAMETERS.device:
-        print ("No device provided")
-        sys.exit(1)
-
-    user_info = getUSERID()
-    re_code = user_info[0]
-    if re_code == 0 :
-        global XW_ENV
-        userid = user_info[1][0]
-        XW_ENV = "export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%s/dbus/user_bus_socket"%str(userid)
-    else:
-        print ("[Error] cmd commands error : %s" % str(user_info[1]))
-        sys.exit(1)
-    if PARAMETERS.binstpkg and PARAMETERS.buninstpkg:
-        print ("-i and -u are conflict")
-        sys.exit(1)
-
-    if PARAMETERS.buninstpkg:
-        if not uninstPKGs():
-            sys.exit(1)
-    else:
-        if not instPKGs():
-            sys.exit(1)
-
-if __name__ == "__main__":
-    main()
-    sys.exit(0)
diff --git a/common/tct-messaging-sms-tizen-tests/manifest.json b/common/tct-messaging-sms-tizen-tests/manifest.json
deleted file mode 100755 (executable)
index d8b04dd..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-{
-    "version": "8.0",
-    "name": "tct-messaging-sms-tizen-tests",
-    "permissions": ["tabs", "unlimited_storage", "notifications", "http://*/*", "https://*/*"],
-    "description": "tct-messaging-sms-tizen-tests",
-    "webapimanager": true,
-    "file_name": "manifest.json",
-    "app": {
-        "launch": {
-            "local_path": "index.html"
-        }
-    }
-}
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/ConversationArraySuccessCallback_onsuccess_checking.html b/common/tct-messaging-sms-tizen-tests/messaging/ConversationArraySuccessCallback_onsuccess_checking.html
deleted file mode 100755 (executable)
index 2dc8efc..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>ConversationArraySuccessCallback_onsuccess_checking</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: ConversationArraySuccessCallback_onsuccess_checking
-//==== LABEL Check ConversationArraySuccessCallback callback for sms
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationArraySuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, addSuccess, filter, findAllConversationsError, findAllConversationsSuccess, service;
-
-t.step(function () {
-    findAllConversationsSuccess = t.step_func(function (conversations) {
-        assert_type(conversations, "array", "Incorrect type.");
-        t.done();
-    });
-
-    findAllConversationsError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        service.messageStorage.findConversations(filter, findAllConversationsSuccess, findAllConversationsError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        addSMSDraft(t, service, {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        }, addSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/FolderArraySuccessCallback_onsuccess_checking.html b/common/tct-messaging-sms-tizen-tests/messaging/FolderArraySuccessCallback_onsuccess_checking.html
deleted file mode 100755 (executable)
index b3e0f78..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>FolderArraySuccessCallback_onsuccess_checking</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: FolderArraySuccessCallback_onsuccess_checking
-//==== LABEL Check if FolderArraySuccessCallback.onsuccess callback works properly
-//==== SPEC Tizen Web API:Communication:Messaging:MessageFolderArraySuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, foldersSuccess, service,
-    filter, foldersError;
-
-t.step(function () {
-    foldersSuccess = t.step_func(function (folders) {
-        assert_type(folders, "array", "Incorrect type.");
-
-        t.done();
-    });
-
-    foldersError = t.step_func(function (error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-
-        service.messageStorage.findFolders(filter, foldersSuccess, foldersError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess_checking.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess_checking.html
deleted file mode 100755 (executable)
index df95be3..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageArraySuccessCallback_onsuccess_checking</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageArraySuccessCallback_onsuccess_checking
-//==== LABEL Check if MessageArraySuccessCallback.onsuccess callback works properly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageArraySuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBOA CBT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    service, filter, findMessageSuccess, findMessageError, addSuccess, serviceSuccess, serviceError;
-
-t.step(function () {
-    findMessageSuccess = t.step_func(function (messages) {
-        assert_type(messages, "array", "Not an array");
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-        assert_true(messages[0] instanceof tizen.Message, "Not a Message");
-        t.done();
-    });
-
-    findMessageError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        service.messageStorage.findMessages(filter, findMessageSuccess, findMessageError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        addSMSDraft(t, service, {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        }, addSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_extend.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_extend.html
deleted file mode 100755 (executable)
index c043d8a..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageBody_sms_extend</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBody_sms_extend
-//==== PRIORITY P3
-//==== LABEL Check if instance of interface MessageBody (SMS) can be extended with new property
-//==== 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
-
-test(function () {
-    var message, messageBody;
-
-    message = new tizen.Message("messaging.sms");
-    messageBody = message.body;
-
-    check_extensibility(messageBody);
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_loaded_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_loaded_attribute.html
deleted file mode 100755 (executable)
index 0d05856..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageBody_sms_loaded_attribute</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBody_sms_loaded_attribute
-//==== LABEL Check if attribute loaded of MessageBody (SMS) exists, has type Boolean and is readonly
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-
-    var message, messageBody, oldValue;
-
-    message = new tizen.Message("messaging.sms");
-    messageBody = message.body;
-
-    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");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_messageId_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_messageId_attribute.html
deleted file mode 100755 (executable)
index 9a4ee09..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageBody_sms_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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBody_sms_messageId_attribute
-//==== LABEL Check if attribute messageId of MessageBody (SMS) exists, has type MessageId and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:messageId A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA AE AT ARO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message, messageBody,
-    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;
-t.step(function () {
-
-    message = new tizen.Message("messaging.sms", {
-        to: [TEST_SMS_RECIPIENT],
-        plainBody: generatePlainBody()
-    });
-
-    messageBody = message.body;
-
-    assert_own_property(messageBody, "messageId", "MessageBody does not own messageId property.");
-
-    addDraftSuccess = t.step_func(function () {
-        check_readonly(messageBody, "messageId", message.id, "string", "54321");
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_plainBody_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_plainBody_attribute.html
deleted file mode 100755 (executable)
index a3f8ca0..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageBody_sms_plainBody_attribute</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageBody_sms_plainBody_attribute
-//==== LABEL Check if attribute plainBody of MessageBody (SMS) exists, has type DOMString
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-    var message, messageBody;
-
-    message = new tizen.Message("messaging.sms");
-    messageBody = message.body;
-
-    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 assigning null");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess_exist.html
deleted file mode 100755 (executable)
index 397e5da..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageConversationArraySuccessCallback_onsuccess_exist</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversationArraySuccessCallback_onsuccess_exist
-//==== LABEL Check if MessageConversationArraySuccessCallback.onsuccess callback works properly
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationArraySuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, message, datetime, service, messageStorage, filter,
-    sendSuccess, sendError, findConversationsSuccess, findConversationsError;
-
-t.step(function () {
-    findConversationsError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findConversationsSuccess = t.step_func(function (conversations) {
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-
-        assert_own_property(conversations[0], "id", "No id attribute in conversation");
-        assert_own_property(conversations[0], "type", "No type attribute in conversation");
-        assert_own_property(conversations[0], "timestamp", "No timestamp attribute in conversation");
-        assert_own_property(conversations[0], "messageCount", "No messageCount attribute in conversation");
-        assert_own_property(conversations[0], "unreadMessages", "No unreadMessages attribute in conversation");
-        assert_own_property(conversations[0], "preview", "No preview attribute in conversation");
-        assert_own_property(conversations[0], "isRead", "No isRead attribute in conversation");
-        assert_own_property(conversations[0], "from", "No from attribute in conversation");
-        assert_own_property(conversations[0], "to", "No to attribute in conversation");
-        assert_own_property(conversations[0], "lastMessageId", "No lastMessageId attribute in conversation");
-
-        t.done();
-    });
-
-    sendSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        messageStorage = service.messageStorage;
-
-        datetime = new Date().getTime().toString();
-        message = new tizen.Message("messaging.sms", {
-            plainBody: datetime,
-            to: [ TEST_SMS_RECIPIENT ]
-        });
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageConversation_sendFindRemove.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageConversation_sendFindRemove.html
deleted file mode 100755 (executable)
index 8bfb07e..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageConversation_sendFindRemove</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversation_sendFindRemove
-//==== PRIORITY P1
-//==== LABEL Check scenario: send a message(sms), find conversation and then remove it
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    service, msg, messageStorage, filterConversation, filterMessage,
-    removeConversationsSuccess, removeConversationsError, findMessageError,
-    findConversationsSuccess, findConversationsError, findMessageSuccess,
-    sendSuccess, sendError, serviceSuccess, serviceError,
-    returnedValue = null;
-
-t.step(function () {
-    removeConversationsSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    removeConversationsError = t.step_func(function (error) {
-        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findConversationsSuccess = t.step_func(function (conversations) {
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-        returnedValue = messageStorage.removeConversations(conversations, removeConversationsSuccess, removeConversationsError);
-    });
-
-    findConversationsError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findMessageSuccess = t.step_func(function (messages) {
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-        filterConversation = new tizen.AttributeFilter("id", "EXACTLY", messages[0].conversationId);
-        messageStorage.findConversations(filterConversation, findConversationsSuccess, findConversationsError);
-    });
-
-    findMessageError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function (recipients) {
-        assert_greater_than(recipients.length, 0, "Received empty recipients array");
-        filterMessage = new tizen.AttributeFilter("to", "CONTAINS", recipients[0]);
-        messageStorage.findMessages(filterMessage, findMessageSuccess, findMessageError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        messageStorage = service.messageStorage;
-        msg = new tizen.Message("messaging.sms", { plainBody: "test1.", to: [ TEST_SMS_RECIPIENT ]});
-        sendMessage(t, service, msg, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withfilter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withfilter.html
deleted file mode 100755 (executable)
index 5d55104..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageConversationsChangeCallback_conversationsadded_withfilter</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversationsChangeCallback_conversationsadded_withfilter
-//==== LABEL Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsadded M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), i,
-    serviceSuccess, serviceError, service, message, filter,
-    removeAllSuccess, sendError, listener, listenerId;
-
-t.step(function () {
-
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        conversationsadded: t.step_func(function (conversations) {
-            assert_type(conversations, "array", "conversations");
-            assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (i = 0; i < conversations.length; i++) {
-                if (conversations[i].id === message.conversationId) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-        listenerId = service.messageStorage.addConversationsChangeListener(listener, filter);
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        sendMessage(t, service, message, null, sendError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        removeAllMessages(t, service, removeAllSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html
deleted file mode 100755 (executable)
index ec377ec..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageConversationsChangeCallback_conversationsadded_withoutfilter</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversationsChangeCallback_conversationsadded_withoutfilter
-//==== LABEL Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsadded M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), i, listenerId,
-    serviceSuccess, serviceError, service, message, removeAllSuccess, sendError, listener;
-
-t.step(function () {
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        conversationsadded: t.step_func(function (conversations) {
-            assert_type(conversations, "array", "conversations");
-            assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (i = 0; i < conversations.length; i++) {
-                if (conversations[i].id === message.conversationId) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        listenerId = service.messageStorage.addConversationsChangeListener(listener);
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        sendMessage(t, service, message, null, sendError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        removeAllMessages(t, service, removeAllSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withfilter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withfilter.html
deleted file mode 100755 (executable)
index b0a6060..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversationsChangeCallback_conversationsremoved_withfilter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageConversationsChangeCallback_conversationsremoved_withfilter
-//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsremoved M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, i, watcherId,
-    removeAllSuccess, sendError, conversationChangeCB,
-    removeConversationError, removedConversationId;
-
-t.step(function () {
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(watcherId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    removeConversationError = t.step_func(function (error) {
-        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    conversationChangeCB = {
-        conversationsadded: t.step_func(function (conversations) {
-            assert_type(conversations, "array", "conversations");
-            assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (i = 0; i < conversations.length; i++) {
-                if (conversations[i].id === message.conversationId) {
-                    removedConversationId = conversations[i].id;
-                    service.messageStorage.removeConversations([conversations[i]], null, removeConversationError);
-                    break;
-                }
-            }
-        }),
-        conversationsremoved: t.step_func(function (conversations) {
-            assert_type(conversations, "array", "conversations");
-            assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            t.done();
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        watcherId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        sendMessage(t, service, message, null, sendError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        removeAllMessages(t, service, removeAllSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html
deleted file mode 100755 (executable)
index b4c6387..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageConversationsChangeCallback_conversationsremoved_withoutfilter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageConversationsChangeCallback_conversationsremoved_withoutfilter
-//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsremoved M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, i, watcherId,
-    removeAllSuccess, sendError, conversationChangeCB,
-    removeConversationError, removedConversationId;
-
-t.step(function () {
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(watcherId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    removeConversationError = t.step_func(function (error) {
-        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    conversationChangeCB = {
-        conversationsadded: t.step_func(function (conversations) {
-            assert_type(conversations, "array", "conversations");
-            assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (i = 0; i < conversations.length; i++) {
-                if (conversations[i].id === message.conversationId) {
-                    removedConversationId = conversations[i].id;
-                    service.messageStorage.removeConversations([conversations[i]], null, removeConversationError);
-                    break;
-                }
-            }
-        }),
-        conversationsremoved: t.step_func(function (conversations) {
-            assert_type(conversations, "array", "conversations");
-            assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            t.done();
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        watcherId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        service.sendMessage(message, null, sendError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        removeAllMessages(t, service, removeAllSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withfilter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withfilter.html
deleted file mode 100755 (executable)
index 96f231b..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageConversationsChangeCallback_conversationsupdated_withfilter</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversationsChangeCallback_conversationsupdated_withfilter
-//==== LABEL Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsupdated M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBOA
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), i, listenerId,
-    serviceSuccess, serviceError, service, message1, message2, removeAllSuccess,
-    filter, sendSuccess, sendError, listener;
-
-t.step(function () {
-
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        conversationsupdated: t.step_func(function (conversations) {
-            assert_type(conversations, "array", "conversations");
-            assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (i = 0; i < conversations.length; i++) {
-                if (conversations[i].id === message2.conversationId) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-        listenerId = service.messageStorage.addConversationsChangeListener(listener, filter);
-
-        message2 = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        sendMessage(t, service, message2, null, sendError);
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        message1 = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        sendMessage(t, service, message1, sendSuccess, sendError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        removeAllMessages(t, service, removeAllSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html
deleted file mode 100755 (executable)
index b7c7ffd..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageConversationsChangeCallback_conversationsupdated_withoutfilter</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageConversationsChangeCallback_conversationsupdated_withoutfilter
-//==== LABEL Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsupdated M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBOA
-
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), i, listenerId,
-    serviceSuccess, serviceError, service, message1, message2,
-    removeAllSuccess, sendSuccess, sendError, listener;
-
-t.step(function () {
-
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        conversationsupdated: t.step_func(function (conversations) {
-            assert_type(conversations, "array", "conversations");
-            assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (i = 0; i < conversations.length; i++) {
-                if (conversations[i].id === message2.conversationId) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        listenerId = service.messageStorage.addConversationsChangeListener(listener);
-
-        message2 = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        sendMessage(t, service, message2, null, sendError);
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        message1 = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        message1 = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        sendMessage(t, service, message1, sendSuccess, sendError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        removeAllMessages(t, service, removeAllSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_sms.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_sms.html
deleted file mode 100755 (executable)
index e386806..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageInit_MessageInit_valid_argument_sms</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageInit_MessageInit_valid_argument_sms
-//==== LABEL Checks various message attributes upon message (sms) creation
-//==== PRIORITY P1
-//==== 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
-test(function () {
-    var smsMsg;
-
-    smsMsg = new tizen.Message("messaging.sms", {
-        plainBody: "Sms Message Test",
-        to: [TEST_SMS_RECIPIENT]
-    });
-
-    assert_equals(smsMsg.body.plainBody, "Sms Message Test", "SMS message creation failed.");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageServiceArraySuccessCallback_sms_onsuccess.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageServiceArraySuccessCallback_sms_onsuccess.html
deleted file mode 100755 (executable)
index 8a8d89f..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageServiceArraySuccessCallback_sms_onsuccess</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageServiceArraySuccessCallback_sms_onsuccess
-//==== LABEL Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for sms
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:onsuccess M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, i;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        assert_type(services, "array", "Not an array");
-
-        for(i = 0; i< services.length; i++) {
-            assert_true("type" in services[i], "Name type doesn't exist in provided object.");
-            assert_equals(services[i].type, "messaging.sms", "Type is not equal sms");
-
-            assert_true("id" in services[i], "Name id doesn't exist in provided object.");
-            assert_true("name" in services[i], "Name name doesn't exist in provided object.");
-            assert_true("messageStorage" in services[i], "Name messageStorage doesn't exist in provided object.");
-            assert_type(services[i].sendMessage, "function", "Checking sendMessage of find");
-            assert_type(services[i].loadMessageBody, "function", "Checking loadMessageBody of find");
-            assert_type(services[i].loadMessageAttachment, "function", "Checking loadMessageAttachment of find");
-            assert_type(services[i].sync, "function", "Checking sync of find");
-            assert_type(services[i].syncFolder, "function", "Checking syncFolder of find");
-            assert_type(services[i].stopSync, "function", "Checking stopSync of find");
-        }
-        t.done();
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_id_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_id_exist.html
deleted file mode 100755 (executable)
index 95df24d..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_id_exist</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_id_exist
-//==== LABEL Check if attribute id in MessageService
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:id A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        assert_true("id" in services[0], "Messaging.MessageService.id property exists");
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_loadBodySMS.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_loadBodySMS.html
deleted file mode 100755 (executable)
index dabfb3d..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_loadBodySMS</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_loadBodySMS
-//==== LABEL Check if MessageService.loadMessageBody method works for sms
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, messageStorage, message, datetime,
-    sendSuccess, sendError, loadBodySuccess, loadBodyError, returnedValue;
-
-t.step(function () {
-    loadBodySuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    loadBodyError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        returnedValue = service.loadMessageBody(message, loadBodySuccess, loadBodyError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        service = services[0];
-        messageStorage = service.messageStorage;
-        datetime = tizen.time.getCurrentDateTime().toString();
-        message = new tizen.Message("messaging.sms", {
-            plainBody: datetime,
-            to: [ TEST_SMS_RECIPIENT ]
-        });
-
-        sendMessage(t, service, message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_name_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_name_exist.html
deleted file mode 100755 (executable)
index 303f1a9..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_name_exist</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_name_exist
-//==== LABEL Check if name attribute exists in MessageService
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:name A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceError, serviceSuccess;
-t.step(function () {
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        assert_true("name" in services[0], "Messaging.MessageService.name property exists");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_exist.html
deleted file mode 100755 (executable)
index 0770fec..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_sendMessage_exist</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_sendMessage_exist
-//==== LABEL Check if sendMessage exist in MessageService
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceError, serviceSuccess;
-t.step(function () {
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        assert_true("sendMessage" in services[0], "sendMessage does not exist.");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_invalid_argument.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_invalid_argument.html
deleted file mode 100755 (executable)
index 4030d62..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageService_sendMessage_invalid_argument</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sendMessage_invalid_argument
-//==== LABEL Check whether invoking sendMessage method with improper argument throws exception properly
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    service, serviceError, serviceSuccess, sendError, sendSuccess;
-t.step(function () {
-
-    sendSuccess = t.step_func(function () {
-        assert_unreached("sendMessage() success callback invoked");
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0]; // save service
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.sendMessage("messaging.email", sendSuccess, sendError);
-        });
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_valid_argument.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_valid_argument.html
deleted file mode 100755 (executable)
index 62f9348..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageService_sendMessage_valid_argument</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sendMessage_valid_argument
-//==== LABEL Check if MessageService.sendMessage method works properly with valid argument (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}),
-    service, smsMessage, serviceError, serviceSuccess, sendError, sendSuccess;
-t.step(function () {
-
-    sendSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        smsMessage = new tizen.Message("messaging.sms", {
-            plainBody: "Sms Message Test",
-            to: [TEST_SMS_RECIPIENT]
-        });
-        sendMessage(t, service, smsMessage, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_extend.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_extend.html
deleted file mode 100755 (executable)
index fe0498d..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_extend</title>
-<script src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_extend
-//==== PRIORITY P3
-//==== LABEL Check if instance of interface MessageService (SMS) can be extended with new property
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:MessageService U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA OBX
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-
-        check_extensibility(messageService);
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_exist.html
deleted file mode 100755 (executable)
index 4c929ad..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_loadMessageBody_exist</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_loadMessageBody_exist
-//==== LABEL Check if method loadMessageBody of MessageService (SMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-
-        assert_true("loadMessageBody" in messageService, "No loadMessageBody method in messageService");
-        check_method_exists(messageService, "loadMessageBody");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_TypeMismatch.html
deleted file mode 100755 (executable)
index ba2fdc9..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-        Karol Surma <k.surma@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_loadMessageBody_message_TypeMismatch</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_loadMessageBody_message_TypeMismatch
-//==== LABEL Check type conversions for message argument of MessageService.loadMessageBody method (sms)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, i, param, conversionTable, loadBodySuccess,
-    serviceSuccess, serviceError, exceptionName;
-
-t.step(function () {
-
-    loadBodySuccess = t.step_func(function () {
-        assert_unreached("loadMessageBody() success callback invoked.");
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-
-        conversionTable = getTypeConversionExceptions("object", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            param = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                messageService.loadMessageBody(param, loadBodySuccess);
-            }, exceptionName + " should be thrown " + param);
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_invalid_obj.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_invalid_obj.html
deleted file mode 100755 (executable)
index 0fe78bd..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-        Karol Surma <k.surma@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_loadMessageBody_message_invalid_obj</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_loadMessageBody_message_invalid_obj
-//==== LABEL Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, message, serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-
-        message = {
-            id: "1",
-            conversationId: null,
-            folderId: null,
-            type: "messaging.sms",
-            timestamp: null,
-            from: null,
-            to: [ TEST_SMS_RECIPIENT ],
-            body: {
-                messageId: "1",
-                loaded: true,
-                plainBody: "Sample content"
-            },
-            isRead: false,
-            inResponseTo: null,
-            messageStatus: ""
-        };
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            messageService.loadMessageBody(message);
-        });
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_missarg_message.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_missarg_message.html
deleted file mode 100755 (executable)
index 3e8ea17..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-        Karol Surma <k.surma@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_loadMessageBody_missarg_message</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_loadMessageBody_missarg_message
-//==== LABEL Check with missing non-optional argument - MessageService.loadMessageBody (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            messageService.loadMessageBody();
-        });
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_messageStorage_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_messageStorage_attribute.html
deleted file mode 100755 (executable)
index 96410f5..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_messageStorage_attribute</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_messageStorage_attribute
-//==== LABEL Check if attribute messageStorage of MessageService (SMS) exists, has type MessageStorage and is readonly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:messageStorage A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE AT ARO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, storage, serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        assert_true("messageStorage" in messagingService, "No 'messageStorage' attribute in messagingService");
-
-        messagingService.messageStorage = null;
-        assert_not_equals(messagingService.messageStorage, null, "messageStorage shouldn't be nullable");
-
-        storage = messagingService.messageStorage;
-        assert_type(storage.addDraftMessage, "function", "messageStorage.addDraftMessage() method not found");
-        assert_type(storage.findMessages, "function", "messageStorage.findMessages() method not found");
-        assert_type(storage.removeMessages, "function", "messageStorage.removeMessages() method not found");
-        assert_type(storage.updateMessages, "function", "messageStorage.updateMessages() method not found");
-        assert_type(storage.findConversations, "function", "messageStorage.findConversations() method not found");
-        assert_type(storage.removeConversations, "function", "messageStorage.removeConversations() method not found");
-        assert_type(storage.findFolders, "function", "messageStorage.findFolders() method not found");
-        assert_type(storage.addMessagesChangeListener, "function", "messageStorage.addMessagesChangeListener() method not found");
-        assert_type(storage.addConversationsChangeListener, "function",
-            "messageStorage.addConversationsChangeListener() method not found");
-        assert_type(storage.addFoldersChangeListener, "function", "messageStorage.addFoldersChangeListener() method not found");
-        assert_type(storage.removeChangeListener, "function", "messageStorage.removeChangeListener() method not found");
-
-        messagingService.nessageStorage = {};
-        assert_type(storage.addDraftMessage, "function", "Not read only - messageStorage.addDraftMessage() method not found");
-        assert_type(storage.findMessages, "function", "Not read only - messageStorage.findMessages() method not found");
-        assert_type(storage.removeMessages, "function", "Not read only - messageStorage.removeMessages() method not found");
-        assert_type(storage.updateMessages, "function", "Not read only - messageStorage.updateMessages() method not found");
-        assert_type(storage.findConversations, "function", "Not read only - messageStorage.findConversations() method not found");
-        assert_type(storage.removeConversations, "function", "Not read only - messageStorage.removeConversations() method not found");
-        assert_type(storage.findFolders, "function", "Not read only - messageStorage.findFolders() method not found");
-        assert_type(storage.addMessagesChangeListener, "function",
-            "Not read only - messageStorage.addMessagesChangeListener() method not found");
-        assert_type(storage.addConversationsChangeListener, "function",
-            "Not read only - messageStorage.addConversationsChangeListener() method not found");
-        assert_type(storage.addFoldersChangeListener, "function",
-            "Not read only - messageStorage.addFoldersChangeListener() method not found");
-        assert_type(storage.removeChangeListener, "function", "Not read only - messageStorage.removeChangeListener() method not found");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage.html
deleted file mode 100755 (executable)
index 5aec562..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_sms_sendMessage</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_sms_sendMessage
-//==== LABEL Check if MessageService.sendMessage method works properly (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    message, datetime, messageStorage, sendSuccess, sendError,
-    service, serviceSuccess, serviceError, count;
-
-t.step(function () {
-    sendSuccess = t.step_func(function (recipients) {
-        assert_type(recipients, "array", "recipients type is not array");
-        assert_equals(recipients.length, 1, "recipients.length should be 1");
-        assert_equals(recipients[0], TEST_SMS_RECIPIENT, "recipient in sent message is not the same as recipient set during message creation");
-        t.done();
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        messageStorage = service.messageStorage;
-        datetime = tizen.time.getCurrentDateTime().toString();
-        message = new tizen.Message("messaging.sms", {
-            plainBody: datetime,
-            to: [ TEST_SMS_RECIPIENT ]
-        });
-
-        count = tizen.systeminfo.getCount("SIM");
-        sendMessage(t, service, message, sendSuccess, sendError, count);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index afbb044..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_sendMessage_errorCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_sendMessage_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,
-    sendSuccess, invalidErrorCallback, exceptionName, i, conversionTable;
-
-t.step(function () {
-
-    sendSuccess = t.step_func(function (recipients) {
-        assert_unreached("Success callback invoked.");
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        message = new tizen.Message("messaging.sms");
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            invalidErrorCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(
-                { name: exceptionName },
-                function () {
-                    messagingService.sendMessage(message, sendSuccess, invalidErrorCallback);
-                },
-                exceptionName + " should be thrown - invalid error callback: " + invalidErrorCallback + "."
-            );
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 5a173c2..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_sendMessage_errorCallback_invalid_cb</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_sendMessage_errorCallback_invalid_cb
-//==== LABEL Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,
-    sendSuccess, invalidErrorCallback, exceptionName = "TypeMismatchError";
-
-t.step(function () {
-
-    invalidErrorCallback = {
-        onerror: t.step_func(function (error) {
-            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);
-        })
-    };
-
-    sendSuccess = t.step_func(function (recipients) {
-        assert_unreached("Success callback invoked.");
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        message = new tizen.Message("messaging.sms");
-        assert_throws(
-            { name: exceptionName },
-            function () {
-                messagingService.sendMessage(message, sendSuccess, invalidErrorCallback);
-            },
-            exceptionName + " should be thrown - invalid error callback."
-        );
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_exist.html
deleted file mode 100755 (executable)
index bdba162..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_sendMessage_exist</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_sendMessage_exist
-//==== LABEL Check if method sendMessage of MessageService (SMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-
-        assert_true("sendMessage" in messageService, "No sendMessage method in messageService");
-        check_method_exists(messageService, "sendMessage");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_TypeMismatch.html
deleted file mode 100755 (executable)
index 1a80ae9..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_sendMessage_message_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_sendMessage_message_TypeMismatch
-//==== LABEL Check type conversions for message argument of MessageService.sendMessage method (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, sendSuccess,
-    sendError, incorrectMessage, exceptionName, i, conversionTable;
-t.step(function () {
-
-    sendSuccess = t.step_func(function (recipients) {
-        assert_unreached("Success callback invoked");
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        conversionTable = getTypeConversionExceptions("object", false);
-        for (i = 0; i < conversionTable.length; i++) {
-            incorrectMessage = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(
-                { name: exceptionName },
-                function () {
-                    messagingService.sendMessage(incorrectMessage, sendSuccess, sendError);
-                },
-                exceptionName + " should be thrown - incorrectly created message: " + incorrectMessage + "."
-            );
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_invalid_obj.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_invalid_obj.html
deleted file mode 100755 (executable)
index cde49c2..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_sendMessage_message_invalid_obj</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_sendMessage_message_invalid_obj
-//==== LABEL Check if MessageService.sendMessage method throws exception when message is invalid (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTO
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, sendSuccess,
-    sendError, fakeMessage, exceptionName = "TypeMismatchError";
-
-t.step(function () {
-
-    sendSuccess = t.step_func(function (recipients) {
-        assert_unreached("Success callback invoked");
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        fakeMessage = {
-            id: "1",
-            conversationId: null,
-            folderId: null,
-            type: "messaging.sms",
-            timestamp: null,
-            from: null,
-            to: [ TEST_SMS_RECIPIENT ],
-            body: {
-                messageId: "1",
-                loaded: true,
-                plainBody: "Sample content"
-            },
-            isRead: false,
-            inResponseTo: null,
-            messageStatus: ""
-        };
-
-        assert_throws(
-            { name: exceptionName },
-            function () {
-                messagingService.sendMessage(fakeMessage, sendSuccess, sendError);
-            },
-            exceptionName + " should be thrown - incorrectly created message."
-        );
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_missarg.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_missarg.html
deleted file mode 100755 (executable)
index 65b84e0..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_sendMessage_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_sendMessage_missarg
-//==== LABEL Check with missing non-optional argument - MessageService.sendMessage (sms)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        assert_throws(
-            { name: exceptionName },
-            function () {
-                messagingService.sendMessage();
-            },
-            exceptionName + " should be thrown - missing message."
-        );
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 82824bb..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_sendMessage_successCallback_TypeMismatch</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_sendMessage_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageService.sendMessage method (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,
-    sendError, invalidSuccessCallback, exceptionName, i, conversionTable;
-
-t.step(function () {
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        message = new tizen.Message("messaging.sms");
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            invalidSuccessCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(
-                { name: exceptionName },
-                function () {
-                    messagingService.sendMessage(message, invalidSuccessCallback, sendError);
-                },
-                exceptionName + " should be thrown - invalid success callback: " + invalidSuccessCallback + "."
-            );
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 35e0a3d..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_sendMessage_successCallback_invalid_cb</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_sendMessage_successCallback_invalid_cb
-//==== LABEL Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,
-    sendError, invalidSuccessCallback, exceptionName = "TypeMismatchError";
-
-t.step(function () {
-
-    invalidSuccessCallback = {
-        onsuccess: t.step_func(function (recipients) {
-            assert_unreached("Invalid success callback invoked");
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messagingService = services[0];
-
-        message = new tizen.Message("messaging.sms");
-        assert_throws(
-            { name: exceptionName },
-            function () {
-                messagingService.sendMessage(message, invalidSuccessCallback, sendError);
-            },
-            exceptionName + " should be thrown - invalid success callback."
-        );
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_without_errorCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_without_errorCallback.html
deleted file mode 100755 (executable)
index fa51091..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_sendMessage_without_errorCallback</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_sendMessage_without_errorCallback
-//==== LABEL Check if MessageService.sendMessage method works properly without errorCallback argument (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    message, datetime,
-    sendSuccess, returnedValue = null, messageSent = false, resendMessage,
-    service, serviceListSuccess, serviceListError;
-
-t.step(function () {
-
-    sendSuccess = t.step_func(function (recipients) {
-        messageSent = true;
-
-        assert_type(recipients, "array", "recipients type is not array");
-        assert_equals(recipients.length, 1, "recipients.length should be 1");
-        assert_greater_than_equal(recipients[0].indexOf(TEST_SMS_RECIPIENT), 0, "recipient in sent message is not the same as" +
-            "recipient set during message creation");
-
-        assert_equals(returnedValue, undefined, "sendMessage() return value is not void");
-
-        t.done();
-    });
-
-
-    resendMessage = t.step_func(function () {
-        returnedValue = service.sendMessage(message, sendSuccess);
-
-        setTimeout(t.step_func(function () {
-            if (messageSent === false) {
-                resendMessage();
-            }
-        }), 10000);
-    });
-
-    serviceListSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "No sms MessageService found.");
-        service = services[0];
-
-        datetime = tizen.time.getCurrentDateTime().toString();
-        message = new tizen.Message("messaging.sms", {
-            plainBody: datetime,
-            to: [ TEST_SMS_RECIPIENT ]
-        });
-
-        resendMessage();
-    });
-
-    serviceListError = t.step_func(function (error) {
-        assert_unreached("failed to receive services: " + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceListSuccess, serviceListError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_type_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_type_attribute.html
deleted file mode 100755 (executable)
index 6bf1d93..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageService_sms_type_attribute</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageService_sms_type_attribute
-//==== LABEL Check if attribute type of MessageService (SMS) exists, has type MessageServiceTag and is readonly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService: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: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-
-        assert_true("type" in messageService, "No 'type' attribute in messageService");
-        assert_type(messageService.type, "string", "messageService.type is not string");
-        check_readonly(messageService, "type", "messaging.sms", "string", "messaging.email");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageService_type_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageService_type_exist.html
deleted file mode 100755 (executable)
index 02ffd91..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageService_type_exist</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageService_type_exist
-//==== LABEL Check if attribute type in MessageService
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageService:type A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-t.step(function () {
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        assert_true("type" in services[0], "type in MessageService is not present");
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addCCLAddMRemoveCRemoveCCL.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addCCLAddMRemoveCRemoveCCL.html
deleted file mode 100755 (executable)
index bcc76cd..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_addCCLAddMRemoveCRemoveCCL</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_addCCLAddMRemoveCRemoveCCL
-//==== LABEL Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), listener,
-    serviceError, serviceSuccess, service, listenerId, msg, addError, addSuccess,
-    filterForId, findConversationError, findConversationSuccess, removeConversationError,
-    removeConversationSuccess, findMessageSuccess, findMessageError, filterForTo;
-
-
-t.step(function () {
-    add_result_callback(function () {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throws an exception
-        }
-    });
-
-    listener = {
-        conversationsupdated: function (conversations) {
-        },
-        conversationsadded: function (conversations) {
-        },
-        conversationsremoved: function (conversations) {
-        }
-    };
-
-    removeConversationSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    removeConversationError = t.step_func(function (error) {
-        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findConversationSuccess = t.step_func(function (conversations) {
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-        service.messageStorage.removeConversations(conversations, removeConversationSuccess, removeConversationError);
-    });
-
-    findConversationError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findMessageSuccess = t.step_func(function (messages) {
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-        filterForId = new tizen.AttributeFilter("id", "EXACTLY", messages[0].conversationId);
-        service.messageStorage.findConversations(filterForId, findConversationSuccess, findConversationError);
-    });
-
-    findMessageError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        filterForTo = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-        service.messageStorage.findMessages(filterForTo, findMessageSuccess, findMessageError);
-    });
-
-    addError = t.step_func(function (error) {
-        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");
-        service = services[0];
-        listenerId = service.messageStorage.addConversationsChangeListener(listener);
-        msg = new tizen.Message("messaging.sms",
-                {plainBody: "addCCLAddMRemoveCRemoveCCL-testing",
-                 to: [ TEST_SMS_RECIPIENT ]});
-        service.messageStorage.addDraftMessage(msg, addSuccess, addError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutfilter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutfilter.html
deleted file mode 100755 (executable)
index 27b8241..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_addConversationsChangeListener_withoutfilter</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_addConversationsChangeListener_withoutfilter
-//==== LABEL Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)
-//==== PRIORITY: P1
-//==== ONLOAD_DELAY 90
-//==== 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
-//==== TEST_CRITERIA MAST MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), i, listenerId,
-    serviceSuccess, serviceError, service, message, removeAllSuccess, sendError, listener;
-
-t.step(function () {
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        conversationsadded: t.step_func(function (conversations) {
-            assert_type(conversations, "array", "conversations");
-            assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (i = 0; i < conversations.length; i++) {
-                if (conversations[i].id === message.conversationId) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        listenerId = service.messageStorage.addConversationsChangeListener(listener);
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        sendMessage(t, service, message, null, sendError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        removeAllMessages(t, service, removeAllSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMCLaddM.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMCLaddM.html
deleted file mode 100755 (executable)
index 2610461..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_addMCLaddM</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_addMCLaddM
-//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly for sms
-//==== PRIORITY: P1
-//==== ONLOAD_DELAY 90
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    service, listenerId, listener, sendError, serviceSuccess,
-    msg, serviceError, messageStorage;
-
-t.step(function () {
-    //cleanup after TC
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        messagesupdated: t.step_func(function (messages) {
-            assert_unreached("messagesupdated callback invoked");
-        }),
-        messagesadded: t.step_func(function (messages) {
-            assert_greater_than(messages.length, 0, "Received empty messages array");
-
-            t.done();
-        }),
-        messagesremoved: t.step_func(function (messages) {
-            assert_unreached("messagesremoved callback invoked");
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        messageStorage = service.messageStorage;
-        listenerId = service.messageStorage.addMessagesChangeListener(listener);
-        msg = new tizen.Message("messaging.sms", {
-            plainBody: "test.",
-            to: [TEST_SMS_RECIPIENT]
-        });
-        sendMessage(t, service, msg, null, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withfilter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withfilter.html
deleted file mode 100755 (executable)
index c52834c..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_addMessagesChangeListener_withfilter</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_addMessagesChangeListener_withfilter
-//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly with filter
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MAST MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), i,
-    service, listenerId, messageStorage, message, listener, filter, serviceSuccess,
-    serviceError, addError;
-
-t.step(function () {
-    //cleanup after TC
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        messagesadded: t.step_func(function (messages) {
-            assert_type(messages, "array", "Not an array.");
-            assert_greater_than(messages.length, 0, "Received empty messages array");
-            for (i = 0; i < messages.length; i++) {
-                assert_true(messages[i] instanceof tizen.Message, "Not a message.");
-                if (messages[i].id === message.id) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    addError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function serviceListCB(services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        messageStorage = service.messageStorage;
-        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-        listenerId = messageStorage.addMessagesChangeListener(listener, filter);
-        message = new tizen.Message("messaging.sms", {plainBody: "test.", to: [ TEST_SMS_RECIPIENT ]});
-        service.messageStorage.addDraftMessage(message, null, addError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html
deleted file mode 100755 (executable)
index 0137b49..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_addMessagesChangeListener_withoutfilter</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_addMessagesChangeListener_withoutfilter
-//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly without filter
-//==== PRIORITY: P1
-//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MMINA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), i,
-    service, listenerId, serviceSuccess, message, messageStorage, listener,
-    serviceError, sendError;
-t.step(function () {
-    //cleanup after TC
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        messagesadded: t.step_func(function (messages) {
-            assert_type(messages, "array", "Not an array.");
-            assert_greater_than(messages.length, 0, "Received empty messages array");
-            for (i = 0; i < messages.length; i++) {
-                assert_true(messages[i] instanceof tizen.Message, "Not a message.");
-                if (messages[i].id === message.id) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        messageStorage = service.messageStorage;
-        listenerId = messageStorage.addMessagesChangeListener(listener);
-        assert_type(listenerId, "long", "Incorrect returned value from addMessagesChangeListener method.");
-        message = new tizen.Message("messaging.sms", {plainBody: "test.", to: [ TEST_SMS_RECIPIENT ]});
-        sendMessage(t, service, message, null, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html
deleted file mode 100755 (executable)
index 2f5b67e..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_findMessages</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_findMessages
-//==== LABEL Check if MessageStorage.findMessages method works properly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    smsService, findSuccess, findError, filter,
-    serviceSuccess, addSuccess, serviceError;
-t.step(function () {
-
-    findSuccess = t.step_func(function (messages) {
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        smsService.messageStorage.findMessages(filter, findSuccess, findError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        smsService = services[0];
-
-        addSMSDraft(t, smsService, {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        }, addSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html
deleted file mode 100755 (executable)
index 03d5356..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_errorCallback_TypeMismatch_1</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_findMessages_errorCallback_TypeMismatch_1
-//==== LABEL Check MessageStorage.findMessages method when errorCallback is a number (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, findSuccess, filter;
-t.step(function () {
-
-    findSuccess = t.step_func(function () {
-        assert_unreached("findMessages() success callback invoked");
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            services[0].messageStorage.findMessages(filter, findSuccess, 1);
-        });
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_null.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_null.html
deleted file mode 100755 (executable)
index bba6531..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_errorCallback_null</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_findMessages_errorCallback_null
-//==== LABEL Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, typeFilter, findSuccess,
-    i, addSuccess, service, foundMessage = 0, addedMessage;
-t.step(function () {
-
-    findSuccess = t.step_func(function (messages) {
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-        for (i = 0; i < messages.length; i++) {
-            assert_equals(messages[i].type, "messaging.sms", "Incorrect type");
-            if (messages[i].id === addedMessage.id) {
-                foundMessage++;
-            }
-        }
-        assert_equals(foundMessage, 1, "Incorrect number of found messages");
-        t.done();
-    });
-
-    addSuccess = t.step_func(function (msg) {
-        addedMessage = msg;
-        typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        service.messageStorage.findMessages(typeFilter, findSuccess, null);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        service = services[0];
-        addSMSDraft(t, service, {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        }, addSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_exist.html
deleted file mode 100755 (executable)
index 390a008..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_findMessages_exist</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_findMessages_exist
-//==== LABEL Check if method findMessages in MessageStorage
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        assert_true("findMessages" in services[0].messageStorage, "Messaging.MessageStorage.findMessages method does not exist");
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_filter_sms_valid.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_filter_sms_valid.html
deleted file mode 100755 (executable)
index f67752b..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_filter_sms_valid</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_findMessages_filter_sms_valid
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by type (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), smsService, findSuccess, findError, typeFilter, serviceSuccess,
-    addSuccess, addedMessage, foundMessage = 0, returnedValue = null, i, serviceError;
-t.step(function () {
-
-    findSuccess = t.step_func(function (messages) {
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-        for (i = 0; i < messages.length; i++) {
-            assert_equals(messages[i].type, "messaging.sms", "Incorrect type");
-            if (messages[i].id === addedMessage.id) {
-                foundMessage++;
-            }
-        }
-        assert_equals(foundMessage, 1, "Incorrect number of found messages");
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function (message) {
-        addedMessage = message;
-        typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        returnedValue = smsService.messageStorage.findMessages(typeFilter, findSuccess, findError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        smsService = services[0];
-
-        addSMSDraft(t, smsService, {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        }, addSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_limit_valid.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_limit_valid.html
deleted file mode 100755 (executable)
index 6c3b950..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_limit_valid</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_findMessages_limit_valid
-//==== LABEL Check if MessageStorage.findMessages method works properly with limit
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), smsService, typeFilter, sortMode, limit = 5, serviceError,
-    serviceSuccess, addSuccess, findError, findSuccess, addSuccessCounter = 0, i;
-
-t.step(function () {
-
-    findSuccess = t.step_func(function (messages) {
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-        assert_less_than_equal(messages.length, limit, "Received too many messages");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        addSuccessCounter++;
-        if (addSuccessCounter === limit + 1) {
-            typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-            sortMode = new tizen.SortMode("type", "ASC");
-
-            smsService.messageStorage.findMessages(typeFilter, findSuccess, findError, sortMode, limit);
-        }
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        smsService = services[0];
-
-        for (i = 0; i <= limit; i++) {
-            addSMSDraft(t, smsService, {
-                to: [TEST_SMS_RECIPIENT],
-                plainBody: generatePlainBody()
-            }, addSuccess);
-        }
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_missarg.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_missarg.html
deleted file mode 100755 (executable)
index 2d06edf..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-<head>
-<title>MessageStorage_findMessages_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_findMessages_missarg
-//==== LABEL Check with missing non-optional argument - MessageStorage.findMessages (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    service, filter, serviceError, serviceSuccess, onSuccess;
-t.step(function () {
-
-    onSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.messageStorage.findMessages(filter);
-        });
-
-        t.done();
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        addSMSDraft(t, service, {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        }, onSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_noarg.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_noarg.html
deleted file mode 100755 (executable)
index b9b1679..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-<head>
-<title>MessageStorage_findMessages_noarg</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_findMessages_noarg
-//==== LABEL Check without arguments - MessageStorage.findMessages (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), onSuccess;
-t.step(function () {
-    onSuccess = t.step_func(function (services) {
-        assert_type(services, "array", "type of services is not Array");
-        if (services.length > 0) {
-            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-                services[0].messageStorage.findMessages();
-            });
-        } else {
-            assert_unreached("list of services is empty");
-        }
-        t.done();
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", onSuccess);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_offset_valid.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_offset_valid.html
deleted file mode 100755 (executable)
index 4a16a46..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_offset_valid</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_findMessages_offset_valid
-//==== LABEL Check if MessageStorage.findMessages method works properly with valid offset
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), smsService, typeFilter, sortMode, limit = 10, offset = 2,
-    serviceSuccess, serviceError, addSuccess, findSuccess, findError, addSuccessCounter = 0, i;
-t.step(function () {
-
-    findSuccess = t.step_func(function (messages) {
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        addSuccessCounter++;
-        if (addSuccessCounter === offset + 1) {
-            typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-            sortMode = new tizen.SortMode("type", "ASC");
-            smsService.messageStorage.findMessages(typeFilter, findSuccess, findError, sortMode, limit, offset);
-        }
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        smsService = services[0];
-
-        for (i = 0; i <= offset; i++) {
-            addSMSDraft(t, smsService, {
-                to: [TEST_SMS_RECIPIENT],
-                plainBody: generatePlainBody()
-            }, addSuccess);
-        }
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html
deleted file mode 100755 (executable)
index 14c471a..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_findMessages_sort_valid</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_findMessages_sort_valid
-//==== LABEL Check if MessageStorage.findMessages method works properly with sort
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service, findSuccess, findError, addSuccess, typeFilter,
-    sortMode, serviceSuccess, serviceError;
-
-t.step(function () {
-
-    findSuccess = t.step_func(function (messages) {
-        assert_greater_than(messages.length, 0, "Received empty messages array");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        sortMode = new tizen.SortMode("type", "ASC");
-        service.messageStorage.findMessages(typeFilter, findSuccess, findError, sortMode);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        addSMSDraft(t, service, {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        }, addSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html
deleted file mode 100755 (executable)
index 4164f01..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeChangeListener_exist</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeChangeListener_exist
-//==== LABEL Check if method removeChangeListener in MessageStorage
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError;
-
-t.step(function () {
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        assert_true("removeChangeListener" in services[0].messageStorage, "Messaging.MessageStorage.removeChangeListener method does not exist");
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations.html
deleted file mode 100755 (executable)
index bab75b9..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeChangeListener_forconversations</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeChangeListener_forconversations
-//==== LABEL Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-      listenerId, listener, serviceSuccess, serviceError, service;
-
-t.step(function () {
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        conversationsupdated: t.step_func(function (conversations) {
-        }),
-        conversationsadded: t.step_func(function (conversations) {
-        }),
-        conversationsremoved: t.step_func(function (conversations) {
-        })
-    };
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        listenerId = service.messageStorage.addConversationsChangeListener(listener);
-        service.messageStorage.removeChangeListener(listenerId);
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder.html
deleted file mode 100755 (executable)
index 8f33edc..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-<!DOCTYPE html>
-<!---->
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeChangeListener_forfolder</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeChangeListener_forfolder
-//==== LABEL Check if removeChangeListener method removes listener added by addFoldersChangeListener method
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    listener, serviceSuccess, serviceError, listenerId, service;
-
-t.step(function () {
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        foldersupdated: t.step_func(function (folders) {
-        }),
-        foldersadded: t.step_func(function (folders) {
-        }),
-        foldersremoved: t.step_func(function (folders) {
-        })
-    };
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        listenerId = service.messageStorage.addFoldersChangeListener(listener);
-        service.messageStorage.removeChangeListener(listenerId);
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_formessages.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_formessages.html
deleted file mode 100755 (executable)
index b6e9fa9..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeChangeListener_formessages</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeChangeListener_formessages
-//==== LABEL Check if removeChangeListener method removes listener added by addMessagesChangeListener method
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    listenerId, listener, serviceSuccess, serviceError, service;
-
-t.step(function () {
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        messagesupdated: t.step_func(function (messages) {
-        }),
-        messagesadded: t.step_func(function (messages) {
-        }),
-        messagesremoved: t.step_func(function (messages) {
-        })
-    };
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        listenerId = service.messageStorage.addMessagesChangeListener(listener);
-        service.messageStorage.removeChangeListener(listenerId);
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_valid_argument.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_valid_argument.html
deleted file mode 100755 (executable)
index e967105..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeChangeListener_valid_argument</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeChangeListener_valid_argument
-//==== LABEL Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    listenerId, service, serviceSuccess, serviceError, listener;
-
-t.step(function () {
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        foldersadded: function (folders) {
-        },
-        foldersupdated: function (folders) {
-        },
-        foldersremoved: function (folders) {
-        }
-    };
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        listenerId = service.messageStorage.addFoldersChangeListener(listener);
-        service.messageStorage.removeChangeListener(listenerId);
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_with_watchId.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_with_watchId.html
deleted file mode 100755 (executable)
index 99c8d84..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-<head>
-<title>MessageStorage_removeChangeListener_with_watchId</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_removeChangeListener_with_watchId
-//==== LABEL Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess, foldersChangeCallback, watchId;
-t.step(function () {
-
-    foldersChangeCallback = {
-        foldersupdated: t.step_func(),
-        foldersadded: t.step_func(),
-        foldersremoved: t.step_func()
-    };
-
-    onSuccess = t.step_func(function (services) {
-        assert_type(services, "array", "type of services is not Array");
-        if (services.length > 0) {
-            service = services[0];
-            watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback);
-            service.messageStorage.removeChangeListener(watchId);
-        } else {
-            assert_unreached("list of services is empty");
-        }
-        t.done();
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", onSuccess);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_null.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_null.html
deleted file mode 100755 (executable)
index ff0af0d..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_removeConversations_arg_null</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_removeConversations_arg_null
-//==== LABEL Check MessageStorage.removeConversations method when conversations argument is null (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, removeError, removeSuccess, service;
-t.step(function () {
-
-    removeSuccess = t.step_func(function () {
-        assert_unreached("removeConversations() success callback invoked.");
-    });
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.messageStorage.removeConversations(null, removeSuccess, removeError);
-        });
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_undefined.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_undefined.html
deleted file mode 100755 (executable)
index 88778e7..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_removeConversations_arg_undefined</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_removeConversations_arg_undefined
-//==== LABEL Check MessageStorage.removeConversations method when conversations argument is undefined (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, removeError, removeSuccess, service;
-t.step(function () {
-
-    removeSuccess = t.step_func(function () {
-        assert_unreached("removeConversations() success callback invoked");
-    });
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.messageStorage.removeConversations(undefined, removeSuccess, removeError);
-        });
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_conversations_number.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_conversations_number.html
deleted file mode 100755 (executable)
index 8a46990..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_removeConversations_conversations_number</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_removeConversations_conversations_number
-//==== LABEL Check MessageStorage.removeConversations method when conversations argument is a number (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, removeError, removeSuccess, service;
-t.step(function () {
-    removeSuccess = t.step_func(function () {
-        assert_unreached("removeConversations() success callback invoked");
-    });
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.messageStorage.removeConversations(1, removeSuccess, removeError);
-        });
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_forsms.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_forsms.html
deleted file mode 100755 (executable)
index ccb7310..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeConversations_forsms</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeConversations_forsms
-//==== LABEL Check if MessageStorage.removeConversations method works properly with all callbacks (sms)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    service, serviceError, serviceSuccess, filter, findError, findSuccess, removeError, removeSuccess,
-    onSuccess;
-
-t.step(function () {
-    removeSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccess = t.step_func(function (conversations) {
-        service.messageStorage.removeConversations(conversations, removeSuccess, removeError);
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    onSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        service.messageStorage.findConversations(filter, findSuccess, findError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        addSMSDraft(t, service, {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        }, onSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_invalid_arg.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_invalid_arg.html
deleted file mode 100755 (executable)
index 50ccdb2..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-<head>
-<title>MessageStorage_removeConversations_invalid_arg</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_removeConversations_invalid_arg
-//==== LABEL Check MessageStorage.removeConversations method when conversations argument is invalid (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess;
-t.step(function () {
-
-    onSuccess = t.step_func(function (services) {
-        assert_type(services, "array", "type of services is not Array");
-        if (services.length > 0) {
-            service = services[0];
-            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-                service.messageStorage.removeConversations("sth");
-            });
-        } else {
-            assert_unreached("list of services is empty");
-        }
-        t.done();
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", onSuccess);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_missarg_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_missarg_TypeMismatch.html
deleted file mode 100755 (executable)
index 2a94fbf..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-<head>
-<title>MessageStorage_removeConversations_missarg_TypeMismatch</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_removeConversations_missarg_TypeMismatch
-//==== LABEL Check with missing non-optional argument - MessageStorage.removeConversations (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess;
-t.step(function () {
-
-    onSuccess = t.step_func(function (services) {
-        assert_type(services, "array", "type of services is not Array");
-        if (services.length > 0) {
-            service = services[0];
-            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-                service.messageStorage.removeConversations();
-            });
-        } else {
-            assert_unreached("list of services is empty");
-        }
-        t.done();
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", onSuccess);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_sms.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_sms.html
deleted file mode 100755 (executable)
index f426785..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_removeConversations_sms</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_removeConversations_sms
-//==== PRIORITY P1
-//==== LABEL Check if MessageStorage.removeConversations method works properly (sms)
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    service, msg, filter, removeSuccess, removeError, findSuccess, findError,
-    sendSuccess, serviceSuccess, serviceError, sendError;
-
-t.step(function () {
-    removeSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccess = t.step_func(function (conversations) {
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-        service.messageStorage.removeConversations(conversations, removeSuccess, removeError);
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function (recipients) {
-        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        service.messageStorage.findConversations(filter, findSuccess, findError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        msg = new tizen.Message("messaging.sms", {plainBody: "test.", to: [TEST_SMS_RECIPIENT]});
-        sendMessage(t, service, msg, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_number.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_number.html
deleted file mode 100755 (executable)
index 7fc26c4..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_removeConversations_successCallback_number</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_removeConversations_successCallback_number
-//==== LABEL Check MessageStorage.removeConversations method when successCallback is a number (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, toFilter, sortMode, limit,
-    findConversationsSuccess, findConversationsError, foundConversation, sendSuccess, sendError, newMessage,
-    removeError, service;
-t.step(function () {
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findConversationsSuccess = t.step_func(function (conversations) {
-        assert_greater_than(conversations.length, 0, "no conversations found");
-        foundConversation = conversations[0];
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            service.messageStorage.removeConversations(foundConversation, 1, removeError);
-        });
-
-        t.done();
-    });
-
-    findConversationsError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function (recipients) {
-        toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-        sortMode = new tizen.SortMode("to", "ASC");
-        limit = 10;
-        service.messageStorage.findConversations(toFilter, findConversationsSuccess, findConversationsError, sortMode, limit);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        newMessage = new tizen.Message(service.type, {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "[Test][findConversations] " + (new Date()).toString()
-        });
-
-        sendMessage(t, service, newMessage, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 9c46275..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch
-//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)
-//==== 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
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    incorrectChangeListener, exceptionName, i, conversionTable;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        conversionTable = getTypeConversionExceptions("object", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectChangeListener  = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.addConversationsChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");
-        }
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 85261e2..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb
-//==== LABEL Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)
-//==== 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
-//==== TEST_CRITERIA MTL
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    incorrectListeners, i, exceptionName, incorrectChangeListener;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        incorrectListeners = getListenerConversionExceptions(["conversationsadded", "conversationsupdated", "conversationsremoved"]);
-        for(i = 0; i < incorrectListeners.length; i++) {
-            incorrectChangeListener = incorrectListeners[i][0];
-            exceptionName = incorrectListeners[i][1];
-
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.addConversationsChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener.");
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_exist.html
deleted file mode 100755 (executable)
index 84b73f0..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addConversationsChangeListener_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addConversationsChangeListener_exist
-//==== LABEL Check if method addConversationsChangeListener of MessageStorage (SMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== 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
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("addConversationsChangeListener" in messageStorage, "No addConversationsChangeListener method in messageStorage");
-        check_method_exists(messageStorage, "addConversationsChangeListener");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage.html
deleted file mode 100755 (executable)
index c74cb20..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addDraftMessage</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addDraftMessage
-//==== LABEL Check if MessageStorage.addDraftMessage method works properly (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MOA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), returnedValue = null,
-    addDraftSuccess, addDraftError, filter, findMessagesSuccess, findMessagesError;
-t.step(function () {
-
-    findMessagesSuccess = t.step_func(function (messages) {
-        assert_equals(messages.length, 1, "Received incorrect number of messages");
-        assert_equals(messages[0].body.plainBody, plainBodyToSet, "plainBody attribute is incorrect.");
-
-        t.done();
-    });
-
-    findMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value.");
-        filter = new tizen.AttributeFilter("body.plainBody", "EXACTLY", plainBodyToSet);
-        messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});
-        returnedValue = messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index d5e85aa..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, plainBodyToSet = "plainBody", addDraftSuccess, conversionTable, i, exceptionName, incorrectCallback;
-t.step(function () {
-
-    addDraftSuccess = t.step_func(function () {
-        assert_unreached("addDraftMessage() success callback invoked.");
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet});
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 3c0ddf9..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb
-//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, plainBodyToSet = "plainBody", addDraftSuccess, incorrectCallback, exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    addDraftSuccess = t.step_func(function () {
-        assert_unreached("addDraftMessage() success callback invoked.");
-    });
-
-    incorrectCallback = {
-        onerror: t.step_func(function (error) {
-            assert_unreached("addDraftMessage() incorrect error callback invoked: 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;
-
-        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet});
-        assert_throws({name: exceptionName},
-            function () {
-                messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_exist.html
deleted file mode 100755 (executable)
index 2450ad8..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addDraftMessage_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addDraftMessage_exist
-//==== LABEL Check if method addDraftMessage of MessageStorage (SMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("addDraftMessage" in messageStorage, "No addDraftMessage method in messageStorage");
-        check_method_exists(messageStorage, "addDraftMessage");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html
deleted file mode 100755 (executable)
index b306ee2..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addDraftMessage_message_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addDraftMessage_message_TypeMismatch
-//==== LABEL Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    incorrectMessage, conversionTable, i, exceptionName, addDraftSuccess, addDraftError;
-t.step(function () {
-
-    addDraftSuccess = t.step_func(function () {
-        assert_unreached("addDraftMessage success callback invoked.");
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        conversionTable = getTypeConversionExceptions("object", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectMessage = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.addDraftMessage(incorrectMessage, addDraftSuccess, addDraftError);
-                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessage);
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_invalid_obj.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_invalid_obj.html
deleted file mode 100755 (executable)
index 4df7db0..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addDraftMessage_message_invalid_obj</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addDraftMessage_message_invalid_obj
-//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    fakeMessage, exceptionName = "TypeMismatchError", addDraftSuccess, addDraftError;
-t.step(function () {
-
-    addDraftSuccess = t.step_func(function () {
-        assert_unreached("addDraftMessage success callback invoked.");
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        fakeMessage = {
-            id: "123456",
-            conversationId: null,
-            folderId: null,
-            type: "messaging.sms",
-            timestamp: null,
-            from: null,
-            to: [ TEST_SMS_RECIPIENT ],
-            body: {
-                messageId: "123456",
-                loaded: true,
-                plainBody: "Sample content"
-            },
-            isRead: false,
-            inResponseTo: null,
-            messageStatus: ""
-        };
-        assert_throws({name: exceptionName},
-        function () {
-            messageStorage.addDraftMessage(fakeMessage, addDraftSuccess, addDraftError);
-        }, exceptionName + " should be thrown - given incorrect Message");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_missarg.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_missarg.html
deleted file mode 100755 (executable)
index 1b81386..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addDraftMessage_missarg</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addDraftMessage_missarg
-//==== LABEL Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_throws({name: exceptionName},
-            function () {
-                messageStorage.addDraftMessage();
-            }, exceptionName + " should be thrown - missing argument");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 4f436ac..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, plainBodyToSet = "plainBody", incorrectCallback, addDraftError, conversionTable, exceptionName, i;
-t.step(function () {
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet});
-
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);
-            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 5cae4b1..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addDraftMessage_successCallback_invalid_cb</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addDraftMessage_successCallback_invalid_cb
-//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, plainBodyToSet = "plainBody", incorrectCallback, addDraftError, exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    incorrectCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("addDraftMessage() success callback invoked.");
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet});
-        assert_throws({name: exceptionName},
-            function () {
-                messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);
-            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_errorCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_errorCallback.html
deleted file mode 100755 (executable)
index 761825e..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addDraftMessage_without_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addDraftMessage_without_errorCallback
-//==== LABEL Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MOA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), returnedValue = null,
-    addDraftSuccess, filter, findMessagesSuccess, findMessagesError;
-t.step(function () {
-
-    findMessagesSuccess = t.step_func(function (messages) {
-        assert_equals(messages.length, 1, "Received incorrect number of messages");
-        assert_equals(messages[0].body.plainBody, plainBodyToSet, "plainBody attribute is incorrect.");
-
-        assert_equals(returnedValue, undefined, "Incorrect returned value.");
-        t.done();
-    });
-
-    findMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("body.plainBody", "EXACTLY", plainBodyToSet);
-        messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});
-        returnedValue = messageStorage.addDraftMessage(message, addDraftSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_successCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_successCallback.html
deleted file mode 100755 (executable)
index 8d14d63..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addDraftMessage_without_successCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addDraftMessage_without_successCallback
-//==== LABEL Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, returnedValue = null;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        returnedValue = messageStorage.addDraftMessage(message);
-        assert_equals(returnedValue, undefined, "Incorrect returned value.");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_exist.html
deleted file mode 100755 (executable)
index 977f0f2..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addFoldersChangeListener_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addFoldersChangeListener_exist
-//==== LABEL Check if method addFoldersChangeListener of MessageStorage (SMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("addFoldersChangeListener" in messageStorage, "No addFoldersChangeListener method in messageStorage");
-        check_method_exists(messageStorage, "addFoldersChangeListener");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 0181af3..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Le Qi <le82.qi@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb
-//==== LABEL Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MTL
-
-setup({timeout: 300000});
-
-var t = async_test(document.title, {timeout: 300000}), serviceSuccess, serviceError, messageService, messageStorage, 
-    incorrectListeners, i, incorrectChangeListener, exceptionName;
-
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        incorrectListeners = getListenerConversionExceptions(["conversationsadded", "conversationsupdated", "conversationsremoved"]);
-        for(i = 0; i < incorrectListeners.length; i++) {
-            incorrectChangeListener = incorrectListeners[i][0];
-            exceptionName = incorrectListeners[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.addConversationsChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener.");
-        }
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-       assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_exist.html
deleted file mode 100755 (executable)
index 36d4ca8..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addMessagesChangeListener_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addMessagesChangeListener_exist
-//==== LABEL Check if method addMessagesChangeListener of MessageStorage (SMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("addMessagesChangeListener" in messageStorage, "No addMessagesChangeListener method in messageStorage");
-        check_method_exists(messageStorage, "addMessagesChangeListener");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html
deleted file mode 100755 (executable)
index 4644124..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch
-//==== LABEL Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    changeCallback, conversionTable, incorrectFilter, exceptionName, i;
-t.step(function () {
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_unreached("memssagesadded callback invoked.");
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_unreached("memssagesupdated callback invoked.");
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_unreached("messagesremoved callback invoked.");
-        })
-    };
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        conversionTable = getTypeConversionExceptions("object", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectFilter = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName}, function () {
-                messageStorage.addMessagesChangeListener(changeCallback, incorrectFilter);
-            }, exceptionName + " should be thrown - given incorrect filter: " + incorrectFilter);
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index aa02bb7..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch
-//==== LABEL Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    incorrectChangeListener, exceptionName, i, conversionTable;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-
-        conversionTable = getTypeConversionExceptions("object", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectChangeListener  = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.addMessagesChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");
-        }
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 8fd99d8..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb
-//==== LABEL Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTL
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    incorrectListeners, incorrectChangeListener, exceptionName, i;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        incorrectListeners = getListenerConversionExceptions(["messagesadded", "messagesupdated", "messagesremoved"]);
-        for(i = 0; i < incorrectListeners.length; i++) {
-            incorrectChangeListener = incorrectListeners[i][0];
-            exceptionName = incorrectListeners[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.addMessagesChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener.");
-        }
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_missarg.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_missarg.html
deleted file mode 100755 (executable)
index 187e937..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addMessagesChangeListener_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addMessagesChangeListener_missarg
-//==== LABEL Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_throws({name: exceptionName},
-            function () {
-                messageStorage.addMessagesChangeListener();
-            }, exceptionName + " should be thrown - missing argument.");
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_with_filter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_with_filter.html
deleted file mode 100755 (executable)
index 20f0d7f..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addMessagesChangeListener_with_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addMessagesChangeListener_with_filter
-//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MOA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),
-    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),
-    mismatchPlainBodyToSet = currentDate.getTime().toString(),
-    smsMessageInitDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },
-    matchInitDict = smsMessageInitDict, mismatchInitDict = smsMessageInitDict,
-    matchMessage, mismatchMessage, changeCallback, addDraftError, loadSuccess, loadError;
-t.step(function () {
-
-    //cleanup after TC
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(subscriptionIdentifier);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    loadSuccess = t.step_func(function (loadedMessage) {
-        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");
-        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");
-        t.done();
-    });
-
-    loadError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_type(addedMessages, "array", "Not an array.");
-            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);
-            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");
-            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_unreached("memssagesupdated callback invoked.");
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_unreached("messagesremoved callback invoked.");
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);
-        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);
-        assert_type(subscriptionIdentifier, "long", "Incorrect returned value.");
-
-        mismatchInitDict.plainBody = mismatchPlainBodyToSet;
-        mismatchMessage = new tizen.Message("messaging.sms", mismatchInitDict);
-        messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);
-
-        matchInitDict.plainBody = matchPlainBodyToSet;
-        matchMessage = new tizen.Message("messaging.sms", matchInitDict);
-        messageStorage.addDraftMessage(matchMessage, null, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_without_filter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_without_filter.html
deleted file mode 100755 (executable)
index b46e95d..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_addMessagesChangeListener_without_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_addMessagesChangeListener_without_filter
-//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MMINA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, message, changeCallback, addDraftError, loadSuccess, loadError, plainBody;
-t.step(function () {
-
-    //cleanup after TC
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(subscriptionIdentifier);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    loadSuccess = t.step_func(function (loadedMessage) {
-        assert_equals(loadedMessage.body.plainBody, plainBody, "Incorrect plainBody.");
-        assert_equals(loadedMessage.id, message.id, "Incorrect id.");
-
-        t.done();
-    });
-
-    loadError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_type(addedMessages, "array", "Not an array.");
-            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");
-            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);
-            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_unreached("memssagesupdated callback invoked.");
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_unreached("messagesremoved callback invoked.");
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);
-        assert_type(subscriptionIdentifier, "long", "Incorrect returned value.");
-
-        plainBody = generatePlainBody();
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: plainBody
-        });
-        messageStorage.addDraftMessage(message, null, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_extend.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_extend.html
deleted file mode 100755 (executable)
index e10e6dd..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_extend</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_extend
-//==== PRIORITY P3
-//==== LABEL Check if instance of interface MessageStorage (SMS) can be extended with new property
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA OBX
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        check_extensibility(messageStorage);
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations.html
deleted file mode 100755 (executable)
index 3494a52..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations
-//==== LABEL Check if MessageStorage.findConversations method works properly (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError,
-    addSuccess, addError,
-    conversationSuccess, conversationError,
-    service, newMessage, filter, returnedValue = null, removeAllSuccess;
-t.step(function () {
-
-    conversationSuccess = t.step_func(function (conversations) {
-        assert_type(conversations, "array", "conversations");
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-
-        assert_equals(returnedValue, undefined, "findConversations should return undefined");
-        t.done();
-    });
-
-    conversationError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", newMessage.conversationId);
-
-        returnedValue = service.messageStorage.findConversations(filter, conversationSuccess, conversationError);
-    });
-
-    addError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        newMessage = new tizen.Message(service.type, {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "[Test][findConversations] " + (new Date()).toString()
-        });
-
-        service.messageStorage.addDraftMessage(newMessage, addSuccess, addError);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        removeAllMessages(t, service, removeAllSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index d8d693e..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, getMessagingServicesCallback,
-    onError, i, incorrectCallback, conversionTable, exceptionName;
-t.step(function () {
-
-    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-
-    findConversationsCallback = t.step_func(function () {
-        assert_unreached("Unexpected findConversationsCallback");
-    });
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_true(services.length > 0, "services not found");
-
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({
-                name: exceptionName
-            }, function () {
-                services[0].messageStorage.findConversations(toFilter, findConversationsCallback, incorrectCallback);
-            });
-        }
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 79fe4ff..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations_errorCallback_invalid_cb
-//==== LABEL Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, getMessagingServicesCallback,
-    onError, invalidCallback, conversionTable;
-t.step(function () {
-
-    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-
-    findConversationsCallback = t.step_func(function () {
-        assert_unreached("Unexpected findConversationsCallback");
-    });
-
-    invalidCallback = {
-        onerror: t.step_func(function () {
-            assert_unreached("Unexpected onerror");
-        })
-    };
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_true(services.length > 0, "services not found");
-
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            services[0].messageStorage.findConversations(toFilter, findConversationsCallback, invalidCallback);
-        });
-
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_exist.html
deleted file mode 100755 (executable)
index 067b640..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findConversations_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findConversations_exist
-//==== LABEL Check if method findConversations of MessageStorage (SMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("findConversations" in messageStorage, "No findConversations method in messageStorage");
-        check_method_exists(messageStorage, "findConversations");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (e) {
-        assert_unreached("getMessageServices() error callback: name:" + e.name + ", msg:" + e.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_TypeMismatch.html
deleted file mode 100755 (executable)
index 963bbf8..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations_filter_TypeMismatch</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations_filter_TypeMismatch
-//==== LABEL Check type conversions for filter argument of MessageStorage.findConversations method (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, errorCallback, getMessagingServicesCallback,
-    onError, i, incorrectFilter, conversionTable, exceptionName;
-t.step(function () {
-
-    findConversationsCallback = t.step_func(function () {
-        assert_unreached("Unexpected findConversationsCallback");
-    });
-
-    errorCallback = t.step_func(function (err) {
-        assert_unreached("Unexpected errorCallback: " + err.message);
-    });
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_not_equals(services.length, 0, "getMessageServices services.length");
-
-        conversionTable = getTypeConversionExceptions("object", false);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            incorrectFilter = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-                services[0].messageStorage.findConversations(incorrectFilter, findConversationsCallback, errorCallback);
-            });
-        }
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_id.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_id.html
deleted file mode 100755 (executable)
index 9d31138..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations_filter_id</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations_filter_id
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter by id (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, returnedValue = null,
-    addDraftSuccess, addDraftError,
-    findMessageSuccess, findMessageError,
-    conversationSuccess, conversationError,
-    service, newMessage, convId, filter,
-    recipient = TEST_SMS_RECIPIENT;
-t.step(function () {
-
-    conversationSuccess = t.step_func(function (conversations) {
-        assert_type(conversations, "array", "conversations is not an array");
-        assert_equals(conversations.length, 1, "should find exactly one conversation");
-        assert_equals(conversations[0].id, convId, "conversationId should match");
-
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    conversationError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findMessageSuccess = t.step_func(function (messages) {
-        assert_equals(messages.length, 1, "Should find exactly one message");
-        convId = messages[0].conversationId;
-
-        filter = new tizen.AttributeFilter(
-            "id", "EXACTLY", convId);
-        returnedValue = service.messageStorage.findConversations(filter, conversationSuccess, conversationError);
-    });
-
-    findMessageError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        service.messageStorage.findMessages(
-            new tizen.AttributeFilter("id", "EXACTLY", newMessage.id),
-            findMessageSuccess,
-            findMessageError
-        );
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        service = services[0];
-
-        newMessage = new tizen.Message(service.type, {
-            to: [recipient],
-            plainBody: "[Test][findConversations] " + (new Date()).toString()
-        });
-
-        service.messageStorage.addDraftMessage(newMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_invalid_obj.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_invalid_obj.html
deleted file mode 100755 (executable)
index 041e56e..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations_filter_invalid_obj</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations_filter_invalid_obj
-//==== LABEL Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, errorCallback, getMessagingServicesCallback,
-    onError, invalidFilter;
-t.step(function () {
-
-    findConversationsCallback = t.step_func(function () {
-        assert_unreached("Unexpected findConversationsCallback");
-    });
-
-    errorCallback = t.step_func(function (err) {
-        assert_unreached("Unexpected errorCallback: " + err.message);
-    });
-
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_not_equals(services.length, 0, "getMessageServices services.length");
-
-        invalidFilter = {
-            attributeName: "type",
-            matchFlag: "EXACTLY",
-            matchValue: services[0].type
-        };
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            services[0].messageStorage.findConversations(invalidFilter, findConversationsCallback, errorCallback);
-        });
-
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to.html
deleted file mode 100755 (executable)
index 611e0af..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations_filter_to</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations_filter_to
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter by to (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, returnedValue = null, sendSuccess,
-    sendError, conversationSuccess, conversationError, service, newMessage, filter, recipient = TEST_SMS_RECIPIENT;
-t.step(function () {
-
-    conversationSuccess = t.step_func(function (conversations) {
-        assert_type(conversations, "array", "conversations");
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-        assert_not_equals(conversations[0].to[0].indexOf(TEST_SMS_RECIPIENT), -1,
-            "conversation.to should contain the value we were looking for");
-
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        t.done();
-    });
-
-    conversationError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function (recipients) {
-        filter = new tizen.AttributeFilter("to", "CONTAINS", recipient);
-
-        returnedValue = service.messageStorage.findConversations(filter, conversationSuccess, conversationError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        newMessage = new tizen.Message(service.type, {
-            to: [recipient],
-            plainBody: "[Test][findConversations] " + (new Date()).toString()
-        });
-
-        service.sendMessage(newMessage, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_endswith.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_endswith.html
deleted file mode 100755 (executable)
index 9894ef6..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Le Qi <le82.qi@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findConversations_filter_to_endswith</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findConversations_filter_to_endswith
-//==== LABEL Check if MessageStorage::findConversations method works properly with filter: to endswith.
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError,
-    addDraftSuccess, addDraftError,
-    conversationSuccess, conversationError,
-    service, newMessage, filter, sortMode, removeAllSuccess;
-
-t.step(function () {
-
-    conversationSuccess = t.step_func(function (conversations) {
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-        t.done();
-    });
-
-    conversationError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("to", "ENDSWITH", "0086");
-        sortMode = new tizen.SortMode("to", "ASC");
-        try {
-            service.messageStorage.findConversations(filter, conversationSuccess, conversationError, sortMode);
-        } catch (e) {
-            assert_unreached("findConversations() error callback: name:" + e.name + ", msg:" + e.message);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        newMessage = new tizen.Message(service.type, {
-            plainBody: "I will arrive in 10 minutes.",
-            to: [ "+18606666666", "+18608888888", "+10086"]
-        });
-        service.messageStorage.addDraftMessage(newMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        removeAllMessages(t, service, removeAllSuccess);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_exist.html
deleted file mode 100755 (executable)
index b5bf6fc..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Le Qi <le82.qi@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findConversations_filter_to_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findConversations_filter_to_exist
-//==== LABEL Check if MessageStorage::findConversations method works properly with filter: to exist.
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError,
-    addDraftSuccess, addDraftError,
-    conversationSuccess, conversationError,
-    service, newMessage, filter, sortMode, removeAllSuccess;
-
-t.step(function () {
-
-    conversationSuccess = t.step_func(function (conversations) {
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-        t.done();
-    });
-
-    conversationError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("to", "EXISTS", "008");
-        sortMode = new tizen.SortMode("to", "ASC");
-        service.messageStorage.findConversations(filter, conversationSuccess, conversationError, sortMode);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        newMessage = new tizen.Message(service.type, {
-            plainBody: "I will arrive in 10 minutes.",
-            to: [ "+18606666666", "+18608888888", "+10086"]
-        });
-        service.messageStorage.addDraftMessage(newMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        removeAllMessages(t, service, removeAllSuccess);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_startswith.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_startswith.html
deleted file mode 100755 (executable)
index fd2d44c..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Le Qi <le82.qi@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findConversations_filter_to_startswith</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findConversations_filter_to_startswith
-//==== LABEL Check if MessageStorage::findConversations method works properly with filter: to startswith.
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError,
-    addDraftSuccess, addDraftError,
-    conversationSuccess, conversationError,
-    service, newMessage, filter, sortMode, removeAllSuccess;
-t.step(function () {
-
-    conversationSuccess = t.step_func(function (conversations) {
-        assert_greater_than(conversations.length, 0, "Received empty conversations array");
-        t.done();
-    });
-
-    conversationError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("to", "STARTSWITH", "+1008");
-        sortMode = new tizen.SortMode("to", "ASC");
-        try {
-            service.messageStorage.findConversations(filter, conversationSuccess, conversationError, sortMode);
-        } catch (e) {
-            assert_unreached("findConversations() error callback: name:" + e.name + ", msg:" + e.message);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    removeAllSuccess = t.step_func(function () {
-        newMessage = new tizen.Message(service.type, {
-            plainBody: "I will arrive in 10 minutes.",
-            to: [ "+18606666666", "+18608888888", "+10086"]
-        });
-        service.messageStorage.addDraftMessage(newMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        removeAllMessages(t, service, removeAllSuccess);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_type.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_type.html
deleted file mode 100755 (executable)
index b34bf7c..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations_filter_type</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations_filter_type
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter by type (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, returnedValue = null, sendSuccess,
-    sendError, resendError, conversationSuccess, conversationError, i, service, filter, newMessage;
-t.step(function () {
-
-    conversationSuccess = t.step_func(function (conversations) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-        assert_type(conversations, "array", "conversations");
-        assert_not_equals(conversations.length, 0,
-            "Converation of type " + service.type + " not found. Please prepare it.");
-        for (i = 0; i < conversations.length; i++) {
-            assert_equals(conversations[i].type, service.type, "conversation.type should match");
-        }
-
-        t.done();
-    });
-
-    conversationError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    resendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function (recipients) {
-        filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);
-
-        returnedValue = service.messageStorage.findConversations(filter, conversationSuccess, conversationError);
-    });
-
-    sendError = t.step_func(function (error) {
-        setTimeout(
-            t.step_func(function () {
-                service.sendMessage(newMessage, sendSuccess, resendError);
-            }, 10000));
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        newMessage = new tizen.Message(service.type, {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: "[Test][findConversations] " + (new Date()).toString()
-        });
-
-        service.sendMessage(newMessage, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_missarg.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_missarg.html
deleted file mode 100755 (executable)
index ba669b9..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-<head>
-<title>MessageStorage_sms_findConversations_missarg</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations_missarg
-//==== LABEL Check with missing non-optional argument - MessageStorage.findConversations (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess, filter;
-t.step(function () {
-
-    filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-
-    onSuccess = t.step_func(function (services) {
-        assert_type(services, "array", "type of services is not Array");
-        if (services.length > 0) {
-            service = services[0];
-            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-                service.messageStorage.findConversations(filter);
-            });
-        } else {
-            assert_unreached("list of services is empty");
-        }
-        t.done();
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", onSuccess);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_TypeMismatch.html
deleted file mode 100755 (executable)
index 4489259..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations_sort_TypeMismatch</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations_sort_TypeMismatch
-//==== LABEL Check type conversions for sort argument of MessageStorage.findConversations method (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback,
-    onError, i, incorrectSort, conversionTable, exceptionName;
-t.step(function () {
-
-    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-
-    findConversationsCallback = t.step_func(function () {
-        assert_unreached("Unexpected findConversationsCallback");
-    });
-
-    errorCallback = t.step_func(function (err) {
-        assert_unreached("Unexpected errorCallback: " + err.message);
-    });
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_true(services.length > 0, "services not found");
-
-        conversionTable = getTypeConversionExceptions("object", true);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            incorrectSort = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-                services[0].messageStorage.findConversations(toFilter, findConversationsCallback, errorCallback, incorrectSort);
-            });
-        }
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_invalid_obj.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_invalid_obj.html
deleted file mode 100755 (executable)
index e7b4604..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations_sort_invalid_obj</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations_sort_invalid_obj
-//==== LABEL Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTO
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback,
-    onError, invalidSort;
-t.step(function () {
-
-    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-
-    findConversationsCallback = t.step_func(function () {
-        assert_unreached("Unexpected findConversationsCallback");
-    });
-
-    errorCallback = t.step_func(function (err) {
-        assert_unreached("Unexpected errorCallback: " + err.message);
-    });
-
-    invalidSort = {
-        attributeName: "id",
-        order: "ASC"
-    };
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_true(services.length > 0, "services not found");
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            services[0].messageStorage.findConversations(toFilter, findConversationsCallback, errorCallback, invalidSort);
-        });
-
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index da36490..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), toFilter, errorCallback, getMessagingServicesCallback,
-    onError, i, incorrectCallback, conversionTable, exceptionName;
-t.step(function () {
-
-    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-
-    errorCallback = t.step_func(function (err) {
-        assert_unreached("Unexpected errorCallback: " + err.message);
-    });
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_true(services.length > 0, "services not found");
-
-        conversionTable = getTypeConversionExceptions("functionObject", false);
-
-        for (i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-                services[0].messageStorage.findConversations(toFilter, incorrectCallback, errorCallback);
-            });
-        }
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 6409881..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations_successCallback_invalid_cb
-//==== LABEL Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), toFilter, errorCallback, getMessagingServicesCallback,
-    onError, invalidCallback;
-t.step(function () {
-
-    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-
-    errorCallback = t.step_func(function (err) {
-        assert_unreached("Unexpected errorCallback: " + err.message);
-    });
-
-    invalidCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("Unexpected onsuccess");
-        })
-    };
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_true(services.length > 0, "services not found");
-
-        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-            services[0].messageStorage.findConversations(toFilter, invalidCallback, errorCallback);
-        });
-
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected onError: " + err.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_limit.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_limit.html
deleted file mode 100755 (executable)
index 5e7ad65..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations_with_limit</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations_with_limit
-//==== LABEL Check if MessageStorage.findConversations method works properly with limit (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, service, onSuccess, filter, limit = 1, findError, findSuccess;
-
-t.step(function () {
-
-    findSuccess = t.step_func(function (conversations) {
-        assert_equals(conversations.length, 1, "conversations.length should be 1 when using limit");
-        t.done();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    onSuccess = t.step_func(function () {
-        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        service.messageStorage.findConversations(filter, findSuccess, findError, null, limit);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        addSMSDraft(t, service, {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        }, onSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_offset.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_offset.html
deleted file mode 100755 (executable)
index 2ae3337..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations_with_offset</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findConversations_with_offset
-//==== LABEL Check if MessageStorage.findConversations method works properly with offset (sms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), service, typeFilter, sortById = new tizen.SortMode("id",
-    "DESC"), i, conversationIDs = [], offsetIDs = [], serviceSuccess, serviceError, addSuccess, addSuccessCounter = 0,
-    findAllConversationsSuccess, findAllConversationsError, findConversationsSuccess, findConversationsError;
-t.step(function () {
-
-    findConversationsSuccess = t.step_func(function (conversations) {
-        for (i = 0; i < conversations.length; i++) {
-            offsetIDs.push(conversations[i].id);
-        }
-
-        assert_array_equals(offsetIDs, conversationIDs,
-            "offset=1 should give one less than all conversations;");
-
-        t.done();
-    });
-
-    findConversationsError = t.step_func(function (error) {
-        assert_unreached("Second findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findAllConversationsSuccess = t.step_func(function (conversations) {
-        assert_true(conversations.length > 1,
-            "Please prepare at least two conversations (found " + conversations.length + ")");
-
-        // create an array of IDs, first one is skipped
-        for (i = 1; i < conversations.length; i++) {
-            conversationIDs.push(conversations[i].id);
-        }
-
-        service.messageStorage.findConversations(
-            typeFilter, findConversationsSuccess, findConversationsError, sortById, null, 1);
-    });
-
-    findAllConversationsError = t.step_func(function (error) {
-        assert_unreached("First findConversations() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        addSuccessCounter++;
-        if (addSuccessCounter === 2) {
-            typeFilter = new tizen.AttributeFilter("type", "EXACTLY", service.type);
-
-            service.messageStorage.findConversations(
-                typeFilter, findAllConversationsSuccess, findAllConversationsError, sortById);
-        }
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        service = services[0];
-
-        addSMSDraft(t, service, {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        }, addSuccess);
-
-        addSMSDraft(t, service, {
-            to: [TEST_SMS_RECIPIENT_2],
-            plainBody: generatePlainBody()
-        }, addSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_sort_to.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_sort_to.html
deleted file mode 100755 (executable)
index 4c27fcc..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
--->
-<html>
-
-<head>
-<title>MessageStorage_sms_findConversations_with_sort_to</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>
-<div id="log"></div>
-<script>
-
-//==== TEST: MessageStorage_sms_findConversations_with_sort_to
-//==== LABEL Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, onError, toFilter, sortMode,
-    getMessagingServicesCallback;
-t.step(function () {
-
-    findConversationsCallback = t.step_func(function (conversations) {
-        t.done();
-    });
-
-    onError = t.step_func(function (err) {
-        assert_unreached("Unexpected errorCallback arrived: " + err.message);
-    });
-
-    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-
-    sortMode = new tizen.SortMode("to", "ASC");
-
-    getMessagingServicesCallback = t.step_func(function (services) {
-        assert_not_equals(services.length, 0, "Can't find MessageService");
-
-        services[0].messageStorage.findConversations(toFilter, findConversationsCallback, onError, sortMode);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders.html
deleted file mode 100755 (executable)
index 23b46df..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
-        Le Qi <le82.qi@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findFolders</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findFolders
-//==== PRIORITY P1
-//==== LABEL Check if MessageStorage::findFolders method works properly with successCallback
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 300
-//==== TIMEOUT 300
-//==== TEST_CRITERIA MOA MR
-
-setup({timeout: 300000});
-
-var t = async_test(document.title, {timeout: 300000}), service, onSuccess,
-    serviceError, serviceSuccess, filter, foldersSuccess, foldersError;
-
-t.step(function () {
-    foldersSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    foldersError = t.step_func(function(error) {
-        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    onSuccess = t.step_func(function() {
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
-        try {
-            service.messageStorage.findFolders(filter, foldersSuccess, foldersError);
-        } catch (e) {
-            assert_unreached("find Folders fail, blocked" + e.message);
-        }
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        addSMSDraft(t, service, {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        }, onSuccess);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    try {
-        tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-    } catch (e) {
-        assert_unreached("get message service fail, blocked" + e.message);
-    }
-
-});
-
-</script>
-</body>
-</html>
\ No newline at end of file
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders_exist.html
deleted file mode 100755 (executable)
index 091eb1e..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findFolders_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findFolders_exist
-//==== LABEL Check if method findFolders of MessageStorage (SMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("findFolders" in messageStorage, "No findFolders method in messageStorage");
-        check_method_exists(messageStorage, "findFolders");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages.html
deleted file mode 100755 (executable)
index 9b264e6..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages
-//==== LABEL Check if MessageStorage.findMessages method works properly (sms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMINA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, i, loadMessageSuccess,
-    loadMessageError;
-t.step(function () {
-
-    loadMessageSuccess = t.step_func(function (msg) {
-        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
-        assert_equals(msg.id, message.id, "Id is not equal");
-        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");
-        assert_equals(msg.conversationId, message.conversationId, "conversationId is not equal");
-        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");
-        assert_equals(msg.folderId, message.folderId, "folderId is not equal");
-        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");
-        assert_equals(msg.type, message.type, "type is not equal");
-        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");
-        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");
-        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");
-        assert_equals(msg.from, message.from, "from is not equal");
-        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");
-        for(i = 0; i < msg.to.length; i++) {
-            assert_equals(msg.to[i], message.to[i], "to is not equal");
-        }
-        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");
-        assert_equals(msg.body.messageId, message.body.messageId, "body.messageId is not equal");
-        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");
-        assert_equals(msg.body.loaded, message.body.loaded, "loaded is not equal");
-        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");
-        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");
-        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");
-        assert_equals(msg.isRead, message.isRead, "isRead is not equal");
-        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");
-        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");
-
-        t.done();
-    });
-
-    loadMessageError = t.step_func(function (error) {
-        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_true(msg.length === 1, "Received incorrect number of messages: " + msg.length);
-        messageService.loadMessageBody(msg[0], loadMessageSuccess, loadMessageError);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        messageStorage.findMessages(filter, findSuccessCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index c27ce1c..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,
-    incorrectCallback, findSuccessCB;
-t.step(function () {
-
-    findSuccessCB = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.findMessages(filter, findSuccessCB, incorrectCallback);
-                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectCallback);
-        }
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        assert_true(services.length > 0, "No services was return");
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index be185e3..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_errorCallback_invalid_cb
-//==== LABEL Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError",
-    incorrectCallback, findSuccessCB;
-t.step(function () {
-
-    incorrectCallback = {
-        onerror: t.step_func(function () {
-            assert_unreached("addDraftMessage() success callback invoked.");
-        })
-    };
-
-    findSuccessCB = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        assert_throws({name: exceptionName},
-            function () {
-                messageStorage.findMessages(filter, findSuccessCB, incorrectCallback);
-            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_exist.html
deleted file mode 100755 (executable)
index 2d6d4be..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_exist
-//==== LABEL Check if method findMessages of MessageStorage (SMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("findMessages" in messageStorage, "No findMessages method in messageStorage");
-        check_method_exists(messageStorage, "findMessages");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_filter_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_filter_TypeMismatch.html
deleted file mode 100755 (executable)
index c8a97c3..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_filter_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_filter_TypeMismatch
-//==== LABEL Check type conversions for filter argument of MessageStorage.findMessages method (sms)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, incorrectFilter, conversionTable,
-    i, exceptionName, findSuccessCB, findErrorCB;
-t.step(function () {
-
-    findSuccessCB = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        conversionTable = getTypeConversionExceptions("object", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectFilter = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.findMessages(incorrectFilter, findSuccessCB, findErrorCB);
-                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectFilter);
-        }
-
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_folderId_with_errorCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_folderId_with_errorCallback.html
deleted file mode 100755 (executable)
index 3d172df..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_folderId_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_folderId_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by folderId (sms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
-    i, j, loadMessageSuccess, loadMessageError;
-t.step(function () {
-
-    loadMessageSuccess = t.step_func(function (msg) {
-        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
-        assert_equals(msg.id, message.id, "Id is not equal");
-        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");
-        assert_equals(msg.conversationId, message.conversationId, "conversationId is not equal");
-        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");
-        assert_equals(msg.folderId, message.folderId, "folderId is not equal");
-        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");
-        assert_equals(msg.type, message.type, "type is not equal");
-        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");
-        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");
-        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");
-        assert_equals(msg.from, message.from, "from is not equal");
-        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");
-        for(j = 0; j < msg.to.length; j++) {
-            assert_equals(msg.to[j], message.to[j], "to is not equal");
-        }
-        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");
-        assert_equals(msg.body.messageId, message.body.messageId, "body.messageId is not equal");
-        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");
-        assert_equals(msg.body.loaded, message.body.loaded, "loaded is not equal");
-        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");
-        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");
-        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");
-        assert_equals(msg.isRead, message.isRead, "isRead is not equal");
-        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");
-        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");
-        t.done();
-    });
-
-    loadMessageError = t.step_func(function (error) {
-        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_not_equals(msg.length, 0, "No messages found");
-        for(i = 0; i < msg.length; i++) {
-            assert_equals(msg[i].folderId, message.folderId, "returned folderId is not equal");
-            if(msg[i].id === message.id) {
-                messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);
-            }
-        }
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("folderId", "EXACTLY", message.folderId);
-        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_from_with_errorCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_from_with_errorCallback.html
deleted file mode 100755 (executable)
index 2d5c8ce..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_from_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_from_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by from (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA MR
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, service, returnedValue = null, filter, findSuccessCB, findErrorCB,
-    fromFound, i;
-
-t.step(function () {
-    findSuccessCB = t.step_func(function (messages) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-
-        for (i = 0; i < messages.length; i++) {
-            assert_not_equals(messages[i].from, null, "from is null");
-            fromFound = messages[i].from.indexOf(TEST_SMS_RECIPIENT);
-            assert_greater_than_equal(fromFound, 0, "Recipient not found");
-        }
-
-        t.done();
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        filter = new tizen.AttributeFilter("from", "CONTAINS", TEST_SMS_RECIPIENT);
-        returnedValue = service.messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_id_with_errorCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_id_with_errorCallback.html
deleted file mode 100755 (executable)
index b6cae72..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_id_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_id_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by id (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-//==== ONLOAD_DELAY 90
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
-    loadMessageSuccess, loadMessageError;
-t.step(function () {
-
-    loadMessageSuccess = t.step_func(function (msg) {
-        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
-        assert_equals(msg.id, message.id, "Id is not equal");
-        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");
-        assert_equals(msg.folderId, message.folderId, "folderId is not equal");
-        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");
-        assert_equals(msg.type, message.type, "type is not equal");
-        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");
-        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");
-        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");
-        assert_equals(msg.from, message.from, "from is not equal");
-        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");
-        assert_array_equals(msg.to, message.to, "to is not equal");
-        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");
-        assert_equals(msg.isRead, message.isRead, "isRead is not equal");
-        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");
-        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");
-
-        t.done();
-    });
-
-    loadMessageError = t.step_func(function (error) {
-        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_true(msg.length === 1, "Received incorrect number of messages: " + msg.length);
-        messageService.loadMessageBody(msg[0], loadMessageSuccess, loadMessageError);
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_isRead_with_errorCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_isRead_with_errorCallback.html
deleted file mode 100755 (executable)
index 05540c5..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_isRead_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_isRead_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by isRead (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
-    i;
-t.step(function () {
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_true(msg.length >= 1, "No messages found");
-        for(i = 0; i < msg.length; i++) {
-            assert_equals(msg[i].isRead, message.isRead, "isRead is not equal");
-            assert_equals(msg[i].type, message.type, "type is not equal");
-        }
-        t.done();
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("isRead", "EXACTLY", message.isRead);
-        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        assert_true(services.length > 0, "No services was return");
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_missarg.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_missarg.html
deleted file mode 100755 (executable)
index 8a470e2..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_missarg</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_missarg
-//==== LABEL Check without arguments - MessageStorage.findMessages
-//==== PRIORITY P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    addDraftSuccessCB = t.step_func(function () {
-        assert_throws({name: exceptionName}, function () {
-            messageStorage.findMessages();
-        }, exceptionName + " should be thrown - missing argument");
-
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html
deleted file mode 100755 (executable)
index b958d40..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter1,
-    filter2, composite, findSuccessCB, findErrorCB, loadMessageSuccess, loadMessageError, commonPlainBody;
-t.step(function () {
-
-    loadMessageSuccess = t.step_func(function (msg) {
-        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
-        assert_equals(msg.id, message.id, "Id is not equal");
-        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");
-        assert_equals(msg.folderId, message.folderId, "folderId is not equal");
-        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");
-        assert_equals(msg.type, message.type, "type is not equal");
-        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");
-        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");
-        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");
-        assert_equals(msg.from, message.from, "from is not equal");
-        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");
-        assert_array_equals(msg.to, message.to, "to is not equal");
-        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");
-        assert_equals(msg.body.messageId, message.body.messageId, "body.messageId is not equal");
-        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");
-        assert_equals(msg.body.loaded, message.body.loaded, "loaded is not equal");
-        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");
-        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");
-        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");
-        assert_equals(msg.isRead, message.isRead, "isRead is not equal");
-        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");
-        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");
-
-        t.done();
-    });
-
-    loadMessageError = t.step_func(function (error) {
-        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_equals(msg.length, 1, "No messages found");
-        assert_equals(msg[0].id, message.id, "Id is not equal");
-        messageService.loadMessageBody(msg[0], loadMessageSuccess, loadMessageError);
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        count++;
-        if (count === 2) {
-            filter1 = new tizen.AttributeFilter("body.plainBody", "CONTAINS", message.body.plainBody);
-            filter2 = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-
-            composite = new tizen.CompositeFilter("INTERSECTION", [filter1, filter2]);
-            messageStorage.findMessages(composite, findSuccessCB, findErrorCB);
-        }
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        commonPlainBody = generatePlainBody();
-
-        messageOne = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: commonPlainBody
-        });
-        messageOne.body.plainBody = "new plainBody";
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: commonPlainBody
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html
deleted file mode 100755 (executable)
index 0b41e63..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_plainBody_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_plainBody_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
-    i, loadMessageSuccess, loadMessageError;
-t.step(function () {
-
-    loadMessageSuccess = t.step_func(function (msg) {
-        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
-        assert_equals(msg.id, message.id, "Id is not equal");
-        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");
-        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");
-        t.done();
-    });
-
-    loadMessageError = t.step_func(function (error) {
-        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_not_equals(msg.length, 0, "No messages found");
-        for(i = 0; i < msg.length; i++) {
-            assert_true(msg[i].body.plainBody.indexOf(message.body.plainBody) !== -1, "plainBody is not equal");
-            if(msg[i].id === message.id) {
-                messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);
-            }
-        }
-
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", message.body.plainBody);
-        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_TypeMismatch.html
deleted file mode 100755 (executable)
index ce75145..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_sort_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_sort_TypeMismatch
-//==== LABEL Check type conversions for sort argument of MessageStorage.findMessages method (sms)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,
-    incorrect, findSuccessCB, findErrorCB;
-t.step(function () {
-
-    findSuccessCB = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        conversionTable = getTypeConversionExceptions("object", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrect = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.findMessages(filter, findSuccessCB, findErrorCB, incorrect);
-                }, exceptionName + " should be thrown - given incorrect sort mode: " + incorrect);
-        }
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        assert_true(services.length > 0, "No services was return");
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_invalid_obj.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_invalid_obj.html
deleted file mode 100755 (executable)
index 745c86f..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_sort_invalid_obj</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_sort_invalid_obj
-//==== LABEL Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTO
-//==== ONLOAD_DELAY 90
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError",
-    incorrectMode, findSuccessCB, findErrorCB;
-t.step(function () {
-
-    incorrectMode = {
-        attributeName: "id",
-        order: "ASC"
-    };
-
-    findSuccessCB = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        assert_throws({name: exceptionName},
-            function () {
-                messageStorage.findMessages(filter, findSuccessCB, findErrorCB, incorrectMode);
-            }, exceptionName + " should be thrown - given incorrect mode - " + incorrectMode);
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 0852d87..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,
-    incorrectCallback, findErrorCB;
-t.step(function () {
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        conversionTable = getTypeConversionExceptions("functionObject", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.findMessages(filter, incorrectCallback, findErrorCB);
-                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectCallback);
-        }
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        assert_true(services.length > 0, "No services was return");
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 759a02b..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_successCallback_invalid_cb
-//==== LABEL Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError",
-    incorrectCallback, findErrorCB;
-t.step(function () {
-
-    incorrectCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("addDraftMessage() success callback invoked.");
-        })
-    };
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        assert_throws({name: exceptionName},
-            function () {
-                messageStorage.findMessages(filter, incorrectCallback, findErrorCB);
-            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-        t.done();
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html
deleted file mode 100755 (executable)
index 363ad49..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_timestamp_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_timestamp_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
-    i, loadMessageSuccess, loadMessageError;
-t.step(function () {
-
-    loadMessageSuccess = t.step_func(function (msg) {
-        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
-        assert_equals(msg.id, message.id, "Id is not equal");
-
-        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");
-        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");
-
-        t.done();
-    });
-
-    loadMessageError = t.step_func(function (error) {
-        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_not_equals(msg.length, 0, "No messages found");
-        for(i = 0; i < msg.length; i++) {
-            if(msg[i].id === message.id) {
-                messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);
-            }
-        }
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeRangeFilter("timestamp", new Date(message.timestamp.getTime()-2000), new Date(message.timestamp.getTime()+2000));
-        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_to_with_errorCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_to_with_errorCallback.html
deleted file mode 100755 (executable)
index 19607c4..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_to_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_to_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by to (sms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
-    i, j, loadMessageSuccess, loadMessageError, foundRecipient = false, addedMessage;
-t.step(function () {
-
-    loadMessageSuccess = t.step_func(function (msg) {
-        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
-        assert_equals(msg.id, message.id, "Id is not equal");
-        assert_true(foundRecipient, "Recipient not found");
-        t.done();
-    });
-
-    loadMessageError = t.step_func(function (error) {
-        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_not_equals(msg.length, 0, "No messages found");
-        for(i = 0; i < msg.length; i++) {
-            assert_greater_than(msg[i].to.length, 0, "Recipient empty array");
-            for(j = 0; j < msg[i].to.length; j++) {
-                if (msg[i].to[j].indexOf(TEST_SMS_RECIPIENT) >= 0) {
-                    foundRecipient = true;
-                }
-            }
-            if(msg[i].id === message.id) {
-                addedMessage = msg[i];
-            }
-        }
-        assert_true(addedMessage instanceof tizen.Message, "Not a message.");
-        messageService.loadMessageBody(addedMessage, loadMessageSuccess, loadMessageError);
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("to", "CONTAINS", message.to);
-        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        assert_true(services.length > 0, "No services was return");
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_type_with_errorCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_type_with_errorCallback.html
deleted file mode 100755 (executable)
index 5266a00..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_type_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_type_with_errorCallback
-//==== LABEL Check if MessageStorage.findMessages method works properly with filter by type
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-//==== ONLOAD_DELAY 90
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
-    i, loadMessageSuccess, loadMessageError;
-t.step(function () {
-
-    loadMessageSuccess = t.step_func(function (msg) {
-        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
-        assert_equals(msg.id, message.id, "Id is not equal");
-        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");
-        assert_equals(msg.type, message.type, "type is not equal");
-        t.done();
-    });
-
-    loadMessageError = t.step_func(function (error) {
-        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_not_equals(msg.length, 0, "No messages found");
-        for(i = 0; i < msg.length; i++) {
-            assert_equals(msg[i].type, message.type, "returned type is not equal");
-            if(msg[i].id === message.id) {
-                messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);
-            }
-        }
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        filter = new tizen.AttributeFilter("type", "EXACTLY", message.type);
-        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_limit.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_limit.html
deleted file mode 100755 (executable)
index bed080e..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_with_limit</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_with_limit
-//==== LABEL Check if MessageStorage.findMessages method works properly with limit (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-//==== ONLOAD_DELAY 90
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter,
-    sortMode, findSuccessCB, findErrorCB, removeAllSuccess, commonPlainBody;
-t.step(function () {
-
-    removeAllSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_equals(msg.length, 1, "More then one message one");
-        removeAllMessages(t, messageService, removeAllSuccess);
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        count++;
-        if(count === 2) {
-            filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", message.body.plainBody);
-            sortMode = new tizen.SortMode("id", "DESC");
-            messageStorage.findMessages(filter, findSuccessCB, findErrorCB, sortMode, 1);
-        }
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-
-        commonPlainBody = generatePlainBody();
-
-        messageOne = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: commonPlainBody
-        });
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: commonPlainBody
-        });
-
-        assert_true(services.length > 0, "No services was return");
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_offset.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_offset.html
deleted file mode 100755 (executable)
index f8f0ff7..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_with_offset</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_with_offset
-//==== LABEL Check if MessageStorage.findMessages method works properly with offset (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-//==== ONLOAD_DELAY 90
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter,
-    sortMode, findSuccessCB, findErrorCB, i, loadMessageSuccess, loadMessageError, findCounter = 0, loadCounter = 0,
-    removeAllSuccess, commonPlainBody;
-t.step(function () {
-
-    removeAllSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    loadMessageSuccess = t.step_func(function (msg) {
-        loadCounter++;
-
-        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");
-        assert_equals(msg.body.plainBody, commonPlainBody, "plainBody is not equal");
-
-        if (findCounter === loadCounter) {
-            removeAllMessages(t, messageService, removeAllSuccess);
-        }
-    });
-
-    loadMessageError = t.step_func(function (error) {
-        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_not_equals(msg.length, 0, "No messages found");
-        findCounter = msg.length;
-
-        for(i = 0; i < msg.length; i++) {
-            messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);
-        }
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        count++;
-        if(count === 2) {
-            filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", commonPlainBody);
-            sortMode = new tizen.SortMode("id", "DESC");
-            messageStorage.findMessages(filter, findSuccessCB, findErrorCB, sortMode, 2, 1);
-        }
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        commonPlainBody = generatePlainBody();
-
-        messageOne = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: commonPlainBody
-        });
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: commonPlainBody
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_sort.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_sort.html
deleted file mode 100755 (executable)
index c9cd65c..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_findMessages_with_sort</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_findMessages_with_sort
-//==== LABEL Check if MessageStorage.findMessages method works properly with sort (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
-    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter,
-    sortMode, findSuccessCB, findErrorCB, i, loadMessageSuccess, loadMessageError, findCounter = 0, loadCounter = 0,
-    returnedValue = null, commonPlainBody;
-t.step(function () {
-
-    loadMessageSuccess = t.step_func(function (msg) {
-        loadCounter++;
-
-        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");
-        assert_greater_than_equal(msg.body.plainBody.indexOf(commonPlainBody), 0, "plainBody not found");
-
-        if (findCounter === loadCounter) {
-            t.done();
-        }
-    });
-
-    loadMessageError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccessCB = t.step_func(function (msg) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
-
-        assert_greater_than(msg.length, 1, "Received empty msg array");
-        findCounter = msg.length;
-
-        for(i = 0; i < msg.length; i++) {
-            // messages should be sorted in ascending order
-            if(i > 0) {
-                assert_true(msg[i-1].id < msg[i].id, "Messages are not sorted properly.");
-            }
-            messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);
-        }
-    });
-
-    findErrorCB = t.step_func(function (error) {
-        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccessCB = t.step_func(function () {
-        count++;
-        if(count === 2) {
-            filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", commonPlainBody);
-            sortMode = new tizen.SortMode("id", "ASC");
-            returnedValue = messageStorage.findMessages(filter, findSuccessCB, findErrorCB, sortMode);
-        }
-    });
-
-    addDraftErrorCB = t.step_func(function (error) {
-        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    getMessageServicesSuccessCB = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-
-        commonPlainBody = generatePlainBody();
-
-        messageOne = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: commonPlainBody
-        });
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: commonPlainBody
-        });
-
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);
-        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-    });
-
-    getMessageServicesErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeChangeListener_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeChangeListener_exist.html
deleted file mode 100755 (executable)
index 7107289..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_removeChangeListener_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_removeChangeListener_exist
-//==== LABEL Check if method removeChangeListener of MessageStorage (SMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("removeChangeListener" in messageStorage, "No removeChangeListener method in messageStorage");
-        check_method_exists(messageStorage, "removeChangeListener");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeConversations_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeConversations_exist.html
deleted file mode 100755 (executable)
index 358e1b1..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_removeConversations_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_removeConversations_exist
-//==== LABEL Check if method removeConversations of MessageStorage (SMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("removeConversations" in messageStorage, "No removeConversations method in messageStorage");
-        check_method_exists(messageStorage, "removeConversations");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeMessages_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeMessages_exist.html
deleted file mode 100755 (executable)
index 05ac6d5..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_removeMessages_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_removeMessages_exist
-//==== LABEL Check if method removeMessages of MessageStorage (SMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("removeMessages" in messageStorage, "No removeMessages method in messageStorage");
-        check_method_exists(messageStorage, "removeMessages");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages.html
deleted file mode 100755 (executable)
index 6617490..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_updateMessages</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_updateMessages
-//==== LABEL Check if MessageStorage.updateMessages method works properly (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MOA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), mutableMessage, constMessage,
-    smsMessageInitDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },
-    initDictForMutableMessage = smsMessageInitDict, initDictForConstMessage = smsMessageInitDict,
-    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable",
-    plainBodyToSetForConstMessage = plainBodyToSet + "_const",
-    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,
-    returnedValue = null, updateSuccess, updateError, mutableMessagefilter, constMessagefilter, findMutableMessagesSuccess,
-    findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE", findConstMessagesSuccess, findConstMessagesError,
-    foundConstMessage, consts = "CONST", loadMutableSuccess, loadMutableError, loadConstSuccess, loadConstError,
-    testMessage, testMessageCounter = 0;
-t.step(function () {
-
-    testMessage = t.step_func(function (messageToTest, originalMessage, type) {
-        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");
-        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");
-        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");
-
-        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");
-        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");
-
-        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");
-        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");
-        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");
-        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");
-
-        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");
-        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");
-        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");
-        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {
-            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");
-        } else {
-            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");
-        }
-
-        testMessageCounter++;
-        if (testMessageCounter === 2) {
-            t.done();
-        }
-    });
-
-    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {
-        testMessage(loadedMutableMessage, mutableMessage, mutable);
-    });
-
-    loadMutableError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    loadConstSuccess = t.step_func(function (loadedConstMessage) {
-        testMessage(loadedConstMessage, constMessage, consts);
-    });
-
-    loadConstError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {
-        assert_equals(mutableMessages.length, 1, "incorrect number of messages.");
-        foundMutableMessage = mutableMessages[0];
-        if (foundMutableMessage.body.loaded) {
-            testMessage(foundMutableMessage, mutableMessage, mutable);
-        } else {
-            messageService.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);
-        }
-    });
-
-    findMutableMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findConstMessagesSuccess = t.step_func(function (constMessages) {
-        assert_equals(constMessages.length, 1, "incorrect number of messages.");
-        foundConstMessage = constMessages[0];
-        if (foundConstMessage.body.loaded) {
-            testMessage(foundConstMessage, constMessage, consts);
-        } else {
-            messageService.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);
-        }
-    });
-
-    findConstMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-
-    updateSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");
-        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);
-        messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);
-
-        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);
-        messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);
-    });
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            mutableMessage.to = [TEST_SMS_RECIPIENT_2];
-            mutableMessage.body.plainBody = "new mutableMessage.plainBody";
-            mutableMessage.isRead = true;
-            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess, updateError);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;
-        mutableMessage = new tizen.Message("messaging.sms", initDictForMutableMessage);
-        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);
-
-        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;
-        constMessage = new tizen.Message("messaging.sms", initDictForConstMessage);
-        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 41b15d3..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_updateMessages_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_updateMessages_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, addDraftSuccess, addDraftError, exceptionName, updateSuccess, incorrectCallback, conversionTable, i;
-t.step(function () {
-
-    updateSuccess = t.step_func(function () {
-        assert_unreached("updateMessages() success callback invoked.");
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                messageStorage.updateMessages([message], updateSuccess, incorrectCallback);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-        }
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 91205aa..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_updateMessages_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_updateMessages_errorCallback_invalid_cb
-//==== LABEL Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", updateSuccess, incorrectCallback;
-t.step(function () {
-
-    updateSuccess = t.step_func(function () {
-        assert_unreached("updateMessages() success callback invoked.");
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        incorrectCallback = {
-            onerror: t.step_func(function (error) {
-                assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);
-            })
-        };
-        assert_throws({name: exceptionName},
-            function () {
-                messageStorage.updateMessages([message], updateSuccess, incorrectCallback);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_exist.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_exist.html
deleted file mode 100755 (executable)
index 13515ab..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_updateMessages_exist</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_updateMessages_exist
-//==== LABEL Check if method updateMessages of MessageStorage (SMS) exists
-//==== PRIORITY P0
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA ME
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_true("updateMessages" in messageStorage, "No updateMessages method in messageStorage");
-        check_method_exists(messageStorage, "updateMessages");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_messages_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_messages_TypeMismatch.html
deleted file mode 100755 (executable)
index 47d2a78..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_updateMessages_messages_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_updateMessages_messages_TypeMismatch
-//==== LABEL Check type conversions for messages argument of MessageStorage.updateMessages method (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    exceptionName, updateSuccess, updateError, conversionTable, incorrectMessages, i;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        updateSuccess = t.step_func(function () {
-            assert_unreached("updateMessages() success callback invoked.");
-        });
-
-        updateError = t.step_func(function (error) {
-            assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-        });
-
-        conversionTable = getTypeConversionExceptions("array", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectMessages = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-            assert_throws({name: exceptionName}, function () {
-                messageStorage.updateMessages(incorrectMessages, updateSuccess, updateError);
-            }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessages);
-        }
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_missarg.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_missarg.html
deleted file mode 100755 (executable)
index 83c4b61..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_updateMessages_missarg</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_updateMessages_missarg
-//==== LABEL Check with missing non-optional argument - MessageStorage.updateMessages (sms)
-//==== PRIORITY P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MMA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    exceptionName = "TypeMismatchError";
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        assert_throws({name: exceptionName},
-        function () {
-            messageStorage.updateMessages();
-        }, exceptionName + " should be thrown - missing argument.");
-
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index dad16aa..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_updateMessages_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_updateMessages_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, messageService, messageStorage, message,
-    addDraftSuccess, addDraftError, exceptionName,
-    updateError, incorrectCallback, conversionTable, i;
-
-t.step(function () {
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-
-        conversionTable = getTypeConversionExceptions("functionObject", true);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectCallback = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-            function () {
-                messageStorage.updateMessages([message], incorrectCallback, updateError);
-            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-        }
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index fb5cd3e..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_updateMessages_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_updateMessages_successCallback_invalid_cb
-//==== LABEL Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    message, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", updateError, incorrectCallback;
-t.step(function () {
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        incorrectCallback = {
-            onsuccess: t.step_func(function () {
-                assert_unreached("addDraftMessage() incorrect success callback invoked");
-            })
-        };
-        assert_throws({name: exceptionName},
-            function () {
-                messageStorage.updateMessages([message], incorrectCallback, updateError);
-            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-
-        t.done();
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_errorCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_errorCallback.html
deleted file mode 100755 (executable)
index 48cad48..0000000
+++ /dev/null
@@ -1,173 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_updateMessages_without_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_updateMessages_without_errorCallback
-//==== LABEL Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MOA MAST
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), mutableMessage, constMessage,
-    smsMessageInitDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },
-    initDictForMutableMessage = smsMessageInitDict, initDictForConstMessage = smsMessageInitDict,
-    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable", plainBodyToSetForConstMessage = plainBodyToSet + "_const",
-    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,
-    returnedValue = null, updateSuccess, mutableMessagefilter, constMessagefilter, findMutableMessagesSuccess,
-    findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE", findConstMessagesSuccess, findConstMessagesError,
-    foundConstMessage, consts = "CONST", loadMutableSuccess, loadMutableError, loadConstSuccess, loadConstError,
-    testMessage, testMessageCounter = 0;
-t.step(function () {
-
-    testMessage = t.step_func(function (messageToTest, originalMessage, type) {
-        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");
-        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");
-        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");
-
-        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");
-        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");
-
-        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");
-        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");
-        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");
-        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");
-
-        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");
-        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");
-        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");
-        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {
-            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");
-        } else {
-            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");
-        }
-
-        testMessageCounter++;
-        if (testMessageCounter === 2) {
-            t.done();
-        }
-    });
-
-    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {
-        testMessage(loadedMutableMessage, mutableMessage, mutable);
-    });
-
-    loadMutableError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    loadConstSuccess = t.step_func(function (loadedConstMessage) {
-        testMessage(loadedConstMessage, constMessage, consts);
-    });
-
-    loadConstError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {
-        assert_equals(mutableMessages.length, 1, "incorrect number of messages.");
-        foundMutableMessage = mutableMessages[0];
-        if (foundMutableMessage.body.loaded) {
-            testMessage(foundMutableMessage, mutableMessage, mutable);
-        } else {
-            messageService.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);
-        }
-    });
-
-    findMutableMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findConstMessagesSuccess = t.step_func(function (constMessages) {
-        assert_equals(constMessages.length, 1, "incorrect number of messages.");
-        foundConstMessage = constMessages[0];
-        if (foundConstMessage.body.loaded) {
-            testMessage(foundConstMessage, constMessage, consts);
-        } else {
-            messageService.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);
-        }
-    });
-
-    findConstMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-
-    updateSuccess = t.step_func(function () {
-        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");
-        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);
-        messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);
-
-        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);
-        messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            mutableMessage.to = [TEST_SMS_RECIPIENT_2];
-            mutableMessage.body.plainBody = "new mutableMessage.plainBody";
-            mutableMessage.isRead = true;
-            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;
-        mutableMessage = new tizen.Message("messaging.sms", initDictForMutableMessage);
-        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);
-
-        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;
-        constMessage = new tizen.Message("messaging.sms", initDictForConstMessage);
-        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_successCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_successCallback.html
deleted file mode 100755 (executable)
index 4ff9ace..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_sms_updateMessages_without_successCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_sms_updateMessages_without_successCallback
-//==== LABEL Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MR MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    mutableMessage, constMessage, addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,
-    returnedValue = null;
-t.step(function () {
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            mutableMessage.to = [TEST_SMS_RECIPIENT_2];
-            mutableMessage.body.plainBody = "new mutableMessage.plainBody";
-            mutableMessage.isRead = true;
-            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage]);
-            assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");
-            t.done();
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        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;
-
-        mutableMessage = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);
-
-        constMessage = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_updateMessages.html b/common/tct-messaging-sms-tizen-tests/messaging/MessageStorage_updateMessages.html
deleted file mode 100755 (executable)
index 9888af3..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessageStorage_updateMessages</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessageStorage_updateMessages
-//==== LABEL Check if MessageStorage.updateMessages method works correctly wihtout error callback
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    service, messageSentSuccess, messageSentError, updateSuccess,
-    serviceSuccess, serviceError, message;
-
-t.step(function () {
-
-    updateSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    messageSentSuccess = t.step_func(function (recipients) {
-        message.isRead = !message.isRead;
-        service.messageStorage.updateMessages([message], updateSuccess);
-    });
-
-    messageSentError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        message = new tizen.Message("messaging.sms", {plainBody: "test.", to: [TEST_SMS_RECIPIENT_2]});
-        service.sendMessage(message, messageSentSuccess, messageSentError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_body_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_body_attribute.html
deleted file mode 100755 (executable)
index ebcf12a..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_body_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_body_attribute
-//==== LABEL Check if attribute body of Message (SMS) exists, has type MessageBody
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:body A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA AE AT AN
-
-test(function () {
-    var message = new tizen.Message("messaging.sms"), invalidArgs, samplePlainBody, i;
-
-    assert_true("body" in message, "No 'body' attribute in message");
-
-    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");
-    assert_type(message.body.loaded, "boolean", "message.body.loaded type should be boolean");
-    assert_type(message.body.plainBody, "string", "message.body.plainBody type should be string");
-
-    assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");
-    assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");
-
-    samplePlainBody = "sample plainBody";
-    // body
-    message.body.plainBody = samplePlainBody;
-
-    message.body = null;
-    assert_not_equals(message.body, null, "'body' should not accept null as value");
-
-    invalidArgs = [undefined, true, false, NaN, 0, "TIZEN", function () {}];
-    for (i = 0; i < invalidArgs.length; i++) {
-        message.body = invalidArgs[i];
-
-        assert_true("messageId" in message.body, "Object was modified after setting to " + invalidArgs[i]);
-        assert_true("loaded" in message.body, "Object was modified after setting to " + invalidArgs[i]);
-        assert_true("plainBody" in message.body, "Object was modified after setting to " + invalidArgs[i]);
-
-        assert_equals(message.body.messageId, null, "'messageId' modified after setting the object to " + invalidArgs[i]);
-        assert_equals(message.body.loaded, false, "'loaded' modified after setting the object to " + invalidArgs[i]);
-        assert_equals(message.body.plainBody, samplePlainBody, "'plainBody' modified after setting the object to " + invalidArgs[i]);
-    }
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor.html
deleted file mode 100755 (executable)
index 7da5494..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_constructor</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_constructor
-//==== LABEL Check if Message's constructor works properly (sms)
-//==== PRIORITY P1
-//==== 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 CONSTRA CONSTRM
-
-test(function () {
-    var message, plainBody;
-
-    plainBody = generatePlainBody();
-
-    message = new tizen.Message("messaging.sms", {
-        to: [TEST_SMS_RECIPIENT],
-        plainBody: plainBody
-    });
-
-    assert_true(message instanceof tizen.Message, "InstanceOf.");
-
-    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");
-    assert_equals(message.body.plainBody, plainBody, "'body.plainBody' should be \""+plainBody+"\"");
-    assert_equals(message.conversationId, null, "message.conversationId value should be null");
-    assert_equals(message.folderId, null, "message.folderId value should be null");
-    assert_equals(message.from, null, "'from' should be null");
-    assert_equals(message.id, null, "message.id should be null before processing by the platform");
-    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null");
-    assert_equals(message.isRead, false, "'isRead' value should be false");
-    assert_equals(message.messageStatus, "", "value should be \"\"");
-    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");
-    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should be ["+TEST_SMS_RECIPIENT+"] ");
-    assert_equals(message.type, "messaging.sms", "'type' should be 'messaging.sms'");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_function.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_function.html
deleted file mode 100755 (executable)
index 2a89953..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_constructor_messageInitDict_function</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_constructor_messageInitDict_function
-//==== LABEL Check if Message's constructor works properly with function (sms)
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-
-    var message = new tizen.Message("messaging.sms", function () {});
-
-    assert_true(message instanceof tizen.Message, "InstanceOf.");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_object.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_object.html
deleted file mode 100755 (executable)
index 5e3978a..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_constructor_messageInitDict_object</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_constructor_messageInitDict_object
-//==== LABEL Check if Message's constructor works properly with empty object (sms)
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-
-    var message = new tizen.Message("messaging.sms", {});
-
-    assert_true(message instanceof tizen.Message, "InstanceOf.");
-
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_minargs.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_minargs.html
deleted file mode 100755 (executable)
index 316c7c6..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE html>
-<!--
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-
-<head>
-<title>Message_sms_constructor_minargs</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: Message_sms_constructor_minargs
-//==== LABEL Check if Message's constructor works properly with minimum arguments (sms)
-//==== PRIORITY P1
-//==== 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
-test(function () {
-    var message = new tizen.Message("messaging.sms");
-
-    assert_true(message instanceof tizen.Message, "InstanceOf.");
-
-    assert_equals(message.type, "messaging.sms", "message.type should be: 'messaging.sms'");
-
-    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.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.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.isRead, false, "'isRead' default value should be false");
-    assert_equals(message.messageStatus, "", "Default value should be \"\"");
-    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");
-    assert_type(message.to, "array", "'to' should be an array");
-    assert_equals(message.type, "messaging.sms", "'type' should be 'messaging.sms'");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_conversationId_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_conversationId_attribute.html
deleted file mode 100755 (executable)
index 146d805..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_conversationId_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_conversationId_attribute
-//==== LABEL Check if attribute conversationId of Message (SMS) exists, has type MessageConvId and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:conversationId A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA AE ADV ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message,
-    serviceError, serviceSuccess, service, sendError, sendSuccess, filterForMessage,
-    findMessagesError, findMessagesSuccess, foundMessage;
-t.step(function () {
-    message = new tizen.Message("messaging.sms", {
-        to: [TEST_SMS_RECIPIENT],
-        plainBody: generatePlainBody()
-    });
-
-    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");
-
-    findMessagesSuccess = t.step_func(function (messages) {
-        assert_equals(messages.length, 1, "Incorrect number of messages found");
-        assert_equals(messages[0].id, message.id, "Found incorrect message");
-        foundMessage = messages[0];
-
-        assert_type(foundMessage.conversationId, "string", "ConversationId is not a string");
-        assert_not_equals(foundMessage.conversationId, "", "ConversationId is empty");
-
-        check_readonly(foundMessage, "conversationId", foundMessage.conversationId, "string", foundMessage.conversationId + "1");
-
-        t.done();
-    });
-
-    findMessagesError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        filterForMessage = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        service.messageStorage.findMessages(filterForMessage, findMessagesSuccess, findMessagesError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        service.sendMessage(message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_extend.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_extend.html
deleted file mode 100755 (executable)
index f955c1e..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_extend</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_extend
-//==== PRIORITY P3
-//==== LABEL Check if instance of interface Message (SMS) can be extended with new property
-//==== 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
-
-test(function () {
-    var message = new tizen.Message("messaging.sms");
-
-    check_extensibility(message);
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_folderId_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_folderId_attribute.html
deleted file mode 100755 (executable)
index 7fb5837..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_folderId_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_folderId_attribute
-//==== LABEL Check if attribute folderId of Message (SMS) exists, has type MessageFolderId and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:folderId A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA AE ADV ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message,
-    serviceError, serviceSuccess, messageService, sendError,
-    sendSuccess;
-t.step(function () {
-    message = new tizen.Message("messaging.sms");
-
-    assert_true("folderId" in message, "No 'folderId' attribute in message");
-    check_readonly(message, "folderId", null, "object", "12345");
-
-    sendSuccess = t.step_func(function () {
-        assert_type(message.folderId, "string", "folderId is not a string");
-        assert_not_equals(message.folderId, "", "folderId is empty");
-
-        check_readonly(message, "folderId", message.folderId, "string", "54321");
-
-        t.done();
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() 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];
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        messageService.sendMessage(message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_from_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_from_attribute.html
deleted file mode 100755 (executable)
index b6e4ea7..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_from_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_from_attribute
-//==== LABEL Check if attribute from of Message (SMS) exists, has type DOMString and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:from A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA AE ADV ARO AT
-
-test(function () {
-    var message = new tizen.Message("messaging.sms");
-
-    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");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_id_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_id_attribute.html
deleted file mode 100755 (executable)
index 8799617..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_id_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_id_attribute
-//==== LABEL Check if attribute id of Message (SMS) exists, has type MessageId and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:id A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA AE ADV ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message,
-    serviceError, serviceSuccess, messageService, sendError,
-    sendSuccess;
-t.step(function () {
-    message = new tizen.Message("messaging.sms");
-
-    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");
-
-    sendSuccess = 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();
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() 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];
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        messageService.sendMessage(message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_inResponseTo_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_inResponseTo_attribute.html
deleted file mode 100755 (executable)
index 8913759..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_inResponseTo_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_inResponseTo_attribute
-//==== LABEL Check if attribute inResponseTo of Message (SMS) exists, has type MessageId
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-    var message = new tizen.Message("messaging.sms");
-
-    assert_true("inResponseTo" in message, "No 'inResponseTo' attribute in message");
-    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");
-
-    check_readonly(message, "inResponseTo", message.inResponseTo, "string", message.inResponseTo + "dummyValue");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_isRead_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_isRead_attribute.html
deleted file mode 100755 (executable)
index fd3f633..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_isRead_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_isRead_attribute
-//==== LABEL Check if attribute isRead of Message (SMS) exists, has type Boolean
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-    var message = new tizen.Message("messaging.sms");
-
-    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 = true;
-    assert_equals(message.isRead, true, "'isRead' should accept a valid value");
-
-    message.isRead = null;
-    assert_equals(message.isRead, false, "'isRead' should not accept null as value");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_messageStatus_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_messageStatus_attribute.html
deleted file mode 100755 (executable)
index 0a5d1d4..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_messageStatus_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_messageStatus_attribute
-//==== LABEL Check if attribute messageStatus of Message (SMS) exists, has type DOMString and is readonly
-//==== PRIORITY P1
-//==== 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 AT ARO
-
-test(function () {
-    var message = new tizen.Message("messaging.sms");
-
-    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);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_timestamp_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_timestamp_attribute.html
deleted file mode 100755 (executable)
index 453fb65..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_timestamp_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_timestamp_attribute
-//==== LABEL Check if attribute timestamp of Message (SMS) exists, has type Date and is readonly
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Message:timestamp A
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA AE ADV ARO AT
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), message, serviceError,
-    serviceSuccess, messageService, sendError, sendSuccess, oldDate;
-t.step(function () {
-    message = new tizen.Message("messaging.sms");
-
-    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());
-
-    sendSuccess = t.step_func(function () {
-        assert_type(message.timestamp, "date", "timestamp is not a Date");
-
-        oldDate = message.timestamp;
-        message.timestamp = new Date();
-        assert_equals(message.timestamp.getTime(), oldDate.getTime(), "timestamp can be modified");
-
-        t.done();
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() 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];
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        messageService.sendMessage(message, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_to_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_to_attribute.html
deleted file mode 100755 (executable)
index 07769a7..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_to_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_to_attribute
-//==== LABEL Check if attribute to of Message (SMS) exists, has type Array
-//==== PRIORITY P1
-//==== 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 AN ASG
-
-test(function () {
-    var message = new tizen.Message("messaging.sms");
-
-    assert_true("to" in message, "No 'to' attribute in message");
-    assert_array_equals(message.to, [], "'to' should be [] by default");
-    assert_type(message.to, "array", "'to' should be an array");
-
-    message.to = null;
-    assert_array_equals(message.to, [], "'to' should not accept null as value");
-
-    message.to = [TEST_SMS_RECIPIENT];
-    assert_type(message.to, "array", "'to' should be an array");
-    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should accept a valid value");
-
-    message.to = null;
-    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should not accept null as value");
-
-    check_invalid_array_assignments(message, "to", false);
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_type_attribute.html b/common/tct-messaging-sms-tizen-tests/messaging/Message_sms_type_attribute.html
deleted file mode 100755 (executable)
index d462726..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Piotr Szydelko <p.szydelko@samsung.com>
-        Jakub Siewierski <j.siewierski@samsung.com>
-
--->
-<html>
-<head>
-<title>Message_sms_type_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>
-<div id="log"></div>
-<script>
-//==== TEST: Message_sms_type_attribute
-//==== LABEL Check if attribute type of Message (SMS) exists, has type MessageServiceTag and is readonly
-//==== PRIORITY P1
-//==== 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
-
-test(function () {
-    var message = new tizen.Message("messaging.sms");
-
-    assert_true("type" in message, "No 'type' attribute in message");
-    assert_equals(message.type, "messaging.sms", "'type' should be 'messaging.sms'");
-    check_readonly(message, "type", message.type, "string", message.type + "dummyValue");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withfilter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withfilter.html
deleted file mode 100755 (executable)
index ae93e8f..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessagesChangeCallback_messagesadded_withfilter</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessagesChangeCallback_messagesadded_withfilter
-//==== LABEL Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceError, serviceSuccess, sendError, filterForTo, msg, listener, service, listenerId;
-
-t.step(function () {
-
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        messagesadded: t.step_func(function (msgs) {
-            assert_greater_than(msgs.length, 0, "Received empty msgs array");
-
-            t.done();
-        }),
-        messagesupdated: t.step_func(function (msgs) {
-            assert_unreached("should not in messagesupdated");
-        }),
-        messagesremoved: t.step_func(function (msgs) {
-            assert_unreached("should not in messagesremoved");
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        filterForTo = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT_2);
-        listenerId = service.messageStorage.addMessagesChangeListener(listener, filterForTo);
-
-        msg = new tizen.Message("messaging.sms",
-                {plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2 ] });
-        sendMessage(t, service, msg, null, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withoutfilter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withoutfilter.html
deleted file mode 100755 (executable)
index 967f346..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessagesChangeCallback_messagesadded_withoutfilter</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessagesChangeCallback_messagesadded_withoutfilter
-//==== LABEL Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), i,
-    serviceError, serviceSuccess, sendError, message, listener, service, listenerId;
-
-t.step(function () {
-
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_type(addedMessages, "array", "Not an array.");
-            assert_greater_than(addedMessages.length, 0, "Received empty messages array");
-            for (i = 0; i < addedMessages.length; i++) {
-                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");
-                if (addedMessages[i].id === message.id) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        listenerId = service.messageStorage.addMessagesChangeListener(listener);
-        message = new tizen.Message("messaging.sms",
-                {plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2 ]});
-        sendMessage(t, service, message, null, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withfilter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withfilter.html
deleted file mode 100755 (executable)
index a932b1a..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessagesChangeCallback_messagesupdated_withfilter</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessagesChangeCallback_messagesupdated_withfilter
-//==== LABEL Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA CBOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-        serviceError, serviceSuccess, sendSuccess, sendError, findfilter, msg, listener, updateError,
-        findSuccess, findError, service, listenerfilter, listenerId;
-
-t.step(function () {
-
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        messagesadded: t.step_func(function (messages) {
-            assert_unreached("Should not enter messagesadded: " + messages.length);
-        }),
-        messagesupdated: t.step_func(function (messages) {
-            assert_greater_than(messages.length, 0, "Received empty messages array in messagesupdated");
-
-            t.done();
-        }),
-        messagesremoved: t.step_func(function (messages) {
-            assert_unreached("Should not enter messagesremoved: " + messages.length);
-        })
-    };
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccess = t.step_func(function (messages) {
-        assert_greater_than(messages.length, 0, "Received empty messages array after findMessages()");
-        messages[0].isRead = !messages[0].isRead;
-        service.messageStorage.updateMessages(messages, null, updateError);
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        listenerfilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        listenerId = service.messageStorage.addMessagesChangeListener(listener, listenerfilter);
-        findfilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT_2);
-        service.messageStorage.findMessages(findfilter, findSuccess, findError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        msg = new tizen.Message("messaging.sms",
-                { plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2 ] });
-
-        sendMessage(t, service, msg, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withoutfilter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withoutfilter.html
deleted file mode 100755 (executable)
index 450b016..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Li <li.l.li@intel.com>
-        Zoe, Zou <zoex.zou@intel.com>
-        Ma, YueX <yuex.ma@intel.com>
-
--->
-
-<html>
-<head>
-<title>MessagesChangeCallback_messagesupdated_withoutfilter</title>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: MessagesChangeCallback_messagesupdated_withoutfilter
-//==== LABEL Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), i,
-        serviceError, serviceSuccess, sendSuccess, sendError, findfilter, msg, listener, updateError,
-        findSuccess, findError, service, listenerId;
-
-t.step(function () {
-
-    add_result_callback(function (res) {
-        try {
-            service.messageStorage.removeChangeListener(listenerId);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    listener = {
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_type(updatedMessages, "array", "Not an array.");
-            assert_greater_than(updatedMessages.length, 0, "Received empty messages array");
-            for (i = 0; i < updatedMessages.length; i++) {
-                assert_true(updatedMessages[i] instanceof tizen.Message, "Not a message.");
-                if (updatedMessages[i].id === msg.id) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    findSuccess = t.step_func(function (messages) {
-        assert_greater_than(messages.length, 0, "No messages found.");
-        messages[0].isRead = !messages[0].isRead;
-        service.messageStorage.updateMessages(messages, null, updateError);
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    sendSuccess = t.step_func(function () {
-        listenerId = service.messageStorage.addMessagesChangeListener(listener);
-        findfilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT_2);
-        service.messageStorage.findMessages(findfilter, findSuccess, findError);
-    });
-
-    sendError = t.step_func(function (error) {
-        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        service = services[0];
-        msg = new tizen.Message("messaging.sms",
-                { plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2] });
-
-        sendMessage(t, service, msg, sendSuccess, sendError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_with_filter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_with_filter.html
deleted file mode 100755 (executable)
index 89eb189..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_sms_messagesadded_with_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessagesChangeCallback_sms_messagesadded_with_filter
-//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - sms, filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),
-    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),
-    mismatchPlainBodyToSet = currentDate.getTime().toString(),
-    smsMessageInitDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },
-    matchInitDict = smsMessageInitDict, mismatchInitDict = smsMessageInitDict,
-    matchMessage, mismatchMessage, changeCallback, addDraftError, loadSuccess, loadError;
-t.step(function () {
-
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(subscriptionIdentifier);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    loadSuccess = t.step_func(function (loadedMessage) {
-        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");
-        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");
-        t.done();
-    });
-
-    loadError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_type(addedMessages, "array", "Not an array.");
-            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);
-            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");
-            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_unreached("memssagesupdated callback invoked.");
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_unreached("messagesremoved callback invoked.");
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);
-        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);
-
-        mismatchInitDict.plainBody = mismatchPlainBodyToSet;
-        mismatchMessage = new tizen.Message("messaging.sms", mismatchInitDict);
-        messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);
-
-        matchInitDict.plainBody = matchPlainBodyToSet;
-        matchMessage = new tizen.Message("messaging.sms", matchInitDict);
-        messageStorage.addDraftMessage(matchMessage, null, addDraftError);
-
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_without_filter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_without_filter.html
deleted file mode 100755 (executable)
index 0e31d3d..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_sms_messagesadded_without_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessagesChangeCallback_sms_messagesadded_without_filter
-//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - sms, no filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, message, changeCallback, addDraftError, loadSuccess, loadError, i, plainBody;
-t.step(function () {
-
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(subscriptionIdentifier);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    loadSuccess = t.step_func(function (loadedMessage) {
-        assert_equals(loadedMessage.body.plainBody, plainBody, "Incorrect plainBody.");
-        assert_equals(loadedMessage.id, message.id, "Incorrect id.");
-        t.done();
-    });
-
-    loadError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_type(addedMessages, "array", "Not an array.");
-            assert_greater_than(addedMessages.length, 0, "Received empty messages array");
-            for (i = 0; i < addedMessages.length; i++) {
-                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");
-                if (addedMessages[i].id === message.id) {
-                    messageService.loadMessageBody(addedMessages[i], loadSuccess, loadError);
-                    break;
-                }
-            }
-        })
-    };
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);
-
-        plainBody = generatePlainBody();
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: plainBody
-        });
-
-        messageStorage.addDraftMessage(message, null, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_with_filter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_with_filter.html
deleted file mode 100755 (executable)
index 80627d2..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_sms_messagesremoved_with_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessagesChangeCallback_sms_messagesremoved_with_filter
-//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - sms, filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}),
-    serviceSuccess, serviceError, messageService, messageStorage, subscriptionIdentifier, filter,
-    matchMessage, mismatchMessage, changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0, updateError;
-
-t.step(function () {
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(subscriptionIdentifier);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_unreached("messagesadded callback invoked.");
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_unreached("updatedMessages callback invoked.");
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_type(removedMessages, "array", "Not an array.");
-            assert_equals(removedMessages.length, 1, "Received incorrect number of messages: " + removedMessages.length);
-            assert_true(removedMessages[0] instanceof tizen.Message, "Not a message.");
-            assert_equals(removedMessages[0].id, matchMessage.id, "Invalid message given to callback");
-            t.done();
-        })
-    };
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            filter = new tizen.AttributeFilter("id", "EXACTLY", matchMessage.id);
-            subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);
-
-            messageStorage.removeMessages([mismatchMessage, matchMessage], null, updateError);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        mismatchMessage = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);
-
-        matchMessage = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_without_filter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_without_filter.html
deleted file mode 100755 (executable)
index b62d8f3..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_sms_messagesremoved_without_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessagesChangeCallback_sms_messagesremoved_without_filter
-//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - sms, no filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, message, changeCallback, addDraftSuccess, addDraftError, removeError, i;
-t.step(function () {
-
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(subscriptionIdentifier);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    changeCallback = {
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_type(removedMessages, "array", "Not an array.");
-            assert_greater_than(removedMessages.length, 0, "Received empty messages array");
-
-            for (i = 0; i < removedMessages.length; i++) {
-                assert_true(removedMessages[i] instanceof tizen.Message, "Not a message.");
-                if (removedMessages[i].id === message.id) {
-                    t.done();
-                    break;
-                }
-            }
-        })
-    };
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);
-
-        messageStorage.removeMessages([message], null, removeError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        message = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_with_filter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_with_filter.html
deleted file mode 100755 (executable)
index 36297e5..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_sms_messagesupdated_with_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessagesChangeCallback_sms_messagesupdated_with_filter
-//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - sms, filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),
-    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),
-    mismatchPlainBodyToSet = currentDate.getTime().toString(),
-    matchMessage, mismatchMessage, changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0,
-    updateError, loadSuccess, loadError;
-t.step(function () {
-
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(subscriptionIdentifier);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    loadSuccess = t.step_func(function (loadedMessage) {
-        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");
-        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");
-        t.done();
-    });
-
-    loadError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    changeCallback = {
-        messagesadded: t.step_func(function (addedMessages) {
-            assert_unreached("messagesadded callback invoked.");
-        }),
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_type(updatedMessages, "array", "Not an array.");
-            assert_equals(updatedMessages.length, 1, "Received incorrect number of messages: " + updatedMessages.length);
-            assert_true(updatedMessages[0] instanceof tizen.Message, "Not a message.");
-            messageService.loadMessageBody(updatedMessages[0], loadSuccess, loadError);
-        }),
-        messagesremoved: t.step_func(function (removedMessages) {
-            assert_unreached("messagesremoved callback invoked.");
-        })
-    };
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        addDraftSuccessCounter++;
-        if (addDraftSuccessCounter === 2) {
-            filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);
-            subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);
-
-            mismatchMessage.body.plainBody = mismatchPlainBodyToSet;
-            matchMessage.body.plainBody = matchPlainBodyToSet;
-
-            messageStorage.updateMessages([mismatchMessage, matchMessage], null, updateError);
-        }
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        mismatchMessage = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);
-
-        matchMessage = new tizen.Message("messaging.sms", {
-            to: [TEST_SMS_RECIPIENT],
-            plainBody: generatePlainBody()
-        });
-        messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_without_filter.html b/common/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_without_filter.html
deleted file mode 100755 (executable)
index 03b41e8..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessagesChangeCallback_sms_messagesupdated_without_filter</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>
-<div id="log"></div>
-<script>
-//==== TEST: MessagesChangeCallback_sms_messagesupdated_without_filter
-//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - sms, no filter
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA CBT CBOA
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    subscriptionIdentifier, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), message, i,
-    changeCallback, initDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },
-    addDraftSuccess, addDraftError, updateError, loadSuccess, loadError;
-
-t.step(function () {
-
-    add_result_callback(function () {
-        try {
-            messageStorage.removeChangeListener(subscriptionIdentifier);
-        } catch (err) {
-            // do nothing in case removeChangeListener throw an exception
-        }
-    });
-
-    loadSuccess = t.step_func(function (loadedMessage) {
-        assert_equals(loadedMessage.body.plainBody, plainBodyToSet, "Incorrect plainBody.");
-        assert_equals(loadedMessage.id, message.id, "Incorrect id.");
-        t.done();
-    });
-
-    loadError = t.step_func(function (error) {
-        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    changeCallback = {
-        messagesupdated: t.step_func(function (updatedMessages) {
-            assert_type(updatedMessages, "array", "Not an array.");
-            assert_greater_than(updatedMessages.length, 0, "Received empty messages array");
-
-            for (i = 0; i < updatedMessages.length; i++) {
-                assert_true(updatedMessages[i] instanceof tizen.Message, "Not a message.");
-                if (updatedMessages[i].id === message.id) {
-                    messageService.loadMessageBody(updatedMessages[i], loadSuccess, loadError);
-                    break;
-                }
-            }
-        })
-    };
-
-    updateError = t.step_func(function (error) {
-        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    addDraftSuccess = t.step_func(function () {
-        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);
-        message.body.plainBody = plainBodyToSet;
-
-        messageStorage.updateMessages([message], null, updateError);
-    });
-
-    addDraftError = t.step_func(function (error) {
-        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        message = new tizen.Message("messaging.sms", initDict);
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices.html b/common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices.html
deleted file mode 100755 (executable)
index c76198b..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_sms_getMessageServices</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_sms_getMessageServices
-//==== LABEL Check if MessageService.getMessageServices method works properly (sms)
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MR MMINA
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, i, returnedValue = null;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value.");
-
-        assert_true(services.length > 0, "Received empty services array");
-
-        for(i = 0; i< services.length; i++) {
-            assert_true("type" in services[i], "Name type doesn't exist in provided object.");
-            assert_equals(services[i].type, "messaging.sms", "Type is not equal sms");
-        }
-        t.done();
-    });
-
-    returnedValue = tizen.messaging.getMessageServices("messaging.sms", serviceSuccess);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 7623845..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_sms_getMessageServices_errorCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_sms_getMessageServices_errorCallback_TypeMismatch
-//==== LABEL Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), conversionTable, exceptionName, serviceSuccess, i, incorrectCallback;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    conversionTable = getTypeConversionExceptions("functionObject", true);
-    for(i = 0; i < conversionTable.length; i++) {
-        incorrectCallback = conversionTable[i][0];
-        exceptionName = conversionTable[i][1];
-
-        assert_throws({name: exceptionName},
-        function () {
-            tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, incorrectCallback);
-        }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
-    }
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 4b102e4..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_sms_getMessageServices_errorCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_sms_getMessageServices_errorCallback_invalid_cb
-//==== LABEL Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", serviceSuccess,
-    incorrectCallback;
-t.step(function () {
-
-    incorrectCallback = {
-        onerror: t.step_func(function () {
-            assert_unreached("getMessageServices() success callback invoked.");
-        })
-    };
-
-    serviceSuccess = t.step_func(function () {
-        assert_unreached("Shouldn't be here");
-    });
-
-    assert_throws({name: exceptionName},
-        function () {
-            tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, incorrectCallback);
-        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html b/common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html
deleted file mode 100755 (executable)
index 150cb2d..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_sms_getMessageServices_successCallback_TypeMismatch</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_sms_getMessageServices_successCallback_TypeMismatch
-//==== LABEL Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), exceptionName, serviceError, i, incorrectCallback, conversionTable;
-t.step(function () {
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    conversionTable = getTypeConversionExceptions("functionObject", false);
-    for(i = 0; i < conversionTable.length; i++) {
-        incorrectCallback = conversionTable[i][0];
-        exceptionName = conversionTable[i][1];
-
-        assert_throws({name: exceptionName},
-        function () {
-            tizen.messaging.getMessageServices("messaging.sms", incorrectCallback, serviceError);
-        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-    }
-
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_invalid_cb.html b/common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_invalid_cb.html
deleted file mode 100755 (executable)
index 13c78b6..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_sms_getMessageServices_successCallback_invalid_cb</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_sms_getMessageServices_successCallback_invalid_cb
-//==== LABEL Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MTCB
-setup({timeout: 90000});
-var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", serviceError, incorrectCallback;
-t.step(function () {
-
-    incorrectCallback = {
-        onsuccess: t.step_func(function () {
-            assert_unreached("getMessageServices() success callback invoked.");
-        })
-    };
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    assert_throws({name: exceptionName},
-        function () {
-            tizen.messaging.getMessageServices("messaging.sms", incorrectCallback, serviceError);
-        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
-    t.done();
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_with_errorCallback.html b/common/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_with_errorCallback.html
deleted file mode 100755 (executable)
index 1fa1230..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-Authors:
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
--->
-<html>
-<head>
-<title>Messaging_sms_getMessageServices_with_errorCallback</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>
-<div id="log"></div>
-<script>
-//==== TEST: Messaging_sms_getMessageServices_with_errorCallback
-//==== LABEL Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)
-//==== PRIORITY P1
-//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== TEST_CRITERIA MR MOA
-//==== ONLOAD_DELAY 90
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, i, returnedValue = null;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_equals(returnedValue, undefined, "Incorrect returned value.");
-
-        assert_true(services.length > 0, "Received empty services array");
-
-        for(i = 0; i< services.length; i++) {
-            assert_true("type" in services[i], "Name type doesn't exist in provided object.");
-            assert_equals(services[i].type, "messaging.sms", "Type is not equal sms");
-        }
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    returnedValue = tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-
-});
-
-</script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/support/getJsonConf.js b/common/tct-messaging-sms-tizen-tests/messaging/support/getJsonConf.js
deleted file mode 100755 (executable)
index 5954938..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-Copyright (c) 2013 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Li, Hao <haox.li@intel.com>
-        Zhongyuan Yuan <zy123.yuan@samsung.com>
-
-*/
-
-var RESOURCE_DIR;
-
-$.ajax({
-  url:"/opt/usr/home/owner/share/TCT_CONFIG",
-  data:{},
-  async:false,
-  success:function(data){
-    var regEx = /DEVICE_SUITE_TARGET_30=(.+)/i;
-    var path = regEx.exec(data);
-    RESOURCE_DIR = path[1];
-  }
-});
-
-$.ajax({
-  url:RESOURCE_DIR + "/tct/preconfigure.json",
-  dataType:"json",
-  data:{},
-  async:false,
-  success:function(data){
-    TEST_SMS_RECIPIENT = data[0]["SMS_RECIPIENT_1"];
-    TEST_SMS_RECIPIENT_2 = data[0]["SMS_RECIPIENT_2"];
-  }
-});
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/support/messaging_common.js b/common/tct-messaging-sms-tizen-tests/messaging/support/messaging_common.js
deleted file mode 100755 (executable)
index 1365df1..0000000
+++ /dev/null
@@ -1,156 +0,0 @@
-/*
-
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-        JungHyuk, Park <junghyuk.park@samsung.com>
-
-*/
-
-var TEST_SMS_RECIPIENT = ""; // this variable MUST be set before executing tests
-var TEST_SMS_RECIPIENT_2 = ""; // this variable MUST be set before executing tests
-
-var TYPE_MISMATCH_ERR  = 'TypeMismatchError';
-var INVALID_VALUES_ERR = 'InvalidValuesError';
-var NOT_FOUND_ERR      = 'NotFoundError';
-var NOT_SUPPORTED_ERR  = 'NotSupportedError';
-var IO_ERR             = 'IOError';
-var UNKNOWN_ERR        = 'UnknownError';
-var EXCEPTION_TYPE = "name";
-
-var SMS_RESEND_LIMIT = 10;
-
-var generatePlainBody = function () {
-    var datetime = new Date().getTime();
-    var count = 0;
-    var plainBody = function(datetime, count) {
-        return "sample plainBody: "+datetime+"-"+count;
-    }
-
-    generatePlainBody = function () {
-        count++;
-        return plainBody(datetime, count);
-    }
-    return plainBody(datetime, count);
-};
-
-function addDraft(t, service, initDict, onSuccess) {
-    var msg, addSuccess, addError, serviceListSuccess, serviceListError;
-
-    addError = t.step_func(function (error) {
-        assert_unreached("failed to add draft: " + error.message);
-    });
-
-    addSuccess = t.step_func(function () {
-        onSuccess(msg);
-    });
-
-    msg = new tizen.Message(service.type, initDict);
-    service.messageStorage.addDraftMessage(msg, addSuccess, addError);
-}
-
-
-function addSMSDraft(t, service, initDict, onSuccess) {
-    addDraft(t, service, initDict, onSuccess);
-}
-
-function removeAllConversations(t, service, onSuccess) {
-    var conversation, findSuccess, findError, removeSuccess, removeError, msgs, typeFilter;
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("failed to remove messages: " + error.message);
-    });
-
-    removeSuccess = t.step_func(function () {
-        onSuccess();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("failed to find messages: " + error.message);
-    });
-
-    findSuccess = t.step_func(function (conversations) {
-        if (conversations.length > 0) {
-            service.messageStorage.removeConversations(conversations, removeSuccess, removeError);
-        } else {
-            onSuccess();
-        }
-    });
-
-    t.step(function () {
-        assert_equals(service.type, "messaging.sms",
-            "Fix your test: unknown service type: " + service.type);
-
-        typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        service.messageStorage.findConversations(typeFilter, findSuccess, findError);
-    });
-}
-
-function removeAllMessages(t, service, onSuccess) {
-    var msg, findSuccess, findError, removeSuccess, removeError, msgs, typeFilter;
-
-    removeError = t.step_func(function (error) {
-        assert_unreached("failed to remove messages: " + error.message);
-    });
-
-    removeSuccess = t.step_func(function () {
-        onSuccess();
-    });
-
-    findError = t.step_func(function (error) {
-        assert_unreached("failed to find messages: " + error.message);
-    });
-
-    findSuccess = t.step_func(function (msgs) {
-        if (msgs.length > 0) {
-            service.messageStorage.removeMessages(msgs, removeSuccess, removeError);
-        } else {
-            onSuccess();
-        }
-    });
-
-    t.step(function () {
-        assert_equals(service.type, "messaging.sms",
-            "Fix your test: unknown service type: " + service.type);
-
-        typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        service.messageStorage.findMessages(typeFilter, findSuccess, findError);
-    });
-}
-
-function sendMessage(t, service, msg, onSuccess, onError) {
-    var sendError, requestSending, resend=0;
-
-    sendError = t.step_func(function (error) {
-        if (resend <= SMS_RESEND_LIMIT) {
-            setTimeout(requestSending, 5000);
-        } else {
-            onError(error);
-        }
-    });
-
-    requestSending = t.step_func(function () {
-        resend++;
-        service.sendMessage(msg, onSuccess, sendError);
-    });
-
-    requestSending();
-}
-
-// change TEST_SMS_RECIPIENT and TEST_SMS_RECIPIENT_2
-document.write('<script src="../webrunner/jquery-1.10.2.min.js"></script>');
-document.write('<script src="support/getJsonConf.js"></script>');
\ No newline at end of file
diff --git a/common/tct-messaging-sms-tizen-tests/messaging/support/unitcommon.js b/common/tct-messaging-sms-tizen-tests/messaging/support/unitcommon.js
deleted file mode 100755 (executable)
index 43cf237..0000000
+++ /dev/null
@@ -1,578 +0,0 @@
-/*
-
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
-
-Authors:
-
- */
-
-
-MIN_BYTE = -128;
-MAX_BYTE = 127;
-MIN_OCTET = 0;
-MAX_OCTET = 255;
-MIN_SHORT = -32768;
-MAX_SHORT = 32767;
-MIN_UNSIGNED_SHORT = 0;
-MAX_UNSIGNED_SHORT = 65535;
-MIN_LONG = -2147483648;
-MAX_LONG = 2147483647;
-MIN_UNSIGNED_LONG = 0;
-MAX_UNSIGNED_LONG = 4294967295;
-MIN_LONG_LONG = -9223372036854775808;
-MAX_LONG_LONG = 9223372036854775807;
-MIN_UNSIGNED_LONG_LONG = 0;
-MAX_UNSIGNED_LONG_LONG = 18446744073709551615;
-
-TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'};
-NOT_FOUND_EXCEPTION = {name: 'NotFoundError'};
-INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'};
-IO_EXCEPTION = {name: 'IOError'};
-SECURITY_EXCEPTION = {name: 'SecurityError'};
-
-
-(function () {
-   var head_src = document.head.innerHTML;
-   if (head_src.search(/\/testharness.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharness.js"></script>\n');
-   }
-   if (head_src.search(/\/testharnessreport.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\n');
-   }
-})();
-
-var _registered_types = {};
-
-function _resolve_registered_type(type) {
-    while (type in _registered_types) {
-        type = _registered_types[type];
-    }
-    return type;
-}
-
-/**
- * Method checks extra argument for none argument method.
- * The only check is that method will not throw an exception.
- * Example usage:
- * checkExtraArgument(tizen.notification, "removeAll");
- *
- * @param object object
- * @param methodName string - name of the method
- */
-function checkExtraArgument(object, methodName) {
-    var extraArgument = [
-        null,
-        undefined,
-        "Tizen",
-        1,
-        false,
-        ["one", "two"],
-        {argument: 1},
-        function () {}
-    ], i;
-
-    for (i = 0; i < extraArgument.length; i++) {
-        object[methodName](extraArgument[i]);
-    }
-}
-
-/**
- * Method to validate conversion.
- * Example usage:
- *   conversionTable = getTypeConversionExceptions("functionObject", true);
- *   for(i = 0; i < conversionTable.length; i++) {
- *       errorCallback = conversionTable[i][0];
- *       exceptionName = conversionTable[i][1];
- *
- *       assert_throws({name : exceptionName},
- *       function () {
- *           tizen.systemsetting.setProperty("HOME_SCREEN",
- *               propertyValue, successCallback, errorCallback);
- *       }, exceptionName + " should be thrown - given incorrect errorCallback.");
- *   }
- *
- * @param conversionType
- * @param isOptional
- * @returns table of tables which contain value (index 0) and exceptionName (index 1)
- *
- */
-function getTypeConversionExceptions(conversionType, isOptional) {
-    var exceptionName = "TypeMismatchError",
-        conversionTable;
-    switch (conversionType) {
-        case "enum":
-            conversionTable = [
-                [undefined, exceptionName],
-                [0, exceptionName],
-                [true, exceptionName],
-                ["dummyInvalidEnumValue", exceptionName],
-                [{ }, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "double":
-            conversionTable = [
-                [undefined, exceptionName],
-                [NaN, exceptionName],
-                [Number.POSITIVE_INFINITY, exceptionName],
-                [Number.NEGATIVE_INFINITY, exceptionName],
-                ["TIZEN", exceptionName],
-                [{ name : "TIZEN" }, exceptionName],
-                [function () { }, exceptionName]
-            ];
-            break;
-        case "object":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "functionObject":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [[], exceptionName],
-                [{ }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "array":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [{ }, exceptionName],
-                [function () { }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "dictionary":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "long":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [[], exceptionName],
-                [{ }, exceptionName],
-                [function () { }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        default:
-            assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
-    };
-
-    return conversionTable;
-}
-
-
-function assert_type(obj, type, description) {
-    var org_type = type, prop_name, prop_type, prop_value;
-
-    type = _resolve_registered_type(type);
-
-    if (typeof (type) === 'string') {
-        type = type.toLowerCase();
-        switch (type) {
-            case 'object':
-            case 'string':
-            case 'number':
-            case 'function':
-            case 'boolean':
-            case 'undefined':
-            case 'xml':
-                assert_equals(typeof (obj), type, description);
-                break;
-            case 'null':
-                assert_true(obj === null, description);
-                break;
-            case 'array':
-                assert_true(Array.isArray(obj), description);
-                break;
-            case 'date':
-                assert_true(obj instanceof Date, description);
-                break;
-            case 'byte':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'octet':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'short':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned short':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'long long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned long long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'double':
-                assert_equals(typeof (obj), 'number', description);
-                break;
-            default:
-                assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
-        }
-    } else if (typeof (type) === 'function') {
-        assert_true(obj instanceof type, description);
-    } else if (typeof (type) === 'object') {
-        for (prop_name in type) {
-            prop_type = type[prop_name];
-            if (prop_type === 'function') {
-                assert_inherits(obj, prop_name);
-                assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
-            } else {
-                assert_own_property(obj, prop_name);
-            }
-        }
-    } else {
-        assert_unreached('Fix your test. Wrong type ' + org_type);
-    }
-}
-
-function register_type(alias, type_spec) {
-    _registered_types[alias] = type_spec;
-}
-
-/**
- * Method to check if attribute is const.
- * Example usage:
- * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
- *
- * @param obj  object to test which  has const attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    var tmp;
-    if (expectedValue === valueToAssign) {
-        assert_unreached("Fix your test. The same values given for "  + attributeName +
-            " in 'value' and 'valueToSet' arguments.");
-    }
-    if (typeof (attributeName) === "string") {
-        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
-        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
-        if (typeof (expectedType) !== "undefined") {
-            if (expectedValue === null) {
-                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
-            } else {
-                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
-            }
-        } else {
-            assert_unreached("Fix your test. Wrong type " + expectedType);
-        }
-        tmp = obj[attributeName];
-        obj[attributeName] = valueToAssign;
-        assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
-    } else {
-        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
-    }
-}
-
-/**
- * Method to check if attribute is readonly.
- * Example usage:
- * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
- *
- * @param obj  object to test which  has readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
-}
-
-/**
- * Method to check if attribute can be set to null.
- * Example usage:
- * check_not_nullable(syncInfo, "mode");
- *
- * @param obj object to test which has not nullable attribute
- * @param attributeName attribute name.
- */
-function check_not_nullable(obj, attributeName)
-{   var old_value = obj[attributeName];
-    obj[attributeName] = null;
-    assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
-    obj[attributeName] = old_value;
-}
-
-/**
- * Method to check NoInterfaceObject
- * Example usage:
- * check_no_interface_object("BluetoothAdapter")
- *
- * @param interfaceName interface name
- */
-function check_no_interface_object(interfaceName) {
-    assert_throws({name: "TypeError"}, function () {
-        tizen[interfaceName]();
-    },"Wrong call as a function");
-    assert_throws({name: "TypeError"}, function () {
-        new tizen[interfaceName]();
-    },"Wrong call as a new function");
-    assert_throws({name: "TypeError"}, function () {
-        ({}) instanceof tizen[interfaceName];
-    },"instanceof exception");
-    assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
-}
-
-
-/**
- * Method to check Constructors
- * Example usage:
- * check_constructor("BluetoothAdapter")
- *
- * @param constructorName constructor name
- */
-
-function check_constructor(constructorName) {
-    assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
-    assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
-    assert_throws({
-        name: "TypeError"
-    }, function () {
-        tizen[constructorName]();
-    }, "Constructor called as function.");
-}
-
-/**
- * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
- * That method also checks if given method exists in a given object.
- * Example usage:
- * check_method_exists(tizen.notification, "get");
- *
- * @param obj object with method
- * @param methodName name of the method to check.
- */
-function check_method_exists(obj, methodName) {
-    assert_type(obj[methodName], 'function', "Method does not exist.");
-}
-
-/**
- * Method to check extensibility of given object.
- * Method checks if new attribute and method can be added.
- * Example usage:
- * check_extensibility(tizen.notification);
- *
- * @param obj object to check
- */
-function check_extensibility(obj) {
-    var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
-    obj.newDummyMethod = function() {
-        return dummyMethodResult;
-    }
-    assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
-
-    obj.newDummyAttribute = dummyAttribute;
-    assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
-}
-
-/**
- * Method to check if attribute can be modify.
- * Example usage:
- * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
- *
- * @param obj  object to test which has not readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    if (expectedValue === valueToAssign) {
-        assert_unreached("Fix your test. The same values given for "  + attributeName +
-            " in 'value' and 'valueToSet' arguments.");
-    }
-    if (typeof (attributeName) === "string") {
-        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
-        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
-        if (typeof (expectedType) !== "undefined") {
-            if (expectedValue === null) {
-                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
-            } else {
-                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
-            }
-        } else {
-            assert_unreached("Fix your test. Wrong type " + expectedType);
-        }
-        obj[attributeName] = valueToAssign;
-        assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
-    } else {
-        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
-    }
-}
-
-/**
- * Method to check if whole array can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_array_assignments(message, "to", false);
- *
- * @param obj object which has the array as its property
- * @param array name of the array to check
- * @param isNullable indicates if the array can be null
- */
-function check_invalid_array_assignments(obj, array, isNullable) {
-    var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
-        val = obj[array], i;
-
-    if (!isNullable) {
-        obj[array] = null;
-        assert_not_equals(obj[array], null, "Non-nullable array was set to null");
-        assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
-        assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
-    }
-
-    for (i = 0 ; i < args.length ; i++) {
-        obj[array] = args[i];
-        assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
-        assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
-    }
-}
-
-/**
- * Method to check if an object can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_object_assignments(message, "body", false);
- *
- * @param parentObj object which has the 'obj' object as its property
- * @param obj name of the object to check
- * @param isNullable indicates if the object can be null
- */
-function check_invalid_obj_assignments(parentObj, obj, isNullable) {
-    var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
-        val = parentObj[obj], i;
-
-    if (!isNullable) {
-        parentObj[obj] = null;
-        assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
-    }
-
-    for (i = 0 ; i < args.length ; i++) {
-        parentObj[obj] = args[i];
-        assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
-    }
-}
-
-/**
- * Method to validate conversion for listeners.
- * Example usage:
- * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
- * for(i = 0; i < incorrectListeners.length; i++) {
- *     packageInformationEventCallback  = incorrectListeners[i][0];
- *     exceptionName = incorrectListeners[i][1];
- *     assert_throws({name : exceptionName},
- *        function () {
- *             tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
- *         }, exceptionName + " should be thrown - given incorrect successCallback.");
- * }
- *
- *
- * @param callbackNames Array with names
- * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
- *
- */
-function getListenerConversionExceptions(callbackNames) {
-    var result = [], conversionTable, i, j, listenerName;
-    conversionTable = getTypeConversionExceptions("functionObject", false);
-
-    for (i = 0; i < callbackNames.length; i++) {
-        for (j = 0; j < conversionTable.length; j++) {
-            listenerName = {};
-            listenerName[callbackNames[i]] = conversionTable[j][0];
-            result.push([listenerName, conversionTable[j][1]]);
-        }
-    }
-
-    return result;
-}
diff --git a/common/tct-messaging-sms-tizen-tests/pack.py b/common/tct-messaging-sms-tizen-tests/pack.py
deleted file mode 100755 (executable)
index f1f0cb4..0000000
+++ /dev/null
@@ -1,1104 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright (c) 2014 Intel Corporation.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# * Redistributions of works must retain the original copyright notice, this
-#   list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the original copyright
-#   notice, this list of conditions and the following disclaimer in the
-#   documentation and/or other materials provided with the distribution.
-# * Neither the name of Intel Corporation nor the names of its contributors
-#   may be used to endorse or promote products derived from this work without
-#   specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# Authors:
-#         Fan, Yugang <yugang.fan@intel.com>
-
-import os
-import shutil
-import glob
-import time
-import sys
-import stat
-import random
-import json
-import logging
-import zipfile
-import signal
-import subprocess
-import imp
-from optparse import OptionParser
-
-imp.reload(sys)
-
-TOOL_VERSION = "v0.1"
-VERSION_FILE = "VERSION"
-DEFAULT_CMD_TIMEOUT = 600
-PKG_TYPES = ["apk", "xpk", "wgt", "apk-aio", "cordova-aio", "cordova", "embeddingapi"]
-PKG_MODES = ["shared", "embedded"]
-PKG_ARCHS = ["x86", "arm"]
-PKG_BLACK_LIST = []
-PKG_NAME = None
-BUILD_PARAMETERS = None
-BUILD_ROOT = None
-BUILD_ROOT_SRC = None
-BUILD_ROOT_SRC_PKG = None
-BUILD_ROOT_SRC_PKG_APP = None
-BUILD_ROOT_SRC_SUB_APP = None
-BUILD_ROOT_PKG = None
-BUILD_ROOT_PKG_APP = None
-LOG = None
-LOG_LEVEL = logging.DEBUG
-
-
-class ColorFormatter(logging.Formatter):
-
-    def __init__(self, msg):
-        logging.Formatter.__init__(self, msg)
-
-    def format(self, record):
-        red, green, yellow, blue = range(4)
-        colors = {'INFO': green, 'DEBUG': blue,
-                  'WARNING': yellow, 'ERROR': red}
-        msg = record.msg
-        if msg[0] == "+":
-            msg = "\33[01m" + msg[1:] + "\033[0m"
-        elif msg[0] == "=":
-            msg = "\33[07m" + msg + "\033[0m"
-        levelname = record.levelname
-        if levelname in colors:
-            msg_color = "\033[0;%dm" % (
-                31 + colors[levelname]) + msg + "\033[0m"
-            record.msg = msg_color
-
-        return logging.Formatter.format(self, record)
-
-
-def pidExists(pid):
-    if pid < 0:
-        return False
-    try:
-        os.kill(pid, 0)
-    except OSError:
-        return False
-    else:
-        return True
-
-
-def isWindows():
-    return sys.platform == "cygwin" or sys.platform.startswith("win")
-
-
-def killProcesses(ppid=None):
-    if isWindows():
-        subprocess.check_call("TASKKILL /F /PID %s /T" % ppid)
-    else:
-        ppid = str(ppid)
-        pidgrp = []
-
-        def GetChildPids(ppid):
-            command = "ps -ef | awk '{if ($3 ==%s) print $2;}'" % str(ppid)
-            pids = os.popen(command).read()
-            pids = pids.split()
-            return pids
-
-        pidgrp.extend(GetChildPids(ppid))
-        for pid in pidgrp:
-            pidgrp.extend(GetChildPids(pid))
-
-        pidgrp.insert(0, ppid)
-        while len(pidgrp) > 0:
-            pid = pidgrp.pop()
-            try:
-                os.kill(int(pid), signal.SIGKILL)
-                return True
-            except OSError:
-                try:
-                    os.popen("kill -9 %d" % int(pid))
-                    return True
-                except Exception:
-                    return False
-
-
-def safelyGetValue(origin_json=None, key=None):
-    if origin_json and key and key in origin_json:
-        return origin_json[key]
-    return None
-
-
-def checkContains(origin_str=None, key_str=None):
-    if origin_str.upper().find(key_str.upper()) >= 0:
-        return True
-    return False
-
-
-def getRandomStr():
-    str_pool = list("abcdefghijklmnopqrstuvwxyz1234567890")
-    random_str = ""
-    for i in range(15):
-        index = random.randint(0, len(str_pool) - 1)
-        random_str = random_str + str_pool[index]
-
-    return random_str
-
-
-def zipDir(dir_path, zip_file):
-    try:
-        if os.path.exists(zip_file):
-            if not doRemove([zip_file]):
-                return False
-        if not os.path.exists(os.path.dirname(zip_file)):
-            os.makedirs(os.path.dirname(zip_file))
-        z_file = zipfile.ZipFile(zip_file, "w")
-        orig_dir = os.getcwd()
-        os.chdir(dir_path)
-        for root, dirs, files in os.walk("."):
-            for i_file in files:
-                LOG.info("zip %s" % os.path.join(root, i_file))
-                z_file.write(os.path.join(root, i_file))
-        z_file.close()
-        os.chdir(orig_dir)
-    except Exception as e:
-        LOG.error("Fail to pack %s to %s: %s" % (dir_path, zip_file, e))
-        return False
-    LOG.info("Done to zip %s to %s" % (dir_path, zip_file))
-    return True
-
-
-def overwriteCopy(src, dest, symlinks=False, ignore=None):
-    if not os.path.exists(dest):
-        os.makedirs(dest)
-        shutil.copystat(src, dest)
-    sub_list = os.listdir(src)
-    if ignore:
-        excl = ignore(src, sub_list)
-        sub_list = [x for x in sub_list if x not in excl]
-    for i_sub in sub_list:
-        s_path = os.path.join(src, i_sub)
-        d_path = os.path.join(dest, i_sub)
-        if symlinks and os.path.islink(s_path):
-            if os.path.lexists(d_path):
-                os.remove(d_path)
-            os.symlink(os.readlink(s_path), d_path)
-            try:
-                s_path_s = os.lstat(s_path)
-                s_path_mode = stat.S_IMODE(s_path_s.st_mode)
-                os.lchmod(d_path, s_path_mode)
-            except Exception:
-                pass
-        elif os.path.isdir(s_path):
-            overwriteCopy(s_path, d_path, symlinks, ignore)
-        else:
-            shutil.copy2(s_path, d_path)
-
-
-def doCopy(src_item=None, dest_item=None):
-    LOG.info("Copying %s to %s" % (src_item, dest_item))
-    try:
-        if os.path.isdir(src_item):
-            overwriteCopy(src_item, dest_item, symlinks=True)
-        else:
-            if not os.path.exists(os.path.dirname(dest_item)):
-                LOG.info("Create non-existent dir: %s" %
-                         os.path.dirname(dest_item))
-                os.makedirs(os.path.dirname(dest_item))
-            shutil.copy2(src_item, dest_item)
-    except Exception as e:
-        LOG.error("Fail to copy file %s: %s" % (src_item, e))
-        return False
-
-    return True
-
-
-def doRemove(target_file_list=None):
-    for i_file in target_file_list:
-        LOG.info("Removing %s" % i_file)
-        try:
-            if os.path.isdir(i_file):
-                shutil.rmtree(i_file)
-            else:
-                os.remove(i_file)
-        except Exception as e:
-            LOG.error("Fail to remove file %s: %s" % (i_file, e))
-            return False
-    return True
-
-
-def updateCopylistPrefix(src_default, dest_default, src_sub, dest_sub):
-    src_new = ""
-    dest_new = ""
-    PACK_TOOL_TAG = "PACK-TOOL-ROOT"
-
-    if src_sub[0:len(PACK_TOOL_TAG)] == PACK_TOOL_TAG:
-        src_new = src_sub.replace(PACK_TOOL_TAG, BUILD_PARAMETERS.pkgpacktools)
-    else:
-        src_new = os.path.join(src_default, src_sub)
-
-    if dest_sub[0:len(PACK_TOOL_TAG)] == PACK_TOOL_TAG:
-        dest_new = dest_sub.replace(PACK_TOOL_TAG, BUILD_ROOT)
-    else:
-        dest_new = os.path.join(dest_default, dest_sub)
-
-    return (src_new, dest_new)
-
-
-def buildSRC(src=None, dest=None, build_json=None):
-    if not os.path.exists(src):
-        LOG.info("+Src dir does not exist, skip build src process ...")
-        return True
-    if not doCopy(src, dest):
-        return False
-    if "blacklist" in build_json:
-        if build_json["blacklist"].count("") > 0:
-            build_json["blacklist"].remove("")
-        black_file_list = []
-        for i_black in build_json["blacklist"]:
-            black_file_list = black_file_list + \
-                glob.glob(os.path.join(dest, i_black))
-
-        black_file_list = list(set(black_file_list))
-        if not doRemove(black_file_list):
-            return False
-
-    if "copylist" in build_json:
-        for i_s_key in build_json["copylist"].keys():
-            if i_s_key and build_json["copylist"][i_s_key]:
-                (src_updated, dest_updated) = updateCopylistPrefix(
-                    src, dest, i_s_key, build_json["copylist"][i_s_key])
-                if not doCopy(src_updated, dest_updated):
-                    return False
-
-    return True
-
-
-def exitHandler(return_code=1):
-    LOG.info("+Cleaning build root folder ...")
-    if not BUILD_PARAMETERS.bnotclean and os.path.exists(BUILD_ROOT):
-        if not doRemove([BUILD_ROOT]):
-            LOG.error("Fail to clean build root, exit ...")
-            sys.exit(1)
-
-    if return_code == 0:
-        LOG.info("================ DONE ================")
-    else:
-        LOG.error(
-            "================ Found Something Wrong !!! ================")
-    sys.exit(return_code)
-
-
-def prepareBuildRoot():
-    LOG.info("+Preparing build root folder ...")
-    global BUILD_ROOT
-    global BUILD_ROOT_SRC
-    global BUILD_ROOT_SRC_PKG
-    global BUILD_ROOT_SRC_PKG_APP
-    global BUILD_ROOT_SRC_SUB_APP
-    global BUILD_ROOT_PKG
-    global BUILD_ROOT_PKG_APP
-
-    while True:
-        BUILD_ROOT = os.path.join("/tmp", getRandomStr())
-        if os.path.exists(BUILD_ROOT):
-            continue
-        else:
-            break
-
-    BUILD_ROOT_SRC = os.path.join(BUILD_ROOT, PKG_NAME)
-    BUILD_ROOT_SRC_PKG = os.path.join(BUILD_ROOT, "pkg")
-    BUILD_ROOT_SRC_PKG_APP = os.path.join(BUILD_ROOT, "pkg-app")
-    BUILD_ROOT_SRC_SUB_APP = os.path.join(BUILD_ROOT, "sub-app")
-    BUILD_ROOT_PKG = os.path.join(BUILD_ROOT, "pkg", "opt", PKG_NAME)
-    BUILD_ROOT_PKG_APP = os.path.join(BUILD_ROOT, "pkg-app", "opt", PKG_NAME)
-
-    if not doCopy(BUILD_PARAMETERS.srcdir, BUILD_ROOT_SRC):
-        return False
-    if not doRemove(
-            glob.glob(os.path.join(BUILD_ROOT_SRC, "%s*.zip" % PKG_NAME))):
-        return False
-
-    return True
-
-
-def doCMD(cmd, time_out=DEFAULT_CMD_TIMEOUT, no_check_return=False):
-    LOG.info("Doing CMD: [ %s ]" % cmd)
-    pre_time = time.time()
-    cmd_proc = subprocess.Popen(args=cmd, shell=True)
-    while True:
-        cmd_exit_code = cmd_proc.poll()
-        elapsed_time = time.time() - pre_time
-        if cmd_exit_code is None:
-            if elapsed_time >= time_out:
-                killProcesses(ppid=cmd_proc.pid)
-                LOG.error("Timeout to exe CMD")
-                return False
-        else:
-            if not no_check_return and cmd_exit_code != 0:
-                LOG.error("Fail to exe CMD")
-                return False
-            break
-        time.sleep(2)
-    return True
-
-
-def doCMDWithOutput(cmd, time_out=DEFAULT_CMD_TIMEOUT):
-    LOG.info("Doing CMD: [ %s ]" % cmd)
-    pre_time = time.time()
-    output = []
-    cmd_return_code = 1
-    cmd_proc = subprocess.Popen(
-        cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)
-
-    while True:
-        output_line = cmd_proc.stdout.readline().decode("UTF-8").strip("\r\n")
-        cmd_return_code = cmd_proc.poll()
-        elapsed_time = time.time() - pre_time
-        if cmd_return_code is None:
-            if elapsed_time >= time_out:
-                killProcesses(ppid=cmd_proc.pid)
-                LOG.error("Timeout to exe CMD")
-                return False
-        elif output_line == '' and cmd_return_code is not None:
-            break
-
-        sys.stdout.write("%s\n" % output_line)
-        sys.stdout.flush()
-        output.append(output_line)
-    if cmd_return_code != 0:
-        LOG.error("Fail to exe CMD")
-
-    return (cmd_return_code, output)
-
-
-def packXPK(build_json=None, app_src=None, app_dest=None, app_name=None):
-    pack_tool = os.path.join(BUILD_ROOT, "make_xpk.py")
-    if not os.path.exists(pack_tool):
-        if not doCopy(
-                os.path.join(BUILD_PARAMETERS.pkgpacktools, "make_xpk.py"),
-                pack_tool):
-            return False
-    orig_dir = os.getcwd()
-    os.chdir(BUILD_ROOT)
-    if os.path.exists("key.file"):
-        if not doRemove(["key.file"]):
-            os.chdir(orig_dir)
-            return False
-
-    key_file = safelyGetValue(build_json, "key-file")
-    if key_file == "key.file":
-        LOG.error(
-            "\"key.file\" is reserved name for default key file, "
-            "pls change the key file name ...")
-        os.chdir(orig_dir)
-        return False
-    if key_file:
-        pack_cmd = "python make_xpk.py %s %s -o %s" % (
-            app_src, key_file, os.path.join(app_dest, "%s.xpk" % app_name))
-    else:
-        pack_cmd = "python make_xpk.py %s key.file -o %s" % (
-            app_src, os.path.join(app_dest, "%s.xpk" % app_name))
-    if not doCMD(pack_cmd, DEFAULT_CMD_TIMEOUT):
-        os.chdir(orig_dir)
-        return False
-
-    os.chdir(orig_dir)
-    return True
-
-
-def packWGT(build_json=None, app_src=None, app_dest=None, app_name=None):
-    if not zipDir(app_src, os.path.join(app_dest, "%s.wgt" % app_name)):
-        return False
-
-    if BUILD_PARAMETERS.signature == True:
-        if safelyGetValue(build_json, "sign-flag") == "true":
-            if not os.path.exists(os.path.join(BUILD_ROOT, "signing")):
-                if not doCopy(
-                        os.path.join(BUILD_PARAMETERS.pkgpacktools, "signing"),
-                        os.path.join(BUILD_ROOT, "signing")):
-                    return False
-            signing_cmd = "%s --dist platform %s" % (
-                os.path.join(BUILD_ROOT, "signing", "sign-widget.sh"),
-                os.path.join(app_dest, "%s.wgt" % app_name))
-            if not doCMD(signing_cmd, DEFAULT_CMD_TIMEOUT):
-                return False
-
-    return True
-
-
-def packAPK(build_json=None, app_src=None, app_dest=None, app_name=None):
-    app_name = app_name.replace("-", "_")
-
-    if not os.path.exists(os.path.join(BUILD_ROOT, "crosswalk")):
-        if not doCopy(
-                os.path.join(BUILD_PARAMETERS.pkgpacktools, "crosswalk"),
-                os.path.join(BUILD_ROOT, "crosswalk")):
-            return False
-
-    files = glob.glob(os.path.join(BUILD_ROOT, "crosswalk", "*.apk"))
-    if files:
-        if not doRemove(files):
-            return False
-
-    ext_opt = ""
-    cmd_opt = ""
-    url_opt = ""
-    mode_opt = ""
-    arch_opt = ""
-    icon_opt = ""
-
-    common_opts = safelyGetValue(build_json, "apk-common-opts")
-    if common_opts is None:
-        common_opts = ""
-
-    tmp_opt = safelyGetValue(build_json, "apk-ext-opt")
-    if tmp_opt:
-        ext_opt = "--extensions='%s'" % os.path.join(BUILD_ROOT_SRC, tmp_opt)
-
-    tmp_opt = safelyGetValue(build_json, "apk-cmd-opt")
-    if tmp_opt:
-        cmd_opt = "--xwalk-command-line='%s'" % tmp_opt
-
-    tmp_opt = safelyGetValue(build_json, "apk-url-opt")
-    if tmp_opt:
-        url_opt = "--app-url='%s'" % tmp_opt
-
-    tmp_opt = safelyGetValue(build_json, "apk-mode-opt")
-    if tmp_opt:
-        if tmp_opt in PKG_MODES:
-            mode_opt = "--mode=%s" % tmp_opt
-        else:
-            LOG.error("Got wrong app mode: %s" % tmp_opt)
-            return False
-    else:
-        mode_opt = "--mode=%s" % BUILD_PARAMETERS.pkgmode
-
-    tmp_opt = safelyGetValue(build_json, "apk-arch-opt")
-    if tmp_opt:
-        if tmp_opt in PKG_ARCHS:
-            arch_opt = "--arch=%s" % tmp_opt
-        else:
-            LOG.error("Got wrong app arch: %s" % tmp_opt)
-            return False
-    else:
-        arch_opt = "--arch=%s" % BUILD_PARAMETERS.pkgarch
-
-    tmp_opt = safelyGetValue(build_json, "apk-icon-opt")
-    if tmp_opt:
-        icon_opt = "--icon=%s" % tmp_opt
-    elif tmp_opt == "":
-        icon_opt = ""
-    else:
-        icon_opt = "--icon=%s/icon.png" % app_src
-
-    if safelyGetValue(build_json, "apk-type") == "MANIFEST":
-        pack_cmd = "python make_apk.py --package=org.xwalk.%s " \
-            "--manifest=%s/manifest.json  %s %s %s %s %s" % (
-                app_name, app_src, mode_opt, arch_opt,
-                ext_opt, cmd_opt, common_opts)
-    elif safelyGetValue(build_json, "apk-type") == "HOSTEDAPP":
-        if not url_opt:
-            LOG.error(
-                "Fail to find the key \"apk-url-opt\" for hosted APP packing")
-            return False
-        pack_cmd = "python make_apk.py --package=org.xwalk.%s --name=%s %s " \
-                   "%s %s %s %s %s" % (
-                       app_name, app_name, mode_opt, arch_opt, ext_opt,
-                       cmd_opt, url_opt, common_opts)
-    else:
-        pack_cmd = "python make_apk.py --package=org.xwalk.%s --name=%s " \
-                   "--app-root=%s --app-local-path=index.html %s %s " \
-                   "%s %s %s %s" % (
-                       app_name, app_name, app_src, icon_opt, mode_opt,
-                       arch_opt, ext_opt, cmd_opt, common_opts)
-
-    orig_dir = os.getcwd()
-    os.chdir(os.path.join(BUILD_ROOT, "crosswalk"))
-    if not doCMD(pack_cmd, DEFAULT_CMD_TIMEOUT):
-        os.chdir(orig_dir)
-        return False
-
-    files = glob.glob(os.path.join(BUILD_ROOT, "crosswalk", "*.apk"))
-    if files:
-        if not doCopy(files[0], os.path.join(app_dest, "%s.apk" % app_name)):
-            os.chdir(orig_dir)
-            return False
-    else:
-        LOG.error("Fail to find the apk file")
-        os.chdir(orig_dir)
-        return False
-
-    os.chdir(orig_dir)
-    return True
-
-
-def packCordova(build_json=None, app_src=None, app_dest=None, app_name=None):
-    pack_tool = os.path.join(BUILD_ROOT, "cordova")
-    app_name = app_name.replace("-", "_")
-    if not os.path.exists(pack_tool):
-        if not doCopy(
-                os.path.join(BUILD_PARAMETERS.pkgpacktools, "cordova"),
-                pack_tool):
-            return False
-
-    plugin_tool = os.path.join(BUILD_ROOT, "cordova_plugins")
-    if not os.path.exists(plugin_tool):
-        if not doCopy(
-                os.path.join(BUILD_PARAMETERS.pkgpacktools, "cordova_plugins"),
-                plugin_tool):
-            return False
-
-    orig_dir = os.getcwd()
-    os.chdir(pack_tool)
-    pack_cmd = "bin/create %s org.xwalk.%s %s" % (
-        app_name, app_name, app_name)
-    if not doCMD(pack_cmd, DEFAULT_CMD_TIMEOUT):
-        os.chdir(orig_dir)
-        return False
-
-    os.chdir(os.path.join(pack_tool, app_name))
-    plugin_dirs = os.listdir(plugin_tool)
-    for i_dir in plugin_dirs:
-        i_plugin_dir = os.path.join(plugin_tool, i_dir)
-        plugin_install_cmd = "plugman install --platform android --project " \
-                             "./ --plugin %s" % i_plugin_dir
-        if not doCMD(plugin_install_cmd, DEFAULT_CMD_TIMEOUT):
-            os.chdir(orig_dir)
-            return False
-    os.chdir(pack_tool)
-
-    if not doCopy(app_src, os.path.join(pack_tool, app_name, "assets", "www")):
-        os.chdir(orig_dir)
-        return False
-    os.chdir(os.path.join(BUILD_ROOT, "cordova", app_name))
-    pack_cmd = "./cordova/build"
-    if not doCMD(pack_cmd, DEFAULT_CMD_TIMEOUT):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(os.path.join(
-            BUILD_ROOT, "cordova", app_name, "bin", "%s-debug.apk" %
-            app_name),
-            os.path.join(app_dest, "%s.apk" % app_name)):
-        os.chdir(orig_dir)
-        return False
-    os.chdir(orig_dir)
-    return True
-
-
-def packEmbeddingAPI(
-        build_json=None, app_src=None, app_dest=None, app_name=None):
-    app_name = app_name.replace("-", "_")
-
-    library_dir_name = safelyGetValue(build_json, "embeddingapi-library-name")
-    if not library_dir_name:
-        LOG.error("Fail to get embeddingapi-library-name ...")
-        return False
-
-    new_library_dir_name = "core_library"
-    pack_tool = os.path.join(app_src, "..", new_library_dir_name)
-
-    if os.path.exists(pack_tool):
-        if not doRemove([pack_tool]):
-            return False
-
-    if not doCopy(
-            os.path.join(BUILD_PARAMETERS.pkgpacktools, library_dir_name),
-            pack_tool):
-        return False
-
-    if os.path.exists(os.path.join(pack_tool, "bin", "res", "crunch")):
-        if not doRemove([os.path.join(pack_tool, "bin", "res", "crunch")]):
-            return False
-
-    orig_dir = os.getcwd()
-    android_project_path = os.path.join(app_src, "android-project")
-    try:
-        os.makedirs(android_project_path)
-    except Exception as e:
-        LOG.error("Fail to create tmp project dir: %s" % e)
-        return False
-
-    (return_code, output) = doCMDWithOutput("android list target")
-    api_level = ""
-    for line in output:
-        if "API level" in line:
-            api_level = line.split(":")[1].strip()
-            break
-    if not api_level:
-        LOG.error("Fail to get Android API Level")
-        os.chdir(orig_dir)
-        return False
-
-    android_project_cmd = "android create project --name %s --target " \
-                          "android-%s --path %s --package com.%s " \
-                          "--activity MainActivity" % (
-                              app_name, api_level, android_project_path, app_name)
-    if not doCMD(android_project_cmd):
-        os.chdir(orig_dir)
-        return False
-
-    try:
-        update_file = open(
-            os.path.join(android_project_path, "project.properties"), "a+")
-        update_file.writelines(
-            "{0}\n".format(
-                "android.library.reference.1=../%s" %
-                new_library_dir_name))
-        update_file.close()
-    except Exception as e:
-        LOG.error(
-            "Fail to update %s: %s" %
-            (os.path.join(
-                android_project_path,
-                "project.properties"),
-                e))
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(os.path.join(android_project_path, "build.xml"),
-                  os.path.join(app_src, "build.xml")):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(
-            os.path.join(android_project_path, "project.properties"),
-            os.path.join(app_src, "project.properties")):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(
-            os.path.join(android_project_path, "local.properties"),
-            os.path.join(app_src, "local.properties")):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(
-            os.path.join(android_project_path, "local.properties"),
-            os.path.join(pack_tool, "local.properties")):
-        os.chdir(orig_dir)
-        return False
-
-    os.chdir(app_src)
-    if not doCMD("ant debug"):
-        os.chdir(orig_dir)
-        return False
-
-    if not doCopy(
-            os.path.join(app_src, "bin", "%s-debug.apk" % app_name),
-            os.path.join(app_dest, "%s.apk" % app_name)):
-        os.chdir(orig_dir)
-        return False
-    os.chdir(orig_dir)
-    return True
-
-
-def packAPP(build_json=None, app_src=None, app_dest=None, app_name=None):
-    LOG.info("Packing %s(%s)" % (app_name, app_src))
-    if not os.path.exists(app_dest):
-        try:
-            os.makedirs(app_dest)
-        except Exception as e:
-            LOG.error("Fail to init package install dest dir: %s" % e)
-            return False
-
-    if checkContains(BUILD_PARAMETERS.pkgtype, "XPK"):
-        if not packXPK(build_json, app_src, app_dest, app_name):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "WGT"):
-        if not packWGT(build_json, app_src, app_dest, app_name):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "APK"):
-        if not packAPK(build_json, app_src, app_dest, app_name):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "CORDOVA"):
-        if not packCordova(build_json, app_src, app_dest, app_name):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "EMBEDDINGAPI"):
-        if not packEmbeddingAPI(build_json, app_src, app_dest, app_name):
-            return False
-    else:
-        LOG.error("Got wrong pkg type: %s" % BUILD_PARAMETERS.pkgtype)
-        return False
-
-    LOG.info("Success to pack APP: %s" % app_name)
-    return True
-
-
-def createIndexFile(index_file_path=None, hosted_app=None):
-    try:
-        if hosted_app:
-            index_url = "http://127.0.0.1/opt/%s/webrunner/index.html?" \
-                "testsuite=../tests.xml&testprefix=../../.." % PKG_NAME
-        else:
-            index_url = "opt/%s/webrunner/index.html?testsuite=../tests.xml" \
-                        "&testprefix=../../.." % PKG_NAME
-        html_content = "<!doctype html><head><meta http-equiv='Refresh' " \
-                       "content='1; url=%s'></head>" % index_url
-        index_file = open(index_file_path, "w")
-        index_file.write(html_content)
-        index_file.close()
-    except Exception as e:
-        LOG.error("Fail to create index.html for top-app: %s" % e)
-        return False
-    LOG.info("Success to create index file %s" % index_file_path)
-    return True
-
-
-def buildSubAPP(app_dir=None, build_json=None, app_dest_default=None):
-    app_dir_inside = safelyGetValue(build_json, "app-dir")
-    if app_dir_inside:
-        app_dir = app_dir_inside
-    LOG.info("+Building sub APP(s) from %s ..." % app_dir)
-    app_dir = os.path.join(BUILD_ROOT_SRC, app_dir)
-    app_name = safelyGetValue(build_json, "app-name")
-    if not app_name:
-        app_name = os.path.basename(app_dir)
-
-    app_src = os.path.join(BUILD_ROOT_SRC_SUB_APP, app_name)
-    if buildSRC(app_dir, app_src, build_json):
-        app_dest = safelyGetValue(build_json, "install-path")
-        if app_dest:
-            app_dest = os.path.join(app_dest_default, app_dest)
-        else:
-            app_dest = app_dest_default
-
-        if safelyGetValue(build_json, "all-apps") == "true":
-            app_dirs = os.listdir(app_src)
-            apps_num = 0
-            for i_app_dir in app_dirs:
-                if os.path.isdir(os.path.join(app_src, i_app_dir)):
-                    i_app_name = os.path.basename(i_app_dir)
-                    if not packAPP(
-                            build_json, os.path.join(app_src, i_app_name),
-                            app_dest, i_app_name):
-                        return False
-                    else:
-                        apps_num = apps_num + 1
-            if apps_num > 0:
-                LOG.info("Totally packed %d apps in %s" % (apps_num, app_dir))
-                return True
-        else:
-            return packAPP(build_json, app_src, app_dest, app_name)
-    return False
-
-
-def buildPKGAPP(build_json=None):
-    LOG.info("+Building package APP ...")
-    if not doCopy(os.path.join(BUILD_ROOT_SRC, "icon.png"),
-                  os.path.join(BUILD_ROOT_SRC_PKG_APP, "icon.png")):
-        return False
-
-    if checkContains(BUILD_PARAMETERS.pkgtype, "XPK"):
-        if not doCopy(
-                os.path.join(BUILD_ROOT_SRC, "manifest.json"),
-                os.path.join(BUILD_ROOT_SRC_PKG_APP, "manifest.json")):
-            return False
-    elif checkContains(BUILD_PARAMETERS.pkgtype, "WGT"):
-        if not doCopy(os.path.join(BUILD_ROOT_SRC, "config.xml"),
-                      os.path.join(BUILD_ROOT_SRC_PKG_APP, "config.xml")):
-            return False
-
-    hosted_app = False
-    if safelyGetValue(build_json, "hosted-app") == "true":
-        hosted_app = True
-    if not createIndexFile(
-            os.path.join(BUILD_ROOT_SRC_PKG_APP, "index.html"), hosted_app):
-        return False
-
-    if not hosted_app:
-        if "blacklist" not in build_json:
-            build_json.update({"blacklist": []})
-        build_json["blacklist"].extend(PKG_BLACK_LIST)
-        if not buildSRC(BUILD_ROOT_SRC, BUILD_ROOT_PKG_APP, build_json):
-            return False
-
-        if "subapp-list" in build_json:
-            for i_sub_app in build_json["subapp-list"].keys():
-                if not buildSubAPP(
-                        i_sub_app, build_json["subapp-list"][i_sub_app],
-                        BUILD_ROOT_PKG_APP):
-                    return False
-
-    if not packAPP(
-            build_json, BUILD_ROOT_SRC_PKG_APP, BUILD_ROOT_PKG, PKG_NAME):
-        return False
-
-    return True
-
-
-def buildPKG(build_json=None):
-    if "blacklist" not in build_json:
-        build_json.update({"blacklist": []})
-    build_json["blacklist"].extend(PKG_BLACK_LIST)
-    if not buildSRC(BUILD_ROOT_SRC, BUILD_ROOT_PKG, build_json):
-        return False
-
-    if "subapp-list" in build_json:
-        for i_sub_app in build_json["subapp-list"].keys():
-            if not buildSubAPP(
-                    i_sub_app, build_json["subapp-list"][i_sub_app],
-                    BUILD_ROOT_PKG):
-                return False
-
-    if "pkg-app" in build_json:
-        if not buildPKGAPP(build_json["pkg-app"]):
-            return False
-
-    return True
-
-
-def main():
-    global LOG
-    LOG = logging.getLogger("pack-tool")
-    LOG.setLevel(LOG_LEVEL)
-    stream_handler = logging.StreamHandler()
-    stream_handler.setLevel(LOG_LEVEL)
-    stream_formatter = ColorFormatter("[%(asctime)s] %(message)s")
-    stream_handler.setFormatter(stream_formatter)
-    LOG.addHandler(stream_handler)
-
-    try:
-        usage = "Usage: ./pack.py -t apk -m shared -a x86"
-        opts_parser = OptionParser(usage=usage)
-        opts_parser.add_option(
-            "-c",
-            "--cfg",
-            dest="pkgcfg",
-            help="specify the path of config json file")
-        opts_parser.add_option(
-            "-t",
-            "--type",
-            dest="pkgtype",
-            help="specify the pkg type, e.g. apk, xpk, wgt ...")
-        opts_parser.add_option(
-            "-m",
-            "--mode",
-            dest="pkgmode",
-            help="specify the apk mode, e.g. shared, embedded")
-        opts_parser.add_option(
-            "-a",
-            "--arch",
-            dest="pkgarch",
-            help="specify the apk arch, e.g. x86, arm")
-        opts_parser.add_option(
-            "-d",
-            "--dest",
-            dest="destdir",
-            help="specify the installation folder for packed package")
-        opts_parser.add_option(
-            "-s",
-            "--src",
-            dest="srcdir",
-            help="specify the path of pkg resource for packing")
-        opts_parser.add_option(
-            "--tools",
-            dest="pkgpacktools",
-            help="specify the parent folder of pack tools")
-        opts_parser.add_option(
-            "--notclean",
-            dest="bnotclean",
-            action="store_true",
-            help="disable the build root clean after the packing")
-        opts_parser.add_option(
-            "--sign",
-            dest="signature",
-            action="store_true",
-            help="signature operation will be done when packing wgt")
-        opts_parser.add_option(
-            "-v",
-            "--version",
-            dest="bversion",
-            action="store_true",
-            help="show this tool's version")
-        opts_parser.add_option(
-            "--pkg-version",
-            dest="pkgversion",
-            help="specify the pkg version, e.g. 0.0.0.1")
-
-        if len(sys.argv) == 1:
-            sys.argv.append("-h")
-
-        global BUILD_PARAMETERS
-        (BUILD_PARAMETERS, args) = opts_parser.parse_args()
-    except Exception as e:
-        LOG.error("Got wrong options: %s, exit ..." % e)
-        sys.exit(1)
-
-    if BUILD_PARAMETERS.bversion:
-        LOG.info("Version: %s" % TOOL_VERSION)
-        sys.exit(0)
-
-    if not BUILD_PARAMETERS.srcdir:
-        BUILD_PARAMETERS.srcdir = os.getcwd()
-    BUILD_PARAMETERS.srcdir = os.path.expanduser(BUILD_PARAMETERS.srcdir)
-
-    if not os.path.exists(
-            os.path.join(BUILD_PARAMETERS.srcdir, "..", "..", VERSION_FILE)):
-        if not os.path.exists(
-                os.path.join(BUILD_PARAMETERS.srcdir, "..", VERSION_FILE)):
-            if not os.path.exists(
-                    os.path.join(BUILD_PARAMETERS.srcdir, VERSION_FILE)):
-                LOG.info(
-                    "Not found pkg version file, try to use option --pkg-version")
-                pkg_version_file_path = None
-            else:
-                pkg_version_file_path = os.path.join(
-                    BUILD_PARAMETERS.srcdir, VERSION_FILE)
-        else:
-            pkg_version_file_path = os.path.join(
-                BUILD_PARAMETERS.srcdir, "..", VERSION_FILE)
-    else:
-        pkg_version_file_path = os.path.join(
-            BUILD_PARAMETERS.srcdir, "..", "..", VERSION_FILE)
-
-    try:
-        pkg_main_version = 0
-        pkg_release_version = 0
-        if BUILD_PARAMETERS.pkgversion:
-            LOG.info("Using %s as pkg version " % BUILD_PARAMETERS.pkgversion)
-            pkg_main_version = BUILD_PARAMETERS.pkgversion
-        else:
-            if pkg_version_file_path is not None:
-                LOG.info("Using pkg version file: %s" % pkg_version_file_path)
-                with open(pkg_version_file_path, "rt") as pkg_version_file:
-                    pkg_version_raw = pkg_version_file.read()
-                    pkg_version_file.close()
-                    pkg_version_json = json.loads(pkg_version_raw)
-                    pkg_main_version = pkg_version_json["main-version"]
-                    pkg_release_version = pkg_version_json["release-version"]
-    except Exception as e:
-        LOG.error("Fail to read pkg version file: %s, exit ..." % e)
-        sys.exit(1)
-
-    if not BUILD_PARAMETERS.pkgtype:
-        LOG.error("No pkg type provided, exit ...")
-        sys.exit(1)
-    elif not BUILD_PARAMETERS.pkgtype in PKG_TYPES:
-        LOG.error("Wrong pkg type, only support: %s, exit ..." %
-                  PKG_TYPES)
-        sys.exit(1)
-
-    if BUILD_PARAMETERS.pkgtype == "apk" or \
-       BUILD_PARAMETERS.pkgtype == "apk-aio":
-        if not BUILD_PARAMETERS.pkgmode:
-            LOG.error("No pkg mode option provided, exit ...")
-            sys.exit(1)
-        elif not BUILD_PARAMETERS.pkgmode in PKG_MODES:
-            LOG.error(
-                "Wrong pkg mode option provided, only support:%s, exit ..." %
-                PKG_MODES)
-            sys.exit(1)
-
-        if not BUILD_PARAMETERS.pkgarch:
-            LOG.error("No pkg arch option provided, exit ...")
-            sys.exit(1)
-        elif not BUILD_PARAMETERS.pkgarch in PKG_ARCHS:
-            LOG.error(
-                "Wrong pkg arch option provided, only support:%s, exit ..." %
-                PKG_ARCHS)
-            sys.exit(1)
-
-    if BUILD_PARAMETERS.pkgtype == "apk-aio" or \
-       BUILD_PARAMETERS.pkgtype == "cordova-aio":
-        if not BUILD_PARAMETERS.destdir or not os.path.exists(
-                BUILD_PARAMETERS.destdir):
-            LOG.error("No all-in-one installation dest dir found, exit ...")
-            sys.exit(1)
-
-    elif not BUILD_PARAMETERS.destdir:
-        BUILD_PARAMETERS.destdir = BUILD_PARAMETERS.srcdir
-    BUILD_PARAMETERS.destdir = os.path.expanduser(BUILD_PARAMETERS.destdir)
-
-    if not BUILD_PARAMETERS.pkgpacktools:
-        BUILD_PARAMETERS.pkgpacktools = os.path.join(
-            BUILD_PARAMETERS.srcdir, "..", "..", "..", "tools")
-    BUILD_PARAMETERS.pkgpacktools = os.path.expanduser(
-        BUILD_PARAMETERS.pkgpacktools)
-
-    config_json = None
-    if BUILD_PARAMETERS.pkgcfg:
-        config_json_file_path = BUILD_PARAMETERS.pkgcfg
-    else:
-        config_json_file_path = os.path.join(
-            BUILD_PARAMETERS.srcdir, "suite.json")
-    try:
-        LOG.info("Using config json file: %s" % config_json_file_path)
-        with open(config_json_file_path, "rt") as config_json_file:
-            config_raw = config_json_file.read()
-            config_json_file.close()
-            config_json = json.loads(config_raw)
-    except Exception as e:
-        LOG.error("Fail to read config json file: %s, exit ..." % e)
-        sys.exit(1)
-
-    global PKG_NAME
-    PKG_NAME = safelyGetValue(config_json, "pkg-name")
-    if not PKG_NAME:
-        PKG_NAME = os.path.basename(BUILD_PARAMETERS.srcdir)
-        LOG.warning(
-            "Fail to read pkg name from json, "
-            "using src dir name as pkg name ...")
-
-    LOG.info("================= %s (%s-%s) ================" %
-             (PKG_NAME, pkg_main_version, pkg_release_version))
-
-    if not safelyGetValue(config_json, "pkg-list"):
-        LOG.error("Fail to read pkg-list, exit ...")
-        sys.exit(1)
-
-    pkg_json = None
-    for i_pkg in config_json["pkg-list"].keys():
-        i_pkg_list = i_pkg.replace(" ", "").split(",")
-        if BUILD_PARAMETERS.pkgtype in i_pkg_list:
-            pkg_json = config_json["pkg-list"][i_pkg]
-
-    if not pkg_json:
-        LOG.error("Fail to read pkg json, exit ...")
-        sys.exit(1)
-
-    if not prepareBuildRoot():
-        exitHandler(1)
-
-    if "pkg-blacklist" in config_json:
-        PKG_BLACK_LIST.extend(config_json["pkg-blacklist"])
-
-    if not buildPKG(pkg_json):
-        exitHandler(1)
-
-    LOG.info("+Building package ...")
-    if BUILD_PARAMETERS.pkgtype == "apk-aio" or \
-       BUILD_PARAMETERS.pkgtype == "cordova-aio":
-        pkg_file_list = os.listdir(os.path.join(BUILD_ROOT, "pkg"))
-        for i_file in pkg_file_list:
-            if not doCopy(
-                    os.path.join(BUILD_ROOT, "pkg", i_file),
-                    os.path.join(BUILD_PARAMETERS.destdir, i_file)):
-                exitHandler(1)
-    else:
-        pkg_file = os.path.join(
-            BUILD_PARAMETERS.destdir,
-            "%s-%s.%s.zip" %
-            (PKG_NAME,
-             pkg_main_version,
-             pkg_release_version))
-             
-
-        if not zipDir(os.path.join(BUILD_ROOT, "pkg"), pkg_file):
-            exitHandler(1)
-
-if __name__ == "__main__":
-    main()
-    exitHandler(0)
diff --git a/common/tct-messaging-sms-tizen-tests/resources/COPYING b/common/tct-messaging-sms-tizen-tests/resources/COPYING
deleted file mode 100755 (executable)
index fd96395..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-All test files under this folder except COPYING come from
-https://github.com/w3c/testharness.js (commit 81649066b179216eed02dfb58f631eb8bb6c7629)
-without any modification besides the necessary adjustment on reference path to test harness
-
-These tests are copyright by W3C and/or the author listed in the test
-file. The tests are dual-licensed under the W3C Test Suite License:
-http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
-and the BSD 3-clause License:
-http://www.w3.org/Consortium/Legal/2008/03-bsd-license
-under W3C's test suite licensing policy:
-http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
-
diff --git a/common/tct-messaging-sms-tizen-tests/resources/testharness.css b/common/tct-messaging-sms-tizen-tests/resources/testharness.css
deleted file mode 100755 (executable)
index 3967004..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-html {
-    font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;
-}
-
-#log .warning,
-#log .warning a {
-  color: black;
-  background: yellow;
-}
-
-#log .error,
-#log .error a {
-  color: white;
-  background: red;
-}
-
-#log pre {
-  border: 1px solid black;
-  padding: 1em;
-}
-
-section#summary {
-    margin-bottom:1em;
-}
-
-table#results {
-    border-collapse:collapse;
-    table-layout:fixed;
-    width:100%;
-}
-
-table#results th:first-child,
-table#results td:first-child {
-    width:4em;
-}
-
-table#results th:last-child,
-table#results td:last-child {
-    width:50%;
-}
-
-table#results.assertions th:last-child,
-table#results.assertions td:last-child {
-    width:35%;
-}
-
-table#results th {
-    padding:0;
-    padding-bottom:0.5em;
-    border-bottom:medium solid black;
-}
-
-table#results td {
-    padding:1em;
-    padding-bottom:0.5em;
-    border-bottom:thin solid black;
-}
-
-tr.pass > td:first-child {
-    color:green;
-}
-
-tr.fail > td:first-child {
-    color:red;
-}
-
-tr.timeout > td:first-child {
-    color:red;
-}
-
-tr.notrun > td:first-child {
-    color:blue;
-}
-
-.pass > td:first-child, .fail > td:first-child, .timeout > td:first-child, .notrun > td:first-child {
-    font-variant:small-caps;
-}
-
-table#results span {
-    display:block;
-}
-
-table#results span.expected {
-    font-family:DejaVu Sans Mono, Bitstream Vera Sans Mono, Monospace;
-    white-space:pre;
-}
-
-table#results span.actual {
-    font-family:DejaVu Sans Mono, Bitstream Vera Sans Mono, Monospace;
-    white-space:pre;
-}
-
-span.ok {
-    color:green;
-}
-
-tr.error {
-    color:red;
-}
-
-span.timeout {
-    color:red;
-}
-
-span.ok, span.timeout, span.error {
-    font-variant:small-caps;
-}
\ No newline at end of file
diff --git a/common/tct-messaging-sms-tizen-tests/resources/testharness.js b/common/tct-messaging-sms-tizen-tests/resources/testharness.js
deleted file mode 100755 (executable)
index 9a6a779..0000000
+++ /dev/null
@@ -1,2353 +0,0 @@
-/*global self*/
-/*jshint latedef: nofunc*/
-/*
-Distributed under both the W3C Test Suite License [1] and the W3C
-3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
-policies and contribution forms [3].
-
-[1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
-[2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license
-[3] http://www.w3.org/2004/10/27-testcases
-*/
-
-/* Documentation is in docs/api.md */
-
-(function ()
-{
-    var debug = false;
-    // default timeout is 10 seconds, test can override if needed
-    var settings = {
-        output:true,
-        harness_timeout:{
-            "normal":90000,
-            "long":90000
-        },
-        test_timeout:null
-    };
-
-    var xhtml_ns = "http://www.w3.org/1999/xhtml";
-
-    /*
-     * TestEnvironment is an abstraction for the environment in which the test
-     * harness is used. Each implementation of a test environment has to provide
-     * the following interface:
-     *
-     * interface TestEnvironment {
-     *   // Invoked after the global 'tests' object has been created and it's
-     *   // safe to call add_*_callback() to register event handlers.
-     *   void on_tests_ready();
-     *
-     *   // Invoked after setup() has been called to notify the test environment
-     *   // of changes to the test harness properties.
-     *   void on_new_harness_properties(object properties);
-     *
-     *   // Should return a new unique default test name.
-     *   DOMString next_default_test_name();
-     *
-     *   // Should return the test harness timeout duration in milliseconds.
-     *   float test_timeout();
-     *
-     *   // Should return the global scope object.
-     *   object global_scope();
-     * };
-     */
-
-    /*
-     * A test environment with a DOM. The global object is 'window'. By default
-     * test results are displayed in a table. Any parent windows receive
-     * callbacks or messages via postMessage() when test events occur. See
-     * apisample11.html and apisample12.html.
-     */
-    function WindowTestEnvironment() {
-        this.name_counter = 0;
-        this.window_cache = null;
-        this.output_handler = null;
-        this.all_loaded = false;
-        var this_obj = this;
-        on_event(window, 'load', function() {
-            this_obj.all_loaded = true;
-        });
-    }
-
-    WindowTestEnvironment.prototype._dispatch = function(selector, callback_args, message_arg) {
-        this._forEach_windows(
-                function(w, is_same_origin) {
-                    if (is_same_origin && selector in w) {
-                        try {
-                            w[selector].apply(undefined, callback_args);
-                        } catch (e) {
-                            if (debug) {
-                                throw e;
-                            }
-                        }
-                    }
-                    if (supports_post_message(w) && w !== self) {
-                        w.postMessage(message_arg, "*");
-                    }
-                });
-    };
-
-    WindowTestEnvironment.prototype._forEach_windows = function(callback) {
-        // Iterate of the the windows [self ... top, opener]. The callback is passed
-        // two objects, the first one is the windows object itself, the second one
-        // is a boolean indicating whether or not its on the same origin as the
-        // current window.
-        var cache = this.window_cache;
-        if (!cache) {
-            cache = [[self, true]];
-            var w = self;
-            var i = 0;
-            var so;
-            var origins = location.ancestorOrigins;
-            while (w != w.parent) {
-                w = w.parent;
-                // In WebKit, calls to parent windows' properties that aren't on the same
-                // origin cause an error message to be displayed in the error console but
-                // don't throw an exception. This is a deviation from the current HTML5
-                // spec. See: https://bugs.webkit.org/show_bug.cgi?id=43504
-                // The problem with WebKit's behavior is that it pollutes the error console
-                // with error messages that can't be caught.
-                //
-                // This issue can be mitigated by relying on the (for now) proprietary
-                // `location.ancestorOrigins` property which returns an ordered list of
-                // the origins of enclosing windows. See:
-                // http://trac.webkit.org/changeset/113945.
-                if (origins) {
-                    so = (location.origin == origins[i]);
-                } else {
-                    so = is_same_origin(w);
-                }
-                cache.push([w, so]);
-                i++;
-            }
-            w = window.opener;
-            if (w) {
-                // window.opener isn't included in the `location.ancestorOrigins` prop.
-                // We'll just have to deal with a simple check and an error msg on WebKit
-                // browsers in this case.
-                cache.push([w, is_same_origin(w)]);
-            }
-            this.window_cache = cache;
-        }
-
-        forEach(cache,
-                function(a) {
-                    callback.apply(null, a);
-                });
-    };
-
-    WindowTestEnvironment.prototype.on_tests_ready = function() {
-        var output = new Output();
-        this.output_handler = output;
-
-        var this_obj = this;
-        add_start_callback(function (properties) {
-            this_obj.output_handler.init(properties);
-            this_obj._dispatch("start_callback", [properties],
-                           { type: "start", properties: properties });
-        });
-        add_test_state_callback(function(test) {
-            this_obj.output_handler.show_status();
-            this_obj._dispatch("test_state_callback", [test],
-                               { type: "test_state", test: test.structured_clone() });
-        });
-        add_result_callback(function (test) {
-            this_obj.output_handler.show_status();
-            this_obj._dispatch("result_callback", [test],
-                               { type: "result", test: test.structured_clone() });
-        });
-        add_completion_callback(function (tests, harness_status) {
-            this_obj.output_handler.show_results(tests, harness_status);
-            var cloned_tests = map(tests, function(test) { return test.structured_clone(); });
-            this_obj._dispatch("completion_callback", [tests, harness_status],
-                               { type: "complete", tests: cloned_tests,
-                                 status: harness_status.structured_clone() });
-        });
-    };
-
-    WindowTestEnvironment.prototype.next_default_test_name = function() {
-        //Don't use document.title to work around an Opera bug in XHTML documents
-        var title = document.getElementsByTagName("title")[0];
-        var prefix = (title && title.firstChild && title.firstChild.data) || "Untitled";
-        var suffix = this.name_counter > 0 ? " " + this.name_counter : "";
-        this.name_counter++;
-        return prefix + suffix;
-    };
-
-    WindowTestEnvironment.prototype.on_new_harness_properties = function(properties) {
-        this.output_handler.setup(properties);
-    };
-
-    WindowTestEnvironment.prototype.add_on_loaded_callback = function(callback) {
-        on_event(window, 'load', callback);
-    };
-
-    WindowTestEnvironment.prototype.test_timeout = function() {
-        var metas = document.getElementsByTagName("meta");
-        for (var i = 0; i < metas.length; i++) {
-            if (metas[i].name == "timeout") {
-                if (metas[i].content == "long") {
-                    return settings.harness_timeout.long;
-                }
-                break;
-            }
-        }
-        return settings.harness_timeout.normal;
-    };
-
-    WindowTestEnvironment.prototype.global_scope = function() {
-        return window;
-    };
-
-    /*
-     * Base TestEnvironment implementation for a generic web worker.
-     *
-     * Workers accumulate test results. One or more clients can connect and
-     * retrieve results from a worker at any time.
-     *
-     * WorkerTestEnvironment supports communicating with a client via a
-     * MessagePort.  The mechanism for determining the appropriate MessagePort
-     * for communicating with a client depends on the type of worker and is
-     * implemented by the various specializations of WorkerTestEnvironment
-     * below.
-     *
-     * A client document using testharness can use fetch_tests_from_worker() to
-     * retrieve results from a worker. See apisample16.html.
-     */
-    function WorkerTestEnvironment() {
-        this.name_counter = 0;
-        this.all_loaded = true;
-        this.message_list = [];
-        this.message_ports = [];
-    }
-
-    WorkerTestEnvironment.prototype._dispatch = function(message) {
-        this.message_list.push(message);
-        for (var i = 0; i < this.message_ports.length; ++i)
-        {
-            this.message_ports[i].postMessage(message);
-        }
-    };
-
-    // The only requirement is that port has a postMessage() method. It doesn't
-    // have to be an instance of a MessagePort, and often isn't.
-    WorkerTestEnvironment.prototype._add_message_port = function(port) {
-        this.message_ports.push(port);
-        for (var i = 0; i < this.message_list.length; ++i)
-        {
-            port.postMessage(this.message_list[i]);
-        }
-    };
-
-    WorkerTestEnvironment.prototype.next_default_test_name = function() {
-        var suffix = this.name_counter > 0 ? " " + this.name_counter : "";
-        this.name_counter++;
-        return "Untitled" + suffix;
-    };
-
-    WorkerTestEnvironment.prototype.on_new_harness_properties = function() {};
-
-    WorkerTestEnvironment.prototype.on_tests_ready = function() {
-        var this_obj = this;
-        add_start_callback(
-                function(properties) {
-                    this_obj._dispatch({
-                        type: "start",
-                        properties: properties,
-                    });
-                });
-        add_test_state_callback(
-                function(test) {
-                    this_obj._dispatch({
-                        type: "test_state",
-                        test: test.structured_clone()
-                    });
-                });
-        add_result_callback(
-                function(test) {
-                    this_obj._dispatch({
-                        type: "result",
-                        test: test.structured_clone()
-                    });
-                });
-        add_completion_callback(
-                function(tests, harness_status) {
-                    this_obj._dispatch({
-                        type: "complete",
-                        tests: map(tests,
-                            function(test) {
-                                return test.structured_clone();
-                            }),
-                        status: harness_status.structured_clone()
-                    });
-                });
-    };
-
-    WorkerTestEnvironment.prototype.add_on_loaded_callback = function() {};
-
-    WorkerTestEnvironment.prototype.test_timeout = function() {
-        // Tests running in a worker don't have a default timeout. I.e. all
-        // worker tests behave as if settings.explicit_timeout is true.
-        return null;
-    };
-
-    WorkerTestEnvironment.prototype.global_scope = function() {
-        return self;
-    };
-
-    /*
-     * Dedicated web workers.
-     * https://html.spec.whatwg.org/multipage/workers.html#dedicatedworkerglobalscope
-     *
-     * This class is used as the test_environment when testharness is running
-     * inside a dedicated worker.
-     */
-    function DedicatedWorkerTestEnvironment() {
-        WorkerTestEnvironment.call(this);
-        // self is an instance of DedicatedWorkerGlobalScope which exposes
-        // a postMessage() method for communicating via the message channel
-        // established when the worker is created.
-        this._add_message_port(self);
-    }
-    DedicatedWorkerTestEnvironment.prototype = Object.create(WorkerTestEnvironment.prototype);
-
-    DedicatedWorkerTestEnvironment.prototype.on_tests_ready = function() {
-        WorkerTestEnvironment.prototype.on_tests_ready.call(this);
-        // In the absence of an onload notification, we a require dedicated
-        // workers to explicitly signal when the tests are done.
-        tests.wait_for_finish = true;
-    };
-
-    /*
-     * Shared web workers.
-     * https://html.spec.whatwg.org/multipage/workers.html#sharedworkerglobalscope
-     *
-     * This class is used as the test_environment when testharness is running
-     * inside a shared web worker.
-     */
-    function SharedWorkerTestEnvironment() {
-        WorkerTestEnvironment.call(this);
-        var this_obj = this;
-        // Shared workers receive message ports via the 'onconnect' event for
-        // each connection.
-        self.addEventListener("connect",
-                function(message_event) {
-                    this_obj._add_message_port(message_event.source);
-                });
-    }
-    SharedWorkerTestEnvironment.prototype = Object.create(WorkerTestEnvironment.prototype);
-
-    SharedWorkerTestEnvironment.prototype.on_tests_ready = function() {
-        WorkerTestEnvironment.prototype.on_tests_ready.call(this);
-        // In the absence of an onload notification, we a require shared
-        // workers to explicitly signal when the tests are done.
-        tests.wait_for_finish = true;
-    };
-
-    /*
-     * Service workers.
-     * http://www.w3.org/TR/service-workers/
-     *
-     * This class is used as the test_environment when testharness is running
-     * inside a service worker.
-     */
-    function ServiceWorkerTestEnvironment() {
-        WorkerTestEnvironment.call(this);
-        this.all_loaded = false;
-        this.on_loaded_callback = null;
-        var this_obj = this;
-        self.addEventListener("message",
-                function(event) {
-                    if (event.data.type && event.data.type === "connect") {
-                        this_obj._add_message_port(event.ports[0]);
-                        event.ports[0].start();
-                    }
-                });
-
-        // The oninstall event is received after the service worker script and
-        // all imported scripts have been fetched and executed. It's the
-        // equivalent of an onload event for a document. All tests should have
-        // been added by the time this event is received, thus it's not
-        // necessary to wait until the onactivate event.
-        on_event(self, "install",
-                function(event) {
-                    this_obj.all_loaded = true;
-                    if (this_obj.on_loaded_callback) {
-                        this_obj.on_loaded_callback();
-                    }
-                });
-    }
-    ServiceWorkerTestEnvironment.prototype = Object.create(WorkerTestEnvironment.prototype);
-
-    ServiceWorkerTestEnvironment.prototype.add_on_loaded_callback = function(callback) {
-        if (this.all_loaded) {
-            callback();
-        } else {
-            this.on_loaded_callback = callback;
-        }
-    };
-
-    function create_test_environment() {
-        if ('document' in self) {
-            return new WindowTestEnvironment();
-        }
-        if ('DedicatedWorkerGlobalScope' in self &&
-            self instanceof DedicatedWorkerGlobalScope) {
-            return new DedicatedWorkerTestEnvironment();
-        }
-        if ('SharedWorkerGlobalScope' in self &&
-            self instanceof SharedWorkerGlobalScope) {
-            return new SharedWorkerTestEnvironment();
-        }
-        if ('ServiceWorkerGlobalScope' in self &&
-            self instanceof ServiceWorkerGlobalScope) {
-            return new ServiceWorkerTestEnvironment();
-        }
-        throw new Error("Unsupported test environment");
-    }
-
-    var test_environment = create_test_environment();
-
-    function is_shared_worker(worker) {
-        return 'SharedWorker' in self && worker instanceof SharedWorker;
-    }
-
-    function is_service_worker(worker) {
-        return 'ServiceWorker' in self && worker instanceof ServiceWorker;
-    }
-
-    /*
-     * API functions
-     */
-
-    function test(func, name, properties)
-    {
-        var test_name = name ? name : test_environment.next_default_test_name();
-        properties = properties ? properties : {};
-        var test_obj = new Test(test_name, properties);
-        test_obj.step(func, test_obj, test_obj);
-        if (test_obj.phase === test_obj.phases.STARTED) {
-            test_obj.done();
-        }
-    }
-
-    function async_test(func, name, properties)
-    {
-        if (typeof func !== "function") {
-            properties = name;
-            name = func;
-            func = null;
-        }
-        var test_name = name ? name : test_environment.next_default_test_name();
-        properties = properties ? properties : {};
-        var test_obj = new Test(test_name, properties);
-        if (func) {
-            test_obj.step(func, test_obj, test_obj);
-        }
-        return test_obj;
-    }
-
-    function promise_test(func, name, properties) {
-        var test = async_test(name, properties);
-        Promise.resolve(test.step(func, test, test))
-            .then(
-                function() {
-                    test.done();
-                })
-            .catch(test.step_func(
-                function(value) {
-                    if (value instanceof AssertionError) {
-                        throw value;
-                    }
-                    assert(false, "promise_test", null,
-                           "Unhandled rejection with value: ${value}", {value:value});
-                }));
-    }
-
-    function setup(func_or_properties, maybe_properties)
-    {
-        var func = null;
-        var properties = {};
-        if (arguments.length === 2) {
-            func = func_or_properties;
-            properties = maybe_properties;
-        } else if (func_or_properties instanceof Function) {
-            func = func_or_properties;
-        } else {
-            properties = func_or_properties;
-        }
-        tests.setup(func, properties);
-        test_environment.on_new_harness_properties(properties);
-    }
-
-    function done() {
-        if (tests.tests.length === 0) {
-            tests.set_file_is_test();
-        }
-        if (tests.file_is_test) {
-            tests.tests[0].done();
-        }
-        tests.end_wait();
-    }
-
-    function generate_tests(func, args, properties) {
-        forEach(args, function(x, i)
-                {
-                    var name = x[0];
-                    test(function()
-                         {
-                             func.apply(this, x.slice(1));
-                         },
-                         name,
-                         Array.isArray(properties) ? properties[i] : properties);
-                });
-    }
-
-    function on_event(object, event, callback)
-    {
-        object.addEventListener(event, callback, false);
-    }
-
-    expose(test, 'test');
-    expose(async_test, 'async_test');
-    expose(promise_test, 'promise_test');
-    expose(generate_tests, 'generate_tests');
-    expose(setup, 'setup');
-    expose(done, 'done');
-    expose(on_event, 'on_event');
-
-    /*
-     * Return a string truncated to the given length, with ... added at the end
-     * if it was longer.
-     */
-    function truncate(s, len)
-    {
-        if (s.length > len) {
-            return s.substring(0, len - 3) + "...";
-        }
-        return s;
-    }
-
-    /*
-     * Return true if object is probably a Node object.
-     */
-    function is_node(object)
-    {
-        // I use duck-typing instead of instanceof, because
-        // instanceof doesn't work if the node is from another window (like an
-        // iframe's contentWindow):
-        // http://www.w3.org/Bugs/Public/show_bug.cgi?id=12295
-        if ("nodeType" in object &&
-            "nodeName" in object &&
-            "nodeValue" in object &&
-            "childNodes" in object) {
-            try {
-                object.nodeType;
-            } catch (e) {
-                // The object is probably Node.prototype or another prototype
-                // object that inherits from it, and not a Node instance.
-                return false;
-            }
-            return true;
-        }
-        return false;
-    }
-
-    /*
-     * Convert a value to a nice, human-readable string
-     */
-    function format_value(val, seen)
-    {
-        if (!seen) {
-            seen = [];
-        }
-        if (typeof val === "object" && val !== null) {
-            if (seen.indexOf(val) >= 0) {
-                return "[...]";
-            }
-            seen.push(val);
-        }
-        if (Array.isArray(val)) {
-            return "[" + val.map(function(x) {return format_value(x, seen);}).join(", ") + "]";
-        }
-
-        switch (typeof val) {
-        case "string":
-            val = val.replace("\\", "\\\\");
-            for (var i = 0; i < 32; i++) {
-                var replace = "\\";
-                switch (i) {
-                case 0: replace += "0"; break;
-                case 1: replace += "x01"; break;
-                case 2: replace += "x02"; break;
-                case 3: replace += "x03"; break;
-                case 4: replace += "x04"; break;
-                case 5: replace += "x05"; break;
-                case 6: replace += "x06"; break;
-                case 7: replace += "x07"; break;
-                case 8: replace += "b"; break;
-                case 9: replace += "t"; break;
-                case 10: replace += "n"; break;
-                case 11: replace += "v"; break;
-                case 12: replace += "f"; break;
-                case 13: replace += "r"; break;
-                case 14: replace += "x0e"; break;
-                case 15: replace += "x0f"; break;
-                case 16: replace += "x10"; break;
-                case 17: replace += "x11"; break;
-                case 18: replace += "x12"; break;
-                case 19: replace += "x13"; break;
-                case 20: replace += "x14"; break;
-                case 21: replace += "x15"; break;
-                case 22: replace += "x16"; break;
-                case 23: replace += "x17"; break;
-                case 24: replace += "x18"; break;
-                case 25: replace += "x19"; break;
-                case 26: replace += "x1a"; break;
-                case 27: replace += "x1b"; break;
-                case 28: replace += "x1c"; break;
-                case 29: replace += "x1d"; break;
-                case 30: replace += "x1e"; break;
-                case 31: replace += "x1f"; break;
-                }
-                val = val.replace(RegExp(String.fromCharCode(i), "g"), replace);
-            }
-            return '"' + val.replace(/"/g, '\\"') + '"';
-        case "boolean":
-        case "undefined":
-            return String(val);
-        case "number":
-            // In JavaScript, -0 === 0 and String(-0) == "0", so we have to
-            // special-case.
-            if (val === -0 && 1/val === -Infinity) {
-                return "-0";
-            }
-            return String(val);
-        case "object":
-            if (val === null) {
-                return "null";
-            }
-
-            // Special-case Node objects, since those come up a lot in my tests.  I
-            // ignore namespaces.
-            if (is_node(val)) {
-                switch (val.nodeType) {
-                case Node.ELEMENT_NODE:
-                    var ret = "<" + val.localName;
-                    for (var i = 0; i < val.attributes.length; i++) {
-                        ret += " " + val.attributes[i].name + '="' + val.attributes[i].value + '"';
-                    }
-                    ret += ">" + val.innerHTML + "</" + val.localName + ">";
-                    return "Element node " + truncate(ret, 60);
-                case Node.TEXT_NODE:
-                    return 'Text node "' + truncate(val.data, 60) + '"';
-                case Node.PROCESSING_INSTRUCTION_NODE:
-                    return "ProcessingInstruction node with target " + format_value(truncate(val.target, 60)) + " and data " + format_value(truncate(val.data, 60));
-                case Node.COMMENT_NODE:
-                    return "Comment node <!--" + truncate(val.data, 60) + "-->";
-                case Node.DOCUMENT_NODE:
-                    return "Document node with " + val.childNodes.length + (val.childNodes.length == 1 ? " child" : " children");
-                case Node.DOCUMENT_TYPE_NODE:
-                    return "DocumentType node";
-                case Node.DOCUMENT_FRAGMENT_NODE:
-                    return "DocumentFragment node with " + val.childNodes.length + (val.childNodes.length == 1 ? " child" : " children");
-                default:
-                    return "Node object of unknown type";
-                }
-            }
-
-        /* falls through */
-        default:
-            return typeof val + ' "' + truncate(String(val), 60) + '"';
-        }
-    }
-    expose(format_value, "format_value");
-
-    /*
-     * Assertions
-     */
-
-    function assert_true(actual, description)
-    {
-        assert(actual === true, "assert_true", description,
-                                "expected true got ${actual}", {actual:actual});
-    }
-    expose(assert_true, "assert_true");
-
-    function assert_false(actual, description)
-    {
-        assert(actual === false, "assert_false", description,
-                                 "expected false got ${actual}", {actual:actual});
-    }
-    expose(assert_false, "assert_false");
-
-    function same_value(x, y) {
-        if (y !== y) {
-            //NaN case
-            return x !== x;
-        }
-        if (x === 0 && y === 0) {
-            //Distinguish +0 and -0
-            return 1/x === 1/y;
-        }
-        return x === y;
-    }
-
-    function assert_equals(actual, expected, description)
-    {
-         /*
-          * Test if two primitives are equal or two objects
-          * are the same object
-          */
-        if (typeof actual != typeof expected) {
-            assert(false, "assert_equals", description,
-                          "expected (" + typeof expected + ") ${expected} but got (" + typeof actual + ") ${actual}",
-                          {expected:expected, actual:actual});
-            return;
-        }
-        assert(same_value(actual, expected), "assert_equals", description,
-                                             "expected ${expected} but got ${actual}",
-                                             {expected:expected, actual:actual});
-    }
-    expose(assert_equals, "assert_equals");
-
-    function assert_not_equals(actual, expected, description)
-    {
-         /*
-          * Test if two primitives are unequal or two objects
-          * are different objects
-          */
-        assert(!same_value(actual, expected), "assert_not_equals", description,
-                                              "got disallowed value ${actual}",
-                                              {actual:actual});
-    }
-    expose(assert_not_equals, "assert_not_equals");
-
-    function assert_in_array(actual, expected, description)
-    {
-        assert(expected.indexOf(actual) != -1, "assert_in_array", description,
-                                               "value ${actual} not in array ${expected}",
-                                               {actual:actual, expected:expected});
-    }
-    expose(assert_in_array, "assert_in_array");
-
-    function assert_object_equals(actual, expected, description)
-    {
-         //This needs to be improved a great deal
-         function check_equal(actual, expected, stack)
-         {
-             stack.push(actual);
-
-             var p;
-             for (p in actual) {
-                 assert(expected.hasOwnProperty(p), "assert_object_equals", description,
-                                                    "unexpected property ${p}", {p:p});
-
-                 if (typeof actual[p] === "object" && actual[p] !== null) {
-                     if (stack.indexOf(actual[p]) === -1) {
-                         check_equal(actual[p], expected[p], stack);
-                     }
-                 } else {
-                     assert(same_value(actual[p], expected[p]), "assert_object_equals", description,
-                                                       "property ${p} expected ${expected} got ${actual}",
-                                                       {p:p, expected:expected, actual:actual});
-                 }
-             }
-             for (p in expected) {
-                 assert(actual.hasOwnProperty(p),
-                        "assert_object_equals", description,
-                        "expected property ${p} missing", {p:p});
-             }
-             stack.pop();
-         }
-         check_equal(actual, expected, []);
-    }
-    expose(assert_object_equals, "assert_object_equals");
-
-    function assert_array_equals(actual, expected, description)
-    {
-        assert(actual.length === expected.length,
-               "assert_array_equals", description,
-               "lengths differ, expected ${expected} got ${actual}",
-               {expected:expected.length, actual:actual.length});
-
-        for (var i = 0; i < actual.length; i++) {
-            assert(actual.hasOwnProperty(i) === expected.hasOwnProperty(i),
-                   "assert_array_equals", description,
-                   "property ${i}, property expected to be ${expected} but was ${actual}",
-                   {i:i, expected:expected.hasOwnProperty(i) ? "present" : "missing",
-                   actual:actual.hasOwnProperty(i) ? "present" : "missing"});
-            assert(same_value(expected[i], actual[i]),
-                   "assert_array_equals", description,
-                   "property ${i}, expected ${expected} but got ${actual}",
-                   {i:i, expected:expected[i], actual:actual[i]});
-        }
-    }
-    expose(assert_array_equals, "assert_array_equals");
-
-    function assert_approx_equals(actual, expected, epsilon, description)
-    {
-        /*
-         * Test if two primitive numbers are equal withing +/- epsilon
-         */
-        assert(typeof actual === "number",
-               "assert_approx_equals", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(Math.abs(actual - expected) <= epsilon,
-               "assert_approx_equals", description,
-               "expected ${expected} +/- ${epsilon} but got ${actual}",
-               {expected:expected, actual:actual, epsilon:epsilon});
-    }
-    expose(assert_approx_equals, "assert_approx_equals");
-
-    function assert_less_than(actual, expected, description)
-    {
-        /*
-         * Test if a primitive number is less than another
-         */
-        assert(typeof actual === "number",
-               "assert_less_than", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(actual < expected,
-               "assert_less_than", description,
-               "expected a number less than ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_less_than, "assert_less_than");
-
-    function assert_greater_than(actual, expected, description)
-    {
-        /*
-         * Test if a primitive number is greater than another
-         */
-        assert(typeof actual === "number",
-               "assert_greater_than", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(actual > expected,
-               "assert_greater_than", description,
-               "expected a number greater than ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_greater_than, "assert_greater_than");
-
-    function assert_less_than_equal(actual, expected, description)
-    {
-        /*
-         * Test if a primitive number is less than or equal to another
-         */
-        assert(typeof actual === "number",
-               "assert_less_than_equal", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(actual <= expected,
-               "assert_less_than", description,
-               "expected a number less than or equal to ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_less_than_equal, "assert_less_than_equal");
-
-    function assert_greater_than_equal(actual, expected, description)
-    {
-        /*
-         * Test if a primitive number is greater than or equal to another
-         */
-        assert(typeof actual === "number",
-               "assert_greater_than_equal", description,
-               "expected a number but got a ${type_actual}",
-               {type_actual:typeof actual});
-
-        assert(actual >= expected,
-               "assert_greater_than_equal", description,
-               "expected a number greater than or equal to ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_greater_than_equal, "assert_greater_than_equal");
-
-    function assert_regexp_match(actual, expected, description) {
-        /*
-         * Test if a string (actual) matches a regexp (expected)
-         */
-        assert(expected.test(actual),
-               "assert_regexp_match", description,
-               "expected ${expected} but got ${actual}",
-               {expected:expected, actual:actual});
-    }
-    expose(assert_regexp_match, "assert_regexp_match");
-
-    function assert_class_string(object, class_string, description) {
-        assert_equals({}.toString.call(object), "[object " + class_string + "]",
-                      description);
-    }
-    expose(assert_class_string, "assert_class_string");
-
-
-    function _assert_own_property(name) {
-        return function(object, property_name, description)
-        {
-            assert(property_name in object,
-                   name, description,
-                   "expected property ${p} missing", {p:property_name});
-        };
-    }
-    expose(_assert_own_property("assert_exists"), "assert_exists");
-    expose(_assert_own_property("assert_own_property"), "assert_own_property");
-
-    function assert_not_exists(object, property_name, description)
-    {
-        assert(!object.hasOwnProperty(property_name),
-               "assert_not_exists", description,
-               "unexpected property ${p} found", {p:property_name});
-    }
-    expose(assert_not_exists, "assert_not_exists");
-
-    function _assert_inherits(name) {
-        return function (object, property_name, description)
-        {
-            assert(typeof object === "object",
-                   name, description,
-                   "provided value is not an object");
-
-            assert("hasOwnProperty" in object,
-                   name, description,
-                   "provided value is an object but has no hasOwnProperty method");
-
-            assert(!object.hasOwnProperty(property_name),
-                   name, description,
-                   "property ${p} found on object expected in prototype chain",
-                   {p:property_name});
-
-            assert(property_name in object,
-                   name, description,
-                   "property ${p} not found in prototype chain",
-                   {p:property_name});
-        };
-    }
-    expose(_assert_inherits("assert_inherits"), "assert_inherits");
-    expose(_assert_inherits("assert_idl_attribute"), "assert_idl_attribute");
-
-    function assert_readonly(object, property_name, description)
-    {
-         var initial_value = object[property_name];
-         try {
-             //Note that this can have side effects in the case where
-             //the property has PutForwards
-             object[property_name] = initial_value + "a"; //XXX use some other value here?
-             assert(same_value(object[property_name], initial_value),
-                    "assert_readonly", description,
-                    "changing property ${p} succeeded",
-                    {p:property_name});
-         } finally {
-             object[property_name] = initial_value;
-         }
-    }
-    expose(assert_readonly, "assert_readonly");
-
-    function assert_throws(code, func, description)
-    {
-        try {
-            func.call(this);
-            assert(false, "assert_throws", description,
-                   "${func} did not throw", {func:func});
-        } catch (e) {
-            if (e instanceof AssertionError) {
-                throw e;
-            }
-            if (code === null) {
-                return;
-            }
-            if (typeof code === "object") {
-                assert(typeof e == "object" && "name" in e && e.name == code.name,
-                       "assert_throws", description,
-                       "${func} threw ${actual} (${actual_name}) expected ${expected} (${expected_name})",
-                                    {func:func, actual:e, actual_name:e.name,
-                                     expected:code,
-                                     expected_name:code.name});
-                return;
-            }
-
-            var code_name_map = {
-                INDEX_SIZE_ERR: 'IndexSizeError',
-                HIERARCHY_REQUEST_ERR: 'HierarchyRequestError',
-                WRONG_DOCUMENT_ERR: 'WrongDocumentError',
-                INVALID_CHARACTER_ERR: 'InvalidCharacterError',
-                NO_MODIFICATION_ALLOWED_ERR: 'NoModificationAllowedError',
-                NOT_FOUND_ERR: 'NotFoundError',
-                NOT_SUPPORTED_ERR: 'NotSupportedError',
-                INVALID_STATE_ERR: 'InvalidStateError',
-                SYNTAX_ERR: 'SyntaxError',
-                INVALID_MODIFICATION_ERR: 'InvalidModificationError',
-                NAMESPACE_ERR: 'NamespaceError',
-                INVALID_ACCESS_ERR: 'InvalidAccessError',
-                TYPE_MISMATCH_ERR: 'TypeMismatchError',
-                SECURITY_ERR: 'SecurityError',
-                NETWORK_ERR: 'NetworkError',
-                ABORT_ERR: 'AbortError',
-                URL_MISMATCH_ERR: 'URLMismatchError',
-                QUOTA_EXCEEDED_ERR: 'QuotaExceededError',
-                TIMEOUT_ERR: 'TimeoutError',
-                INVALID_NODE_TYPE_ERR: 'InvalidNodeTypeError',
-                DATA_CLONE_ERR: 'DataCloneError'
-            };
-
-            var name = code in code_name_map ? code_name_map[code] : code;
-
-            var name_code_map = {
-                IndexSizeError: 1,
-                HierarchyRequestError: 3,
-                WrongDocumentError: 4,
-                InvalidCharacterError: 5,
-                NoModificationAllowedError: 7,
-                NotFoundError: 8,
-                NotSupportedError: 9,
-                InvalidStateError: 11,
-                SyntaxError: 12,
-                InvalidModificationError: 13,
-                NamespaceError: 14,
-                InvalidAccessError: 15,
-                TypeMismatchError: 17,
-                SecurityError: 18,
-                NetworkError: 19,
-                AbortError: 20,
-                URLMismatchError: 21,
-                QuotaExceededError: 22,
-                TimeoutError: 23,
-                InvalidNodeTypeError: 24,
-                DataCloneError: 25,
-
-                UnknownError: 0,
-                ConstraintError: 0,
-                DataError: 0,
-                TransactionInactiveError: 0,
-                ReadOnlyError: 0,
-                VersionError: 0
-            };
-
-            if (!(name in name_code_map)) {
-                throw new AssertionError('Test bug: unrecognized DOMException code "' + code + '" passed to assert_throws()');
-            }
-
-            var required_props = { code: name_code_map[name] };
-
-            if (required_props.code === 0 ||
-               ("name" in e && e.name !== e.name.toUpperCase() && e.name !== "DOMException")) {
-                // New style exception: also test the name property.
-                required_props.name = name;
-            }
-
-            //We'd like to test that e instanceof the appropriate interface,
-            //but we can't, because we don't know what window it was created
-            //in.  It might be an instanceof the appropriate interface on some
-            //unknown other window.  TODO: Work around this somehow?
-
-            assert(typeof e == "object",
-                   "assert_throws", description,
-                   "${func} threw ${e} with type ${type}, not an object",
-                   {func:func, e:e, type:typeof e});
-
-            for (var prop in required_props) {
-                assert(typeof e == "object" && prop in e && e[prop] == required_props[prop],
-                       "assert_throws", description,
-                       "${func} threw ${e} that is not a DOMException " + code + ": property ${prop} is equal to ${actual}, expected ${expected}",
-                       {func:func, e:e, prop:prop, actual:e[prop], expected:required_props[prop]});
-            }
-        }
-    }
-    expose(assert_throws, "assert_throws");
-
-    function assert_unreached(description) {
-         assert(false, "assert_unreached", description,
-                "Reached unreachable code");
-    }
-    expose(assert_unreached, "assert_unreached");
-
-    function assert_any(assert_func, actual, expected_array)
-    {
-        var args = [].slice.call(arguments, 3);
-        var errors = [];
-        var passed = false;
-        forEach(expected_array,
-                function(expected)
-                {
-                    try {
-                        assert_func.apply(this, [actual, expected].concat(args));
-                        passed = true;
-                    } catch (e) {
-                        errors.push(e.message);
-                    }
-                });
-        if (!passed) {
-            throw new AssertionError(errors.join("\n\n"));
-        }
-    }
-    expose(assert_any, "assert_any");
-
-    function Test(name, properties)
-    {
-        if (tests.file_is_test && tests.tests.length) {
-            throw new Error("Tried to create a test with file_is_test");
-        }
-        this.name = name;
-
-        this.phase = this.phases.INITIAL;
-
-        this.status = this.NOTRUN;
-        this.timeout_id = null;
-        this.index = null;
-
-        this.properties = properties;
-        var timeout = properties.timeout ? properties.timeout : settings.test_timeout;
-        if (timeout !== null) {
-            this.timeout_length = timeout * tests.timeout_multiplier;
-        } else {
-            this.timeout_length = null;
-        }
-
-        this.message = null;
-
-        this.steps = [];
-
-        this.cleanup_callbacks = [];
-
-        tests.push(this);
-    }
-
-    Test.statuses = {
-        PASS:0,
-        FAIL:1,
-        TIMEOUT:2,
-        NOTRUN:3
-    };
-
-    Test.prototype = merge({}, Test.statuses);
-
-    Test.prototype.phases = {
-        INITIAL:0,
-        STARTED:1,
-        HAS_RESULT:2,
-        COMPLETE:3
-    };
-
-    Test.prototype.structured_clone = function()
-    {
-        if (!this._structured_clone) {
-            var msg = this.message;
-            msg = msg ? String(msg) : msg;
-            this._structured_clone = merge({
-                name:String(this.name),
-                properties:merge({}, this.properties),
-            }, Test.statuses);
-        }
-        this._structured_clone.status = this.status;
-        this._structured_clone.message = this.message;
-        this._structured_clone.index = this.index;
-        return this._structured_clone;
-    };
-
-    Test.prototype.step = function(func, this_obj)
-    {
-        if (this.phase > this.phases.STARTED) {
-            return;
-        }
-        this.phase = this.phases.STARTED;
-        //If we don't get a result before the harness times out that will be a test timout
-        this.set_status(this.TIMEOUT, "Test timed out");
-
-        tests.started = true;
-        tests.notify_test_state(this);
-
-        if (this.timeout_id === null) {
-            this.set_timeout();
-        }
-
-        this.steps.push(func);
-
-        if (arguments.length === 1) {
-            this_obj = this;
-        }
-
-        try {
-            return func.apply(this_obj, Array.prototype.slice.call(arguments, 2));
-        } catch (e) {
-            if (this.phase >= this.phases.HAS_RESULT) {
-                return;
-            }
-            var message = (typeof e === "object" && e !== null) ? e.message : e;
-            if (typeof e.stack != "undefined" && typeof e.message == "string") {
-                //Try to make it more informative for some exceptions, at least
-                //in Gecko and WebKit.  This results in a stack dump instead of
-                //just errors like "Cannot read property 'parentNode' of null"
-                //or "root is null".  Makes it a lot longer, of course.
-                message += "(stack: " + e.stack + ")";
-            }
-            this.set_status(this.FAIL, message);
-            this.phase = this.phases.HAS_RESULT;
-            this.done();
-        }
-    };
-
-    Test.prototype.step_func = function(func, this_obj)
-    {
-        var test_this = this;
-
-        if (arguments.length === 1) {
-            this_obj = test_this;
-        }
-
-        return function()
-        {
-            return test_this.step.apply(test_this, [func, this_obj].concat(
-                Array.prototype.slice.call(arguments)));
-        };
-    };
-
-    Test.prototype.step_func_done = function(func, this_obj)
-    {
-        var test_this = this;
-
-        if (arguments.length === 1) {
-            this_obj = test_this;
-        }
-
-        return function()
-        {
-            if (func) {
-                test_this.step.apply(test_this, [func, this_obj].concat(
-                    Array.prototype.slice.call(arguments)));
-            }
-            test_this.done();
-        };
-    };
-
-    Test.prototype.unreached_func = function(description)
-    {
-        return this.step_func(function() {
-            assert_unreached(description);
-        });
-    };
-
-    Test.prototype.add_cleanup = function(callback) {
-        this.cleanup_callbacks.push(callback);
-    };
-
-    Test.prototype.force_timeout = function() {
-        this.set_status(this.TIMEOUT);
-        this.phase = this.phases.HAS_RESULT;
-    };
-
-    Test.prototype.set_timeout = function()
-    {
-        if (this.timeout_length !== null) {
-            var this_obj = this;
-            this.timeout_id = setTimeout(function()
-                                         {
-                                             this_obj.timeout();
-                                         }, this.timeout_length);
-        }
-    };
-
-    Test.prototype.set_status = function(status, message)
-    {
-        this.status = status;
-        this.message = message;
-    };
-
-    Test.prototype.timeout = function()
-    {
-        this.timeout_id = null;
-        this.set_status(this.TIMEOUT, "Test timed out");
-        this.phase = this.phases.HAS_RESULT;
-        this.done();
-    };
-
-    Test.prototype.done = function()
-    {
-        if (this.phase == this.phases.COMPLETE) {
-            return;
-        }
-
-        if (this.phase <= this.phases.STARTED) {
-            this.set_status(this.PASS, null);
-        }
-
-        this.phase = this.phases.COMPLETE;
-
-        clearTimeout(this.timeout_id);
-        tests.result(this);
-        this.cleanup();
-    };
-
-    Test.prototype.cleanup = function() {
-        forEach(this.cleanup_callbacks,
-                function(cleanup_callback) {
-                    cleanup_callback();
-                });
-    };
-
-    /*
-     * A RemoteTest object mirrors a Test object on a remote worker. The
-     * associated RemoteWorker updates the RemoteTest object in response to
-     * received events. In turn, the RemoteTest object replicates these events
-     * on the local document. This allows listeners (test result reporting
-     * etc..) to transparently handle local and remote events.
-     */
-    function RemoteTest(clone) {
-        var this_obj = this;
-        Object.keys(clone).forEach(
-                function(key) {
-                    this_obj[key] = clone[key];
-                });
-        this.index = null;
-        this.phase = this.phases.INITIAL;
-        this.update_state_from(clone);
-        tests.push(this);
-    }
-
-    RemoteTest.prototype.structured_clone = function() {
-        var clone = {};
-        Object.keys(this).forEach(
-                function(key) {
-                    if (typeof(this[key]) === "object") {
-                        clone[key] = merge({}, this[key]);
-                    } else {
-                        clone[key] = this[key];
-                    }
-                });
-        clone.phases = merge({}, this.phases);
-        return clone;
-    };
-
-    RemoteTest.prototype.cleanup = function() {};
-    RemoteTest.prototype.phases = Test.prototype.phases;
-    RemoteTest.prototype.update_state_from = function(clone) {
-        this.status = clone.status;
-        this.message = clone.message;
-        if (this.phase === this.phases.INITIAL) {
-            this.phase = this.phases.STARTED;
-        }
-    };
-    RemoteTest.prototype.done = function() {
-        this.phase = this.phases.COMPLETE;
-    }
-
-    /*
-     * A RemoteWorker listens for test events from a worker. These events are
-     * then used to construct and maintain RemoteTest objects that mirror the
-     * tests running on the remote worker.
-     */
-    function RemoteWorker(worker) {
-        this.running = true;
-        this.tests = new Array();
-
-        var this_obj = this;
-        worker.onerror = function(error) { this_obj.worker_error(error); };
-
-        var message_port;
-
-        if (is_service_worker(worker)) {
-            // The ServiceWorker's implicit MessagePort is currently not
-            // reliably accessible from the ServiceWorkerGlobalScope due to
-            // Blink setting MessageEvent.source to null for messages sent via
-            // ServiceWorker.postMessage(). Until that's resolved, create an
-            // explicit MessageChannel and pass one end to the worker.
-            var message_channel = new MessageChannel();
-            message_port = message_channel.port1;
-            message_port.start();
-            worker.postMessage({type: "connect"}, [message_channel.port2]);
-        } else if (is_shared_worker(worker)) {
-            message_port = worker.port;
-        } else {
-            message_port = worker;
-        }
-
-        // Keeping a reference to the worker until worker_done() is seen
-        // prevents the Worker object and its MessageChannel from going away
-        // before all the messages are dispatched.
-        this.worker = worker;
-
-        message_port.onmessage =
-            function(message) {
-                if (this_obj.running && (message.data.type in this_obj.message_handlers)) {
-                    this_obj.message_handlers[message.data.type].call(this_obj, message.data);
-                }
-            };
-    }
-
-    RemoteWorker.prototype.worker_error = function(error) {
-        var message = error.message || String(error);
-        var filename = (error.filename ? " " + error.filename: "");
-        // FIXME: Display worker error states separately from main document
-        // error state.
-        this.worker_done({
-            status: {
-                status: tests.status.ERROR,
-                message: "Error in worker" + filename + ": " + message
-            }
-        });
-        error.preventDefault();
-    };
-
-    RemoteWorker.prototype.test_state = function(data) {
-        var remote_test = this.tests[data.test.index];
-        if (!remote_test) {
-            remote_test = new RemoteTest(data.test);
-            this.tests[data.test.index] = remote_test;
-        }
-        remote_test.update_state_from(data.test);
-        tests.notify_test_state(remote_test);
-    };
-
-    RemoteWorker.prototype.test_done = function(data) {
-        var remote_test = this.tests[data.test.index];
-        remote_test.update_state_from(data.test);
-        remote_test.done();
-        tests.result(remote_test);
-    };
-
-    RemoteWorker.prototype.worker_done = function(data) {
-        if (tests.status.status === null &&
-            data.status.status !== data.status.OK) {
-            tests.status.status = data.status.status;
-            tests.status.message = data.status.message;
-        }
-        this.running = false;
-        this.worker = null;
-        if (tests.all_done()) {
-            tests.complete();
-        }
-    };
-
-    RemoteWorker.prototype.message_handlers = {
-        test_state: RemoteWorker.prototype.test_state,
-        result: RemoteWorker.prototype.test_done,
-        complete: RemoteWorker.prototype.worker_done
-    };
-
-    /*
-     * Harness
-     */
-
-    function TestsStatus()
-    {
-        this.status = null;
-        this.message = null;
-    }
-
-    TestsStatus.statuses = {
-        OK:0,
-        ERROR:1,
-        TIMEOUT:2
-    };
-
-    TestsStatus.prototype = merge({}, TestsStatus.statuses);
-
-    TestsStatus.prototype.structured_clone = function()
-    {
-        if (!this._structured_clone) {
-            var msg = this.message;
-            msg = msg ? String(msg) : msg;
-            this._structured_clone = merge({
-                status:this.status,
-                message:msg
-            }, TestsStatus.statuses);
-        }
-        return this._structured_clone;
-    };
-
-    function Tests()
-    {
-        this.tests = [];
-        this.num_pending = 0;
-
-        this.phases = {
-            INITIAL:0,
-            SETUP:1,
-            HAVE_TESTS:2,
-            HAVE_RESULTS:3,
-            COMPLETE:4
-        };
-        this.phase = this.phases.INITIAL;
-
-        this.properties = {};
-
-        this.wait_for_finish = false;
-        this.processing_callbacks = false;
-
-        this.allow_uncaught_exception = false;
-
-        this.file_is_test = false;
-
-        this.timeout_multiplier = 1;
-        this.timeout_length = test_environment.test_timeout();
-        this.timeout_id = null;
-
-        this.start_callbacks = [];
-        this.test_state_callbacks = [];
-        this.test_done_callbacks = [];
-        this.all_done_callbacks = [];
-
-        this.pending_workers = [];
-
-        this.status = new TestsStatus();
-
-        var this_obj = this;
-
-        test_environment.add_on_loaded_callback(function() {
-            if (this_obj.all_done()) {
-                this_obj.complete();
-            }
-        });
-
-        this.set_timeout();
-    }
-
-    Tests.prototype.setup = function(func, properties)
-    {
-        if (this.phase >= this.phases.HAVE_RESULTS) {
-            return;
-        }
-
-        if (this.phase < this.phases.SETUP) {
-            this.phase = this.phases.SETUP;
-        }
-
-        this.properties = properties;
-
-        for (var p in properties) {
-            if (properties.hasOwnProperty(p)) {
-                var value = properties[p];
-                if (p == "allow_uncaught_exception") {
-                    this.allow_uncaught_exception = value;
-                } else if (p == "explicit_done" && value) {
-                    this.wait_for_finish = true;
-                } else if (p == "explicit_timeout" && value) {
-                    this.timeout_length = null;
-                    if (this.timeout_id)
-                    {
-                        clearTimeout(this.timeout_id);
-                    }
-                } else if (p == "timeout_multiplier") {
-                    this.timeout_multiplier = value;
-                }
-            }
-        }
-
-        if (func) {
-            try {
-                func();
-            } catch (e) {
-                this.status.status = this.status.ERROR;
-                this.status.message = String(e);
-            }
-        }
-        this.set_timeout();
-    };
-
-    Tests.prototype.set_file_is_test = function() {
-        if (this.tests.length > 0) {
-            throw new Error("Tried to set file as test after creating a test");
-        }
-        this.wait_for_finish = true;
-        this.file_is_test = true;
-        // Create the test, which will add it to the list of tests
-        async_test();
-    };
-
-    Tests.prototype.set_timeout = function() {
-        var this_obj = this;
-        clearTimeout(this.timeout_id);
-        if (this.timeout_length !== null) {
-            this.timeout_id = setTimeout(function() {
-                                             this_obj.timeout();
-                                         }, this.timeout_length);
-        }
-    };
-
-    Tests.prototype.timeout = function() {
-        if (this.status.status === null) {
-            this.status.status = this.status.TIMEOUT;
-        }
-        this.complete();
-    };
-
-    Tests.prototype.end_wait = function()
-    {
-        this.wait_for_finish = false;
-        if (this.all_done()) {
-            this.complete();
-        }
-    };
-
-    Tests.prototype.push = function(test)
-    {
-        if (this.phase < this.phases.HAVE_TESTS) {
-            this.start();
-        }
-        this.num_pending++;
-        test.index = this.tests.push(test);
-        this.notify_test_state(test);
-    };
-
-    Tests.prototype.notify_test_state = function(test) {
-        var this_obj = this;
-        forEach(this.test_state_callbacks,
-                function(callback) {
-                    callback(test, this_obj);
-                });
-    };
-
-    Tests.prototype.all_done = function() {
-        return (this.tests.length > 0 && test_environment.all_loaded &&
-                this.num_pending === 0 && !this.wait_for_finish &&
-                !this.processing_callbacks &&
-                !this.pending_workers.some(function(w) { return w.running; }));
-    };
-
-    Tests.prototype.start = function() {
-        this.phase = this.phases.HAVE_TESTS;
-        this.notify_start();
-    };
-
-    Tests.prototype.notify_start = function() {
-        var this_obj = this;
-        forEach (this.start_callbacks,
-                 function(callback)
-                 {
-                     callback(this_obj.properties);
-                 });
-    };
-
-    Tests.prototype.result = function(test)
-    {
-        if (this.phase > this.phases.HAVE_RESULTS) {
-            return;
-        }
-        this.phase = this.phases.HAVE_RESULTS;
-        this.num_pending--;
-        this.notify_result(test);
-    };
-
-    Tests.prototype.notify_result = function(test) {
-        var this_obj = this;
-        this.processing_callbacks = true;
-        forEach(this.test_done_callbacks,
-                function(callback)
-                {
-                    callback(test, this_obj);
-                });
-        this.processing_callbacks = false;
-        if (this_obj.all_done()) {
-            this_obj.complete();
-        }
-    };
-
-    Tests.prototype.complete = function() {
-        if (this.phase === this.phases.COMPLETE) {
-            return;
-        }
-        this.phase = this.phases.COMPLETE;
-        var this_obj = this;
-        this.tests.forEach(
-            function(x)
-            {
-                if (x.phase < x.phases.COMPLETE) {
-                    this_obj.notify_result(x);
-                    x.cleanup();
-                    x.phase = x.phases.COMPLETE;
-                }
-            }
-        );
-        this.notify_complete();
-    };
-
-    Tests.prototype.notify_complete = function() {
-        var this_obj = this;
-        if (this.status.status === null) {
-            this.status.status = this.status.OK;
-        }
-
-        forEach (this.all_done_callbacks,
-                 function(callback)
-                 {
-                     callback(this_obj.tests, this_obj.status);
-                 });
-    };
-
-    Tests.prototype.fetch_tests_from_worker = function(worker) {
-        if (this.phase >= this.phases.COMPLETE) {
-            return;
-        }
-
-        this.pending_workers.push(new RemoteWorker(worker));
-    };
-
-    function fetch_tests_from_worker(port) {
-        tests.fetch_tests_from_worker(port);
-    }
-    expose(fetch_tests_from_worker, 'fetch_tests_from_worker');
-
-    function timeout() {
-        if (tests.timeout_length === null) {
-            tests.timeout();
-        }
-    }
-    expose(timeout, 'timeout');
-
-    function add_start_callback(callback) {
-        tests.start_callbacks.push(callback);
-    }
-
-    function add_test_state_callback(callback) {
-        tests.test_state_callbacks.push(callback);
-    }
-
-    function add_result_callback(callback)
-    {
-        tests.test_done_callbacks.push(callback);
-    }
-
-    function add_completion_callback(callback)
-    {
-       tests.all_done_callbacks.push(callback);
-    }
-
-    expose(add_start_callback, 'add_start_callback');
-    expose(add_test_state_callback, 'add_test_state_callback');
-    expose(add_result_callback, 'add_result_callback');
-    expose(add_completion_callback, 'add_completion_callback');
-
-    /*
-     * Output listener
-    */
-
-    function Output() {
-        this.output_document = document;
-        this.output_node = null;
-        this.enabled = settings.output;
-        this.phase = this.INITIAL;
-    }
-
-    Output.prototype.INITIAL = 0;
-    Output.prototype.STARTED = 1;
-    Output.prototype.HAVE_RESULTS = 2;
-    Output.prototype.COMPLETE = 3;
-
-    Output.prototype.setup = function(properties) {
-        if (this.phase > this.INITIAL) {
-            return;
-        }
-
-        //If output is disabled in testharnessreport.js the test shouldn't be
-        //able to override that
-        this.enabled = this.enabled && (properties.hasOwnProperty("output") ?
-                                        properties.output : settings.output);
-    };
-
-    Output.prototype.init = function(properties) {
-        if (this.phase >= this.STARTED) {
-            return;
-        }
-        if (properties.output_document) {
-            this.output_document = properties.output_document;
-        } else {
-            this.output_document = document;
-        }
-        this.phase = this.STARTED;
-    };
-
-    Output.prototype.resolve_log = function() {
-        var output_document;
-        if (typeof this.output_document === "function") {
-            output_document = this.output_document.apply(undefined);
-        } else {
-            output_document = this.output_document;
-        }
-        if (!output_document) {
-            return;
-        }
-        var node = output_document.getElementById("log");
-        if (!node) {
-            if (!document.body || document.readyState == "loading") {
-                return;
-            }
-            node = output_document.createElement("div");
-            node.id = "log";
-            output_document.body.appendChild(node);
-        }
-        this.output_document = output_document;
-        this.output_node = node;
-    };
-
-    Output.prototype.show_status = function() {
-        if (this.phase < this.STARTED) {
-            this.init();
-        }
-        if (!this.enabled) {
-            return;
-        }
-        if (this.phase < this.HAVE_RESULTS) {
-            this.resolve_log();
-            this.phase = this.HAVE_RESULTS;
-        }
-        var done_count = tests.tests.length - tests.num_pending;
-        if (this.output_node) {
-            if (done_count < 100 ||
-                (done_count < 1000 && done_count % 100 === 0) ||
-                done_count % 1000 === 0) {
-                this.output_node.textContent = "Running, " +
-                    done_count + " complete, " +
-                    tests.num_pending + " remain";
-            }
-        }
-    };
-
-    Output.prototype.show_results = function (tests, harness_status) {
-        if (this.phase >= this.COMPLETE) {
-            return;
-        }
-        if (!this.enabled) {
-            return;
-        }
-        if (!this.output_node) {
-            this.resolve_log();
-        }
-        this.phase = this.COMPLETE;
-
-        var log = this.output_node;
-        if (!log) {
-            return;
-        }
-        var output_document = this.output_document;
-
-        while (log.lastChild) {
-            log.removeChild(log.lastChild);
-        }
-
-        var script_prefix = null;
-        var scripts = document.getElementsByTagName("script");
-        for (var i = 0; i < scripts.length; i++) {
-            var src;
-            if (scripts[i].src) {
-                src = scripts[i].src;
-            } else if (scripts[i].href) {
-                //SVG case
-                src = scripts[i].href.baseVal;
-            }
-
-            var matches = src && src.match(/^(.*\/|)testharness\.js$/);
-            if (matches) {
-                script_prefix = matches[1];
-                break;
-            }
-        }
-
-        if (script_prefix !== null) {
-            var stylesheet = output_document.createElementNS(xhtml_ns, "link");
-            stylesheet.setAttribute("rel", "stylesheet");
-            stylesheet.setAttribute("href", script_prefix + "testharness.css");
-            var heads = output_document.getElementsByTagName("head");
-            if (heads.length) {
-                heads[0].appendChild(stylesheet);
-            }
-        }
-
-        var status_text_harness = {};
-        status_text_harness[harness_status.OK] = "OK";
-        status_text_harness[harness_status.ERROR] = "Error";
-        status_text_harness[harness_status.TIMEOUT] = "Timeout";
-
-        var status_text = {};
-        status_text[Test.prototype.PASS] = "Pass";
-        status_text[Test.prototype.FAIL] = "Fail";
-        status_text[Test.prototype.TIMEOUT] = "Timeout";
-        status_text[Test.prototype.NOTRUN] = "Not Run";
-
-        var status_number = {};
-        forEach(tests,
-                function(test) {
-                    var status = status_text[test.status];
-                    if (status_number.hasOwnProperty(status)) {
-                        status_number[status] += 1;
-                    } else {
-                        status_number[status] = 1;
-                    }
-                });
-
-        function status_class(status)
-        {
-            return status.replace(/\s/g, '').toLowerCase();
-        }
-
-        var summary_template = ["section", {"id":"summary"},
-                                ["h2", {}, "Summary"],
-                                function()
-                                {
-
-                                    var status = status_text_harness[harness_status.status];
-                                    var rv = [["section", {},
-                                               ["p", {},
-                                                "Harness status: ",
-                                                ["span", {"class":status_class(status)},
-                                                 status
-                                                ],
-                                               ]
-                                              ]];
-
-                                    if (harness_status.status === harness_status.ERROR) {
-                                        rv[0].push(["pre", {}, harness_status.message]);
-                                    }
-                                    return rv;
-                                },
-                                ["p", {}, "Found ${num_tests} tests"],
-                                function() {
-                                    var rv = [["div", {}]];
-                                    var i = 0;
-                                    while (status_text.hasOwnProperty(i)) {
-                                        if (status_number.hasOwnProperty(status_text[i])) {
-                                            var status = status_text[i];
-                                            rv[0].push(["div", {"class":status_class(status)},
-                                                        ["label", {},
-                                                         ["input", {type:"checkbox", checked:"checked"}],
-                                                         status_number[status] + " " + status]]);
-                                        }
-                                        i++;
-                                    }
-                                    return rv;
-                                },
-                               ];
-
-        log.appendChild(render(summary_template, {num_tests:tests.length}, output_document));
-
-        forEach(output_document.querySelectorAll("section#summary label"),
-                function(element)
-                {
-                    on_event(element, "click",
-                             function(e)
-                             {
-                                 if (output_document.getElementById("results") === null) {
-                                     e.preventDefault();
-                                     return;
-                                 }
-                                 var result_class = element.parentNode.getAttribute("class");
-                                 var style_element = output_document.querySelector("style#hide-" + result_class);
-                                 var input_element = element.querySelector("input");
-                                 if (!style_element && !input_element.checked) {
-                                     style_element = output_document.createElementNS(xhtml_ns, "style");
-                                     style_element.id = "hide-" + result_class;
-                                     style_element.textContent = "table#results > tbody > tr."+result_class+"{display:none}";
-                                     output_document.body.appendChild(style_element);
-                                 } else if (style_element && input_element.checked) {
-                                     style_element.parentNode.removeChild(style_element);
-                                 }
-                             });
-                });
-
-        // This use of innerHTML plus manual escaping is not recommended in
-        // general, but is necessary here for performance.  Using textContent
-        // on each individual <td> adds tens of seconds of execution time for
-        // large test suites (tens of thousands of tests).
-        function escape_html(s)
-        {
-            return s.replace(/\&/g, "&amp;")
-                .replace(/</g, "&lt;")
-                .replace(/"/g, "&quot;")
-                .replace(/'/g, "&#39;");
-        }
-
-        function has_assertions()
-        {
-            for (var i = 0; i < tests.length; i++) {
-                if (tests[i].properties.hasOwnProperty("assert")) {
-                    return true;
-                }
-            }
-            return false;
-        }
-
-        function get_assertion(test)
-        {
-            if (test.properties.hasOwnProperty("assert")) {
-                if (Array.isArray(test.properties.assert)) {
-                    return test.properties.assert.join(' ');
-                }
-                return test.properties.assert;
-            }
-            return '';
-        }
-
-        log.appendChild(document.createElementNS(xhtml_ns, "section"));
-        var assertions = has_assertions();
-        var html = "<h2>Details</h2><table id='results' " + (assertions ? "class='assertions'" : "" ) + ">" +
-            "<thead><tr><th>Result</th><th>Test Name</th>" +
-            (assertions ? "<th>Assertion</th>" : "") +
-            "<th>Message</th></tr></thead>" +
-            "<tbody>";
-        for (var i = 0; i < tests.length; i++) {
-            html += '<tr class="' +
-                escape_html(status_class(status_text[tests[i].status])) +
-                '"><td>' +
-                escape_html(status_text[tests[i].status]) +
-                "</td><td>" +
-                escape_html(tests[i].name) +
-                "</td><td>" +
-                (assertions ? escape_html(get_assertion(tests[i])) + "</td><td>" : "") +
-                escape_html(tests[i].message ? tests[i].message : " ") +
-                "</td></tr>";
-        }
-        html += "</tbody></table>";
-        try {
-            log.lastChild.innerHTML = html;
-        } catch (e) {
-            log.appendChild(document.createElementNS(xhtml_ns, "p"))
-               .textContent = "Setting innerHTML for the log threw an exception.";
-            log.appendChild(document.createElementNS(xhtml_ns, "pre"))
-               .textContent = html;
-        }
-    };
-
-    /*
-     * Template code
-     *
-     * A template is just a javascript structure. An element is represented as:
-     *
-     * [tag_name, {attr_name:attr_value}, child1, child2]
-     *
-     * the children can either be strings (which act like text nodes), other templates or
-     * functions (see below)
-     *
-     * A text node is represented as
-     *
-     * ["{text}", value]
-     *
-     * String values have a simple substitution syntax; ${foo} represents a variable foo.
-     *
-     * It is possible to embed logic in templates by using a function in a place where a
-     * node would usually go. The function must either return part of a template or null.
-     *
-     * In cases where a set of nodes are required as output rather than a single node
-     * with children it is possible to just use a list
-     * [node1, node2, node3]
-     *
-     * Usage:
-     *
-     * render(template, substitutions) - take a template and an object mapping
-     * variable names to parameters and return either a DOM node or a list of DOM nodes
-     *
-     * substitute(template, substitutions) - take a template and variable mapping object,
-     * make the variable substitutions and return the substituted template
-     *
-     */
-
-    function is_single_node(template)
-    {
-        return typeof template[0] === "string";
-    }
-
-    function substitute(template, substitutions)
-    {
-        if (typeof template === "function") {
-            var replacement = template(substitutions);
-            if (!replacement) {
-                return null;
-            }
-
-            return substitute(replacement, substitutions);
-        }
-
-        if (is_single_node(template)) {
-            return substitute_single(template, substitutions);
-        }
-
-        return filter(map(template, function(x) {
-                              return substitute(x, substitutions);
-                          }), function(x) {return x !== null;});
-    }
-
-    function substitute_single(template, substitutions)
-    {
-        var substitution_re = /\$\{([^ }]*)\}/g;
-
-        function do_substitution(input) {
-            var components = input.split(substitution_re);
-            var rv = [];
-            for (var i = 0; i < components.length; i += 2) {
-                rv.push(components[i]);
-                if (components[i + 1]) {
-                    rv.push(String(substitutions[components[i + 1]]));
-                }
-            }
-            return rv;
-        }
-
-        function substitute_attrs(attrs, rv)
-        {
-            rv[1] = {};
-            for (var name in template[1]) {
-                if (attrs.hasOwnProperty(name)) {
-                    var new_name = do_substitution(name).join("");
-                    var new_value = do_substitution(attrs[name]).join("");
-                    rv[1][new_name] = new_value;
-                }
-            }
-        }
-
-        function substitute_children(children, rv)
-        {
-            for (var i = 0; i < children.length; i++) {
-                if (children[i] instanceof Object) {
-                    var replacement = substitute(children[i], substitutions);
-                    if (replacement !== null) {
-                        if (is_single_node(replacement)) {
-                            rv.push(replacement);
-                        } else {
-                            extend(rv, replacement);
-                        }
-                    }
-                } else {
-                    extend(rv, do_substitution(String(children[i])));
-                }
-            }
-            return rv;
-        }
-
-        var rv = [];
-        rv.push(do_substitution(String(template[0])).join(""));
-
-        if (template[0] === "{text}") {
-            substitute_children(template.slice(1), rv);
-        } else {
-            substitute_attrs(template[1], rv);
-            substitute_children(template.slice(2), rv);
-        }
-
-        return rv;
-    }
-
-    function make_dom_single(template, doc)
-    {
-        var output_document = doc || document;
-        var element;
-        if (template[0] === "{text}") {
-            element = output_document.createTextNode("");
-            for (var i = 1; i < template.length; i++) {
-                element.data += template[i];
-            }
-        } else {
-            element = output_document.createElementNS(xhtml_ns, template[0]);
-            for (var name in template[1]) {
-                if (template[1].hasOwnProperty(name)) {
-                    element.setAttribute(name, template[1][name]);
-                }
-            }
-            for (var i = 2; i < template.length; i++) {
-                if (template[i] instanceof Object) {
-                    var sub_element = make_dom(template[i]);
-                    element.appendChild(sub_element);
-                } else {
-                    var text_node = output_document.createTextNode(template[i]);
-                    element.appendChild(text_node);
-                }
-            }
-        }
-
-        return element;
-    }
-
-    function make_dom(template, substitutions, output_document)
-    {
-        if (is_single_node(template)) {
-            return make_dom_single(template, output_document);
-        }
-
-        return map(template, function(x) {
-                       return make_dom_single(x, output_document);
-                   });
-    }
-
-    function render(template, substitutions, output_document)
-    {
-        return make_dom(substitute(template, substitutions), output_document);
-    }
-
-    /*
-     * Utility funcions
-     */
-    function assert(expected_true, function_name, description, error, substitutions)
-    {
-        if (tests.tests.length === 0) {
-            tests.set_file_is_test();
-        }
-        if (expected_true !== true) {
-            var msg = make_message(function_name, description,
-                                   error, substitutions);
-            throw new AssertionError(msg);
-        }
-    }
-
-    function AssertionError(message)
-    {
-        this.message = message;
-    }
-
-    AssertionError.prototype.toString = function() {
-        return this.message;
-    };
-
-    function make_message(function_name, description, error, substitutions)
-    {
-        for (var p in substitutions) {
-            if (substitutions.hasOwnProperty(p)) {
-                substitutions[p] = format_value(substitutions[p]);
-            }
-        }
-        var node_form = substitute(["{text}", "${function_name}: ${description}" + error],
-                                   merge({function_name:function_name,
-                                          description:(description?description + " ":"")},
-                                          substitutions));
-        return node_form.slice(1).join("");
-    }
-
-    function filter(array, callable, thisObj) {
-        var rv = [];
-        for (var i = 0; i < array.length; i++) {
-            if (array.hasOwnProperty(i)) {
-                var pass = callable.call(thisObj, array[i], i, array);
-                if (pass) {
-                    rv.push(array[i]);
-                }
-            }
-        }
-        return rv;
-    }
-
-    function map(array, callable, thisObj)
-    {
-        var rv = [];
-        rv.length = array.length;
-        for (var i = 0; i < array.length; i++) {
-            if (array.hasOwnProperty(i)) {
-                rv[i] = callable.call(thisObj, array[i], i, array);
-            }
-        }
-        return rv;
-    }
-
-    function extend(array, items)
-    {
-        Array.prototype.push.apply(array, items);
-    }
-
-    function forEach (array, callback, thisObj)
-    {
-        for (var i = 0; i < array.length; i++) {
-            if (array.hasOwnProperty(i)) {
-                callback.call(thisObj, array[i], i, array);
-            }
-        }
-    }
-
-    function merge(a,b)
-    {
-        var rv = {};
-        var p;
-        for (p in a) {
-            rv[p] = a[p];
-        }
-        for (p in b) {
-            rv[p] = b[p];
-        }
-        return rv;
-    }
-
-    function expose(object, name)
-    {
-        var components = name.split(".");
-        var target = test_environment.global_scope();
-        for (var i = 0; i < components.length - 1; i++) {
-            if (!(components[i] in target)) {
-                target[components[i]] = {};
-            }
-            target = target[components[i]];
-        }
-        target[components[components.length - 1]] = object;
-    }
-
-    function is_same_origin(w) {
-        try {
-            'random_prop' in w;
-            return true;
-        } catch (e) {
-            return false;
-        }
-    }
-
-    function supports_post_message(w)
-    {
-        var supports;
-        var type;
-        // Given IE  implements postMessage across nested iframes but not across
-        // windows or tabs, you can't infer cross-origin communication from the presence
-        // of postMessage on the current window object only.
-        //
-        // Touching the postMessage prop on a window can throw if the window is
-        // not from the same origin AND post message is not supported in that
-        // browser. So just doing an existence test here won't do, you also need
-        // to wrap it in a try..cacth block.
-        try {
-            type = typeof w.postMessage;
-            if (type === "function") {
-                supports = true;
-            }
-
-            // IE8 supports postMessage, but implements it as a host object which
-            // returns "object" as its `typeof`.
-            else if (type === "object") {
-                supports = true;
-            }
-
-            // This is the case where postMessage isn't supported AND accessing a
-            // window property across origins does NOT throw (e.g. old Safari browser).
-            else {
-                supports = false;
-            }
-        } catch (e) {
-            // This is the case where postMessage isn't supported AND accessing a
-            // window property across origins throws (e.g. old Firefox browser).
-            supports = false;
-        }
-        return supports;
-    }
-
-    /**
-     * Setup globals
-     */
-
-    var tests = new Tests();
-
-    addEventListener("error", function(e) {
-        if (tests.file_is_test) {
-            var test = tests.tests[0];
-            if (test.phase >= test.phases.HAS_RESULT) {
-                return;
-            }
-            var message = e.message;
-            test.set_status(test.FAIL, message);
-            test.phase = test.phases.HAS_RESULT;
-            test.done();
-            done();
-        } else if (!tests.allow_uncaught_exception) {
-            tests.status.status = tests.status.ERROR;
-            tests.status.message = e.message;
-        }
-    });
-
-    test_environment.on_tests_ready();
-
-})();
-// vim: set expandtab shiftwidth=4 tabstop=4:
diff --git a/common/tct-messaging-sms-tizen-tests/resources/testharnessreport.js b/common/tct-messaging-sms-tizen-tests/resources/testharnessreport.js
deleted file mode 100755 (executable)
index d7df7e2..0000000
+++ /dev/null
@@ -1,397 +0,0 @@
-/*global add_completion_callback, setup */
-/*
- * This file is intended for vendors to implement
- * code needed to integrate testharness.js tests with their own test systems.
- *
- * The default implementation extracts metadata from the tests and validates
- * it against the cached version that should be present in the test source
- * file. If the cache is not found or is out of sync, source code suitable for
- * caching the metadata is optionally generated.
- *
- * The cached metadata is present for extraction by test processing tools that
- * are unable to execute javascript.
- *
- * Metadata is attached to tests via the properties parameter in the test
- * constructor. See testharness.js for details.
- *
- * Typically test system integration will attach callbacks when each test has
- * run, using add_result_callback(callback(test)), or when the whole test file
- * has completed, using
- * add_completion_callback(callback(tests, harness_status)).
- *
- * For more documentation about the callback functions and the
- * parameters they are called with see testharness.js
- */
-
-
-
-var metadata_generator = {
-
-    currentMetadata: {},
-    cachedMetadata: false,
-    metadataProperties: ['help', 'assert', 'author'],
-
-    error: function(message) {
-        var messageElement = document.createElement('p');
-        messageElement.setAttribute('class', 'error');
-        this.appendText(messageElement, message);
-
-        var summary = document.getElementById('summary');
-        if (summary) {
-            summary.parentNode.insertBefore(messageElement, summary);
-        }
-        else {
-            document.body.appendChild(messageElement);
-        }
-    },
-
-    /**
-     * Ensure property value has contact information
-     */
-    validateContact: function(test, propertyName) {
-        var result = true;
-        var value = test.properties[propertyName];
-        var values = Array.isArray(value) ? value : [value];
-        for (var index = 0; index < values.length; index++) {
-            value = values[index];
-            var re = /(\S+)(\s*)<(.*)>(.*)/;
-            if (! re.test(value)) {
-                re = /(\S+)(\s+)(http[s]?:\/\/)(.*)/;
-                if (! re.test(value)) {
-                    this.error('Metadata property "' + propertyName +
-                        '" for test: "' + test.name +
-                        '" must have name and contact information ' +
-                        '("name <email>" or "name http(s)://")');
-                    result = false;
-                }
-            }
-        }
-        return result;
-    },
-
-    /**
-     * Extract metadata from test object
-     */
-    extractFromTest: function(test) {
-        var testMetadata = {};
-        // filter out metadata from other properties in test
-        for (var metaIndex = 0; metaIndex < this.metadataProperties.length;
-             metaIndex++) {
-            var meta = this.metadataProperties[metaIndex];
-            if (test.properties.hasOwnProperty(meta)) {
-                if ('author' == meta) {
-                    this.validateContact(test, meta);
-                }
-                testMetadata[meta] = test.properties[meta];
-            }
-        }
-        return testMetadata;
-    },
-
-    /**
-     * Compare cached metadata to extracted metadata
-     */
-    validateCache: function() {
-        for (var testName in this.currentMetadata) {
-            if (! this.cachedMetadata.hasOwnProperty(testName)) {
-                return false;
-            }
-            var testMetadata = this.currentMetadata[testName];
-            var cachedTestMetadata = this.cachedMetadata[testName];
-            delete this.cachedMetadata[testName];
-
-            for (var metaIndex = 0; metaIndex < this.metadataProperties.length;
-                 metaIndex++) {
-                var meta = this.metadataProperties[metaIndex];
-                if (cachedTestMetadata.hasOwnProperty(meta) &&
-                    testMetadata.hasOwnProperty(meta)) {
-                    if (Array.isArray(cachedTestMetadata[meta])) {
-                      if (! Array.isArray(testMetadata[meta])) {
-                          return false;
-                      }
-                      if (cachedTestMetadata[meta].length ==
-                          testMetadata[meta].length) {
-                          for (var index = 0;
-                               index < cachedTestMetadata[meta].length;
-                               index++) {
-                              if (cachedTestMetadata[meta][index] !=
-                                  testMetadata[meta][index]) {
-                                  return false;
-                              }
-                          }
-                      }
-                      else {
-                          return false;
-                      }
-                    }
-                    else {
-                      if (Array.isArray(testMetadata[meta])) {
-                        return false;
-                      }
-                      if (cachedTestMetadata[meta] != testMetadata[meta]) {
-                        return false;
-                      }
-                    }
-                }
-                else if (cachedTestMetadata.hasOwnProperty(meta) ||
-                         testMetadata.hasOwnProperty(meta)) {
-                    return false;
-                }
-            }
-        }
-        for (var testName in this.cachedMetadata) {
-            return false;
-        }
-        return true;
-    },
-
-    appendText: function(elemement, text) {
-        elemement.appendChild(document.createTextNode(text));
-    },
-
-    jsonifyArray: function(arrayValue, indent) {
-        var output = '[';
-
-        if (1 == arrayValue.length) {
-            output += JSON.stringify(arrayValue[0]);
-        }
-        else {
-            for (var index = 0; index < arrayValue.length; index++) {
-                if (0 < index) {
-                    output += ',\n  ' + indent;
-                }
-                output += JSON.stringify(arrayValue[index]);
-            }
-        }
-        output += ']';
-        return output;
-    },
-
-    jsonifyObject: function(objectValue, indent) {
-        var output = '{';
-        var value;
-
-        var count = 0;
-        for (var property in objectValue) {
-            ++count;
-            if (Array.isArray(objectValue[property]) ||
-                ('object' == typeof(value))) {
-                ++count;
-            }
-        }
-        if (1 == count) {
-            for (var property in objectValue) {
-                output += ' "' + property + '": ' +
-                    JSON.stringify(objectValue[property]) +
-                    ' ';
-            }
-        }
-        else {
-            var first = true;
-            for (var property in objectValue) {
-                if (! first) {
-                    output += ',';
-                }
-                first = false;
-                output += '\n  ' + indent + '"' + property + '": ';
-                value = objectValue[property];
-                if (Array.isArray(value)) {
-                    output += this.jsonifyArray(value, indent +
-                        '                '.substr(0, 5 + property.length));
-                }
-                else if ('object' == typeof(value)) {
-                    output += this.jsonifyObject(value, indent + '  ');
-                }
-                else {
-                    output += JSON.stringify(value);
-                }
-            }
-            if (1 < output.length) {
-                output += '\n' + indent;
-            }
-        }
-        output += '}';
-        return output;
-    },
-
-    /**
-     * Generate javascript source code for captured metadata
-     * Metadata is in pretty-printed JSON format
-     */
-    generateSource: function() {
-        var source =
-            '<script id="metadata_cache">/*\n' +
-            this.jsonifyObject(this.currentMetadata, '') + '\n' +
-            '*/</script>\n';
-        return source;
-    },
-
-    /**
-     * Add element containing metadata source code
-     */
-    addSourceElement: function(event) {
-        var sourceWrapper = document.createElement('div');
-        sourceWrapper.setAttribute('id', 'metadata_source');
-
-        var instructions = document.createElement('p');
-        if (this.cachedMetadata) {
-            this.appendText(instructions,
-                'Replace the existing <script id="metadata_cache"> element ' +
-                'in the test\'s <head> with the following:');
-        }
-        else {
-            this.appendText(instructions,
-                'Copy the following into the <head> element of the test ' +
-                'or the test\'s metadata sidecar file:');
-        }
-        sourceWrapper.appendChild(instructions);
-
-        var sourceElement = document.createElement('pre');
-        this.appendText(sourceElement, this.generateSource());
-
-        sourceWrapper.appendChild(sourceElement);
-
-        var messageElement = document.getElementById('metadata_issue');
-        messageElement.parentNode.insertBefore(sourceWrapper,
-                                               messageElement.nextSibling);
-        messageElement.parentNode.removeChild(messageElement);
-
-        (event.preventDefault) ? event.preventDefault() :
-                                 event.returnValue = false;
-    },
-
-    /**
-     * Extract the metadata cache from the cache element if present
-     */
-    getCachedMetadata: function() {
-        var cacheElement = document.getElementById('metadata_cache');
-
-        if (cacheElement) {
-            var cacheText = cacheElement.firstChild.nodeValue;
-            var openBrace = cacheText.indexOf('{');
-            var closeBrace = cacheText.lastIndexOf('}');
-            if ((-1 < openBrace) && (-1 < closeBrace)) {
-                cacheText = cacheText.slice(openBrace, closeBrace + 1);
-                try {
-                    this.cachedMetadata = JSON.parse(cacheText);
-                }
-                catch (exc) {
-                    this.cachedMetadata = 'Invalid JSON in Cached metadata. ';
-                }
-            }
-            else {
-                this.cachedMetadata = 'Metadata not found in cache element. ';
-            }
-        }
-    },
-
-    /**
-     * Main entry point, extract metadata from tests, compare to cached version
-     * if present.
-     * If cache not present or differs from extrated metadata, generate an error
-     */
-    process: function(tests) {
-        for (var index = 0; index < tests.length; index++) {
-            var test = tests[index];
-            if (this.currentMetadata.hasOwnProperty(test.name)) {
-                this.error('Duplicate test name: ' + test.name);
-            }
-            else {
-                this.currentMetadata[test.name] = this.extractFromTest(test);
-            }
-        }
-
-        this.getCachedMetadata();
-
-        var message = null;
-        var messageClass = 'warning';
-        var showSource = false;
-
-        if (0 === tests.length) {
-            if (this.cachedMetadata) {
-                message = 'Cached metadata present but no tests. ';
-            }
-        }
-        else if (1 === tests.length) {
-            if (this.cachedMetadata) {
-                message = 'Single test files should not have cached metadata. ';
-            }
-            else {
-                var testMetadata = this.currentMetadata[tests[0].name];
-                for (var meta in testMetadata) {
-                    if (testMetadata.hasOwnProperty(meta)) {
-                        message = 'Single tests should not have metadata. ' +
-                                  'Move metadata to <head>. ';
-                        break;
-                    }
-                }
-            }
-        }
-        else {
-            if (this.cachedMetadata) {
-                messageClass = 'error';
-                if ('string' == typeof(this.cachedMetadata)) {
-                    message = this.cachedMetadata;
-                    showSource = true;
-                }
-                else if (! this.validateCache()) {
-                    message = 'Cached metadata out of sync. ';
-                    showSource = true;
-                }
-            }
-        }
-
-        if (message) {
-            var messageElement = document.createElement('p');
-            messageElement.setAttribute('id', 'metadata_issue');
-            messageElement.setAttribute('class', messageClass);
-            this.appendText(messageElement, message);
-
-            if (showSource) {
-                var link = document.createElement('a');
-                this.appendText(link, 'Click for source code.');
-                link.setAttribute('href', '#');
-                link.setAttribute('onclick',
-                                  'metadata_generator.addSourceElement(event)');
-                messageElement.appendChild(link);
-            }
-
-            var summary = document.getElementById('summary');
-            if (summary) {
-                summary.parentNode.insertBefore(messageElement, summary);
-            }
-            else {
-                var log = document.getElementById('log');
-                if (log) {
-                    log.appendChild(messageElement);
-                }
-            }
-        }
-    },
-
-    setup: function() {
-        add_completion_callback(
-            function (tests, harness_status) {
-                metadata_generator.process(tests, harness_status);
-            });
-    }
-};
-
-metadata_generator.setup();
-
-/* If the parent window has a testharness_properties object,
- * we use this to provide the test settings. This is used by the
- * default in-browser runner to configure the timeout and the
- * rendering of results
- */
-try {
-    if (window.opener && "testharness_properties" in window.opener) {
-        /* If we pass the testharness_properties object as-is here without
-         * JSON stringifying and reparsing it, IE fails & emits the message
-         * "Could not complete the operation due to error 80700019".
-         */
-        setup(JSON.parse(JSON.stringify(window.opener.testharness_properties)));
-    }
-} catch (e) {
-}
-// vim: set expandtab shiftwidth=4 tabstop=4:
diff --git a/common/tct-messaging-sms-tizen-tests/suite.json b/common/tct-messaging-sms-tizen-tests/suite.json
deleted file mode 100755 (executable)
index 4441fa8..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-{
-    "pkg-blacklist": [
-        "config.xml",
-        "pack.py",
-        "testcase.xsl",
-        "testresult.xsl",
-        "tests.css",
-        "icon.png",
-        "manifest.json",
-        "suite.json",
-        "inst.*"
-    ],
-    "pkg-list": {
-        "apk,cordova": {
-            "blacklist": [
-                "*"
-            ],
-            "copylist": {
-                "inst.apk.py": "inst.py",
-                "tests.full.xml": "tests.full.xml",
-                "tests.xml": "tests.xml"
-            },
-            "pkg-app": {
-                "sign-flag": "true"
-            }
-        },
-        "apk-aio, cordova-aio": {
-            "blacklist": []
-        },
-        "wgt": {
-            "blacklist": [
-                "messaging",
-                "COPYING",
-                "LICENSE.*",
-                "NOTICE",
-                "README",
-                "resources",
-                "tests.full.xml",
-                "webrunner"
-            ],
-            "copylist": {
-                "inst.wgt.py": "inst.py",
-                "askpolicy.sh": "askpolicy.sh",
-                "tests.full.xml": "tests.full.xml",
-                "tests.xml": "tests.xml"
-            },
-            "pkg-app": {
-                "sign-flag": "true"
-            }
-        },
-        "xpk": {
-            "blacklist": [
-                "*"
-            ],
-            "copylist": {
-                "inst.xpk.py": "inst.py",
-                "tests.full.xml": "tests.full.xml",
-                "tests.xml": "tests.xml"
-            },
-            "pkg-app": {
-                "blacklist": [],
-                "sign-flag": "true"
-            }
-        }
-    },
-    "pkg-name": "tct-messaging-sms-tizen-tests"
-}
diff --git a/common/tct-messaging-sms-tizen-tests/testcase.xsl b/common/tct-messaging-sms-tizen-tests/testcase.xsl
deleted file mode 100755 (executable)
index fb32685..0000000
+++ /dev/null
@@ -1,200 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-  <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
-  <xsl:template match="/">
-    <html>
-      <STYLE type="text/css">
-        @import "tests.css";
-      </STYLE>
-      <head>
-        <script type="text/javascript" src="jquery.min.js"/>
-      </head>
-      <body>
-        <div id="testcasepage">
-          <div id="title">
-            <table>
-              <tr>
-                <td>
-                  <h1>Test Cases</h1>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="suites">
-            <a name="contents"/>
-            <table>
-              <tr>
-                <th>Test Suite</th>
-                <th>Total</th>
-                <th>Auto</th>
-                <th>Manual</th>
-              </tr>
-              <tr>
-                <td>
-                  Total
-                </td>
-                <td>
-                  <xsl:value-of select="count(test_definition/suite/set//testcase)"/>
-                </td>
-                <td>
-                  <xsl:value-of select="count(test_definition/suite/set//testcase[@execution_type = 'auto'])"/>
-                </td>
-                <td>
-                  <xsl:value-of select="count(test_definition/suite/set//testcase[@execution_type != 'auto'])"/>
-                </td>
-              </tr>
-              <xsl:for-each select="test_definition/suite">
-                <tr>
-                  <td>
-                    <a>
-                      <xsl:attribute name="href">
-                        #<xsl:value-of select="@name"/>
-                      </xsl:attribute>
-                      <xsl:value-of select="@name"/>
-                    </a>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase)"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set/testcase[@execution_type = 'auto'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set/testcase[@execution_type != 'auto'])"/>
-                  </td>
-                </tr>
-              </xsl:for-each>
-            </table>
-          </div>
-          <div id="title">
-            <table>
-              <tr>
-                <td class="title">
-                  <h1>Detailed Test Cases</h1>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="cases">
-            <xsl:for-each select="test_definition/suite">
-              <xsl:sort select="@name"/>
-              <div id="btc">
-                <a href="#contents">Back to Contents</a>
-              </div>
-              <div id="suite_title">
-                Test Suite:
-                <xsl:value-of select="@name"/>
-                <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
-              </div>
-              <table>
-                <tr>
-                  <th>Case_ID</th>
-                  <th>Purpose</th>
-                  <th>Type</th>
-                  <th>Component</th>
-                  <th>Execution Type</th>
-                  <th>Description</th>
-                  <th>Specification</th>
-                </tr>
-                <xsl:for-each select=".//set">
-                  <xsl:sort select="@name"/>
-                  <tr>
-                    <td colspan="7">
-                      Test Set:
-                      <xsl:value-of select="@name"/>
-                    </td>
-                  </tr>
-                  <xsl:for-each select=".//testcase">
-                    <!-- xsl:sort select="@id" /> -->
-                    <tr>
-                      <td>
-                        <xsl:value-of select="@id"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@purpose"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@type"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@component"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@execution_type"/>
-                      </td>
-                      <td>
-                        <p>
-                          Pre_condition:
-                          <xsl:value-of select=".//description/pre_condition"/>
-                        </p>
-                        <p>
-                          Post_condition:
-                          <xsl:value-of select=".//description/post_condition"/>
-                        </p>
-                        <p>
-                          Test Script Entry:
-                          <xsl:value-of select=".//description/test_script_entry"/>
-                        </p>
-                        <p>
-                          Steps:
-                          <p/>
-                          <xsl:for-each select=".//description/steps/step"><xsl:sort select="@order"/>
-                            Step
-                            <xsl:value-of select="@order"/>
-                            :
-                            <xsl:value-of select="./step_desc"/>
-                            ;
-                            <p/>
-                            Expected Result:
-                            <xsl:value-of select="./expected"/>
-                            <p/>
-                          </xsl:for-each>
-                        </p>
-                      </td>
-                      <td>
-                        <xsl:for-each select=".//specs/spec"><b>[Spec_Assertion]:</b><br/>
-                          [Category]:
-                          <xsl:value-of select="./spec_assertion/@category"/>
-                          <br/>
-                          [Section]:
-                          <xsl:value-of select="./spec_assertion/@section"/>
-                          <br/>
-                          [Specification]:
-                          <xsl:value-of select="./spec_assertion/@specification"/>
-                          <br/>
-                          [Interface]:
-                          <xsl:value-of select="./spec_assertion/@interface"/>
-                          <br/>
-                          <xsl:choose><xsl:when test="./spec_assertion/@element_name">
-                              [<xsl:value-of select="./spec_assertion/@element_type"/>]:
-                              <xsl:value-of select="./spec_assertion/@element_name"/>
-                              <br/>
-                            </xsl:when></xsl:choose>
-                          [URL]:
-                          <xsl:value-of select="./spec_url"/>
-                          <br/>
-                          [Statement]:
-                          <xsl:value-of select="./spec_statement"/>
-                          <br/>
-                        </xsl:for-each>
-                      </td>
-                    </tr>
-                  </xsl:for-each>
-                </xsl:for-each>
-              </table>
-            </xsl:for-each>
-          </div>
-        </div>
-        <div id="goTopBtn">
-          <img border="0" src="./back_top.png"/>
-        </div>
-        <script type="text/javascript" src="application.js"/>
-        <script language="javascript" type="text/javascript">
-          $(document).ready(function(){
-            goTopEx();
-          });
-        </script>
-      </body>
-    </html>
-  </xsl:template>
-</xsl:stylesheet>
diff --git a/common/tct-messaging-sms-tizen-tests/testresult.xsl b/common/tct-messaging-sms-tizen-tests/testresult.xsl
deleted file mode 100755 (executable)
index c5199c0..0000000
+++ /dev/null
@@ -1,491 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-  <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
-  <xsl:template match="/">
-    <html>
-      <STYLE type="text/css">
-        @import "tests.css";
-      </STYLE>
-      <head>
-        <script type="text/javascript" src="jquery.min.js"/>
-      </head>
-      <body>
-        <div id="testcasepage">
-          <div id="title">
-            <table>
-              <tr>
-                <td>
-                  <h1>Test Report</h1>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="device">
-            <table>
-              <tr>
-                <th colspan="2">Device Information</th>
-              </tr>
-              <tr>
-                <td>Device Name</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@device_name">
-                      <xsl:if test="test_definition/environment/@device_name = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@device_name"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Device Model</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@device_model">
-                      <xsl:if test="test_definition/environment/@device_model = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@device_model"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>OS Version</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@os_version">
-                      <xsl:if test="test_definition/environment/@os_version = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@os_version"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Device ID</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@device_id">
-                      <xsl:if test="test_definition/environment/@device_id = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@device_id"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Firmware Version</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@firmware_version">
-                      <xsl:if test="test_definition/environment/@firmware_version = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@firmware_version"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Build ID</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@build_id">
-                      <xsl:if test="test_definition/environment/@build_id = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@build_id"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Screen Size</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@screen_size">
-                      <xsl:if test="test_definition/environment/@screen_size = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@screen_size"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Resolution</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@resolution">
-                      <xsl:if test="test_definition/environment/@resolution = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@resolution"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Host Info</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@host">
-                      <xsl:if test="test_definition/environment/@host = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@host"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>CTS Version</td>
-                <td>
-                  <xsl:choose>
-                    <xsl:when test="test_definition/environment/@cts_version">
-                      <xsl:if test="test_definition/environment/@cts_version = ''">
-                        N/A
-                      </xsl:if>
-                      <xsl:value-of select="test_definition/environment/@cts_version"/>
-                    </xsl:when>
-                    <xsl:otherwise>
-                      N/A
-                    </xsl:otherwise>
-                  </xsl:choose>
-                </td>
-              </tr>
-              <tr>
-                <td>Others</td>
-                <td>
-                  <xsl:if test="test_definition/environment/other = ''">
-                    N/A
-                  </xsl:if>
-                  <xsl:call-template name="br-replace">
-                    <xsl:with-param name="word" select="test_definition/environment/other"/>
-                  </xsl:call-template>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="summary">
-            <table>
-              <tr>
-                <th colspan="2">Test Summary</th>
-              </tr>
-              <tr>
-                <td>Test Plan Name</td>
-                <td>
-                  <xsl:value-of select="test_definition/summary/@test_plan_name"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Tests Total</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase)"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Test Passed</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase[@result = 'PASS'])"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Test Failed</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase[@result = 'FAIL'])"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Test Block</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase[@result = 'BLOCK'])"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Test Not Run</td>
-                <td>
-                  <xsl:value-of select="count(test_definition//suite/set/testcase) - count(test_definition//suite/set/testcase[@result = 'PASS']) - count(test_definition//suite/set/testcase[@result = 'FAIL']) - count(test_definition//suite/set/testcase[@result = 'BLOCK'])"/>
-                </td>
-              </tr>
-              <tr>
-                <td>Start time</td>
-                <td>
-                  <xsl:value-of select="test_definition/summary/start_at"/>
-                </td>
-              </tr>
-              <tr>
-                <td>End time</td>
-                <td>
-                  <xsl:value-of select="test_definition/summary/end_at"/>
-                </td>
-              </tr>
-            </table>
-          </div>
-          <div id="suite_summary">
-            <div id="title">
-              <a name="contents"/>
-              <table>
-                <tr>
-                  <td class="title">
-                    <h1>Test Summary by Suite</h1>
-                  </td>
-                </tr>
-              </table>
-            </div>
-            <table>
-              <tr>
-                <th>Suite</th>
-                <th>Passed</th>
-                <th>Failed</th>
-                <th>Blocked</th>
-                <th>Not Run</th>
-                <th>Total</th>
-              </tr>
-              <xsl:for-each select="test_definition/suite">
-                <xsl:sort select="@name"/>
-                <tr>
-                  <td>
-                    <a>
-                      <xsl:attribute name="href">
-                        #<xsl:value-of select="@name"/>
-                      </xsl:attribute>
-                      <xsl:value-of select="@name"/>
-                    </a>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase[@result = 'PASS'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase[@result = 'FAIL'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase[@result = 'BLOCK'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase) - count(set//testcase[@result = 'PASS']) - count(set//testcase[@result = 'FAIL']) - count(set//testcase[@result = 'BLOCK'])"/>
-                  </td>
-                  <td>
-                    <xsl:value-of select="count(set//testcase)"/>
-                  </td>
-                </tr>
-              </xsl:for-each>
-            </table>
-          </div>
-          <div id="fail_cases">
-            <div id="title">
-              <table>
-                <tr>
-                  <td class="title">
-                    <h1 align="center">
-                      Test Failures (
-                        <xsl:value-of select="count(test_definition/suite/set//testcase[@result = 'FAIL'])"/>
-                      )
-                    </h1>
-                  </td>
-                </tr>
-              </table>
-            </div>
-            <xsl:for-each select="test_definition/suite">
-              <xsl:sort select="@name"/>
-              <div id="btc">
-                <a href="#contents">Back to Contents</a>
-              </div>
-              <div id="suite_title">
-                Test Suite:
-                <xsl:value-of select="@name"/>
-                <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
-              </div>
-              <table>
-                <tr>
-                  <th>Case_ID</th>
-                  <th>Purpose</th>
-                  <th>Result</th>
-                  <th>Stdout</th>
-                </tr>
-                <xsl:for-each select=".//set">
-                  <xsl:sort select="@name"/>
-                  <tr>
-                    <td colspan="4">
-                      Test Set:
-                      <xsl:value-of select="@name"/>
-                    </td>
-                  </tr>
-                  <xsl:for-each select=".//testcase">
-                    <xsl:sort select="@id"/>
-                    <xsl:choose>
-                      <xsl:when test="@result">
-                        <xsl:if test="@result = 'FAIL'">
-                          <tr>
-                            <td>
-                              <xsl:value-of select="@id"/>
-                            </td>
-                            <td>
-                              <xsl:value-of select="@purpose"/>
-                            </td>
-                            <td class="red_rate">
-                              <xsl:value-of select="@result"/>
-                            </td>
-                            <td>
-                              <xsl:value-of select=".//result_info/stdout"/>
-                              <xsl:if test=".//result_info/stdout = ''">
-                                N/A
-                              </xsl:if>
-                            </td>
-                          </tr>
-                        </xsl:if>
-                      </xsl:when>
-                    </xsl:choose>
-                  </xsl:for-each>
-                </xsl:for-each>
-              </table>
-            </xsl:for-each>
-          </div>
-          <div id="cases">
-            <div id="title">
-              <table>
-                <tr>
-                  <td class="title">
-                    <h1 align="center">Detailed Test Results</h1>
-                  </td>
-                </tr>
-              </table>
-            </div>
-            <xsl:for-each select="test_definition/suite">
-              <xsl:sort select="@name"/>
-              <div id="btc">
-                <a href="#contents">Back to Contents</a>
-              </div>
-              <div id="suite_title">
-                Test Suite:
-                <xsl:value-of select="@name"/>
-                <a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
-              </div>
-              <table>
-                <tr>
-                  <th>Case_ID</th>
-                  <th>Purpose</th>
-                  <th>Result</th>
-                  <th>Stdout</th>
-                </tr>
-                <xsl:for-each select=".//set">
-                  <xsl:sort select="@name"/>
-                  <tr>
-                    <td colspan="4">
-                      Test Set:
-                      <xsl:value-of select="@name"/>
-                    </td>
-                  </tr>
-                  <xsl:for-each select=".//testcase">
-                    <xsl:sort select="@id"/>
-                    <tr>
-                      <td>
-                        <xsl:value-of select="@id"/>
-                      </td>
-                      <td>
-                        <xsl:value-of select="@purpose"/>
-                      </td>
-                      <xsl:choose>
-                        <xsl:when test="@result">
-                          <xsl:if test="@result = 'FAIL'">
-                            <td class="red_rate">
-                              <xsl:value-of select="@result"/>
-                            </td>
-                          </xsl:if>
-                          <xsl:if test="@result = 'PASS'">
-                            <td class="green_rate">
-                              <xsl:value-of select="@result"/>
-                            </td>
-                          </xsl:if>
-                          <xsl:if test="@result = 'BLOCK' ">
-                            <td>
-                              BLOCK
-                            </td>
-                          </xsl:if>
-                          <xsl:if test="@result != 'BLOCK' and @result != 'FAIL' and @result != 'PASS' ">
-                            <td>
-                              Not Run
-                            </td>
-                          </xsl:if>
-                        </xsl:when>
-                        <xsl:otherwise>
-                          <td>
-                          </td>
-                        </xsl:otherwise>
-                      </xsl:choose>
-                      <td>
-                        <xsl:value-of select=".//result_info/stdout"/>
-                        <xsl:if test=".//result_info/stdout = ''">
-                          N/A
-                        </xsl:if>
-                      </td>
-                    </tr>
-                  </xsl:for-each>
-                </xsl:for-each>
-              </table>
-            </xsl:for-each>
-          </div>
-        </div>
-        <div id="goTopBtn">
-          <img border="0" src="./back_top.png"/>
-        </div>
-        <script type="text/javascript" src="application.js"/>
-        <script language="javascript" type="text/javascript">
-          $(document).ready(function(){
-            goTopEx();
-          });
-        </script>
-      </body>
-    </html>
-  </xsl:template>
-  <xsl:template name="br-replace">
-    <xsl:param name="word"/>
-    <xsl:variable name="cr">
-      <xsl:text>
-      </xsl:text>
-    </xsl:variable>
-    <xsl:choose>
-      <xsl:when test="contains($word,$cr)">
-        <xsl:value-of select="substring-before($word,$cr)"/>
-        <br/>
-        <xsl:call-template name="br-replace">
-          <xsl:with-param name="word" select="substring-after($word,$cr)"/>
-        </xsl:call-template>
-      </xsl:when>
-      <xsl:otherwise>
-        <xsl:value-of select="$word"/>
-      </xsl:otherwise>
-    </xsl:choose>
-  </xsl:template>
-</xsl:stylesheet>
diff --git a/common/tct-messaging-sms-tizen-tests/tests.css b/common/tct-messaging-sms-tizen-tests/tests.css
deleted file mode 100755 (executable)
index c2ba69b..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-@charset "UTF-8";\r
-/* CSS Document */\r
-#testcasepage div,\r
-#testcasepage h1,\r
-#testcasepage p,\r
-#testcasepage table,\r
-#testcasepage tr,\r
-#testcasepage th,\r
-#testcasepage td {\r
-  margin: 0;\r
-  padding: 0;\r
-  border: 0;\r
-  font-weight: inherit;\r
-  font-style: inherit;\r
-  font-size: 0.96em;\r
-  font-family: arial;\r
-  vertical-align: baseline;\r
-}\r
-\r
-#testcasepage p {\r
-  text-align: left;\r
-}\r
-\r
-#suite_title {\r
-  text-align: left;\r
-}\r
-\r
-#btc {\r
-  text-align: right;\r
-}\r
-\r
-#testcasepage table {\r
-  border-collapse: separate;\r
-  border-spacing: 0;\r
-  margin-bottom: 1.4em;\r
-  vertical-align: middle;\r
-}\r
-\r
-#testcasepage th,\r
-#testcasepage td {\r
-  text-align: left;\r
-  font-weight: normal;\r
-  padding: 4px 10px 4px 5px;\r
-  vertical-align: middle;\r
-}\r
-\r
-#cases table {\r
-  width: 101%;\r
-}\r
-\r
-#fail_cases table {\r
-  width: 101%;\r
-}\r
-\r
-#title table {\r
-  width: 101%;\r
-}\r
-\r
-#device table {\r
-  width: 50%;\r
-}\r
-\r
-#summary table {\r
-  width: 50%;\r
-}\r
-\r
-#testcasepage th {\r
-  border-bottom: 1px solid #000;\r
-  background-color: #AAAAAA;\r
-  border-left: 1px solid #000;\r
-  border-top: 1px solid #000;\r
-  color: #000;\r
-  font-weight: bold;\r
-  vertical-align: bottom;\r
-}\r
-\r
-#testcasepage th:last-child,\r
-#testcasepage td:last-child {\r
-  border-right: 1px solid #000;\r
-}\r
-\r
-#testcasepage td {\r
-  border-left: 1px solid;\r
-  font-weight: normal;\r
-  border-bottom: 1px solid;\r
-}\r
-\r
-#testcasepage td.yellow_rate {\r
-  background-color: #ffcc00;\r
-}\r
-\r
-#testcasepage td.green_rate {\r
-  background-color: #33cc33;\r
-}\r
-\r
-#testcasepage td.dgreen_rate {\r
-  background-color: #339933;\r
-}\r
-\r
-#testcasepage td.red_rate {\r
-  background-color: #FF3333;\r
-}\r
-\r
-#title table,\r
-#title tr,\r
-#title td {\r
-  border-left: none;\r
-  border-bottom: none;\r
-  text-align: center;\r
-}\r
-\r
-#title td:last-child {\r
-  border-right: none;\r
-}\r
-\r
-#testcasepage h1 {\r
-  font-size: 2em;\r
-  font-family: Arial, sans-serif;\r
-  font-weight: bold;\r
-  line-height: 1;\r
-  color: #000;\r
-  margin-bottom: 0.75em;\r
-  padding-top: 0.25em;\r
-  font-weight: bold;\r
-}\r
-\r
-#goTopBtn {\r
-  right: 0px;\r
-  bottom: 0px;\r
-  position: fixed; +position: absolute;\r
-  top: expression(parseInt(document.body.scrollTop) + document.body.clientHeight - 40);\r
-}\r
diff --git a/common/tct-messaging-sms-tizen-tests/tests.full.xml b/common/tct-messaging-sms-tizen-tests/tests.full.xml
deleted file mode 100755 (executable)
index 4e10f03..0000000
+++ /dev/null
@@ -1,4470 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet type="text/xsl" href="./testcase.xsl"?>
-<test_definition>
-  <suite name="tct-messaging-sms-tizen-tests" extension="crosswalk" category="Tizen Web Device APIs">
-    <set name="Messaging-SMS-1_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check ConversationArraySuccessCallback callback for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="ConversationArraySuccessCallback_onsuccess_checking">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/ConversationArraySuccessCallback_onsuccess_checking.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if FolderArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="FolderArraySuccessCallback_onsuccess_checking">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/FolderArraySuccessCallback_onsuccess_checking.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolderArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess_checking">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess_checking.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageBody (SMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute loaded of MessageBody (SMS) exists, has type Boolean and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_loaded_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_loaded_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="loaded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageId of MessageBody (SMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_messageId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_messageId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute plainBody of MessageBody (SMS) exists, has type DOMString" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_plainBody_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_plainBody_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="plainBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageConversationArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageConversationArraySuccessCallback_onsuccess_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check scenario: send a message(sms), find conversation and then remove it" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_sendFindRemove">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversation_sendFindRemove.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Checks various message attributes upon message (sms) creation" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_sms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_sms.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_sms_onsuccess">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageServiceArraySuccessCallback_sms_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute id in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_id_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_id_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method works for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_loadBodySMS">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_loadBodySMS.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if name attribute exists in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_name_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_name_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="name" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if sendMessage exist in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sendMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check whether invoking sendMessage method with improper argument throws exception properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_invalid_argument">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_invalid_argument.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly with valid argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_valid_argument">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_valid_argument.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageService (SMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method loadMessageBody of MessageService (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_loadMessageBody_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.loadMessageBody method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_missarg_message">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_missarg_message.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageStorage of MessageService (SMS) exists, has type MessageStorage and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_messageStorage_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_messageStorage_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="messageStorage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method sendMessage of MessageService (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_sendMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageService (SMS) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_type_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_type_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addCCLAddMRemoveCRemoveCCL">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addCCLAddMRemoveCRemoveCCL.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMCLaddM">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMCLaddM.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check MessageStorage.findMessages method when errorCallback is a number (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_errorCallback_TypeMismatch_1">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_errorCallback_null">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_null.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method findMessages in MessageStorage" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_findMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_sms_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_filter_sms_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_limit_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_limit_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.findMessages (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check without arguments - MessageStorage.findMessages (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_noarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_noarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with valid offset" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_offset_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_offset_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_sort_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-SMS-2_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check if method removeChangeListener in MessageStorage" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_removeChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if removeChangeListener method removes listener added by addMessagesChangeListener method" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_formessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_formessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_valid_argument">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_valid_argument.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_with_watchId">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_with_watchId.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is null (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_null">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_null.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is undefined (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_undefined">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_undefined.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is a number (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_number">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_conversations_number.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly with all callbacks (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_forsms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_forsms.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_invalid_arg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_invalid_arg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_missarg_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_sms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_sms.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when successCallback is a number (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_number">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_number.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addConversationsChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addDraftMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addFoldersChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (sms)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addMessagesChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageStorage (SMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-SMS-3_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check if method findConversations of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_id">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_id.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to endswith." type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_endswith">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_endswith.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to exist." type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to startswith." type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_startswith">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_startswith.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_type">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_type.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.findConversations (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with limit (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_limit">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_limit.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with offset (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_offset">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_offset.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_sort_to">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_sort_to.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findFolders method works properly with successCallback" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findFolders">
-        <description>
-          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method findFolders of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findFolders_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method findMessages of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_folderId_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_folderId_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_from_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_from_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_id_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_id_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_isRead_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_isRead_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check without arguments - MessageStorage.findMessages" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_timestamp_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_to_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_to_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_type_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_type_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_limit">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_limit.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with offset (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_offset">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_offset.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_sort">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_sort.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeConversations of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeConversations_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeMessages of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-SMS-4_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_updateMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_messages_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_messages_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works correctly wihtout error callback" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_updateMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_updateMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute body of Message (SMS) exists, has type MessageBody" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_body_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_body_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="body" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with function (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_function">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_function.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with empty object (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_object">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_object.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with minimum arguments (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_minargs">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_minargs.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute conversationId of Message (SMS) exists, has type MessageConvId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_conversationId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_conversationId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="conversationId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface Message (SMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute folderId of Message (SMS) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_folderId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_folderId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="folderId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute from of Message (SMS) exists, has type DOMString and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_from_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_from_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute id of Message (SMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_id_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_id_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute inResponseTo of Message (SMS) exists, has type MessageId" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_inResponseTo_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_inResponseTo_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="inResponseTo" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute isRead of Message (SMS) exists, has type Boolean" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_isRead_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_isRead_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageStatus of Message (SMS) exists, has type DOMString and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_messageStatus_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_messageStatus_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="messageStatus" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute timestamp of Message (SMS) exists, has type Date and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_timestamp_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_timestamp_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute to of Message (SMS) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_to_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_to_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type of Message (SMS) exists, has type MessageServiceTag and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withoutfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withoutfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-SMS-1_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check ConversationArraySuccessCallback callback for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="ConversationArraySuccessCallback_onsuccess_checking">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/ConversationArraySuccessCallback_onsuccess_checking.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if FolderArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="FolderArraySuccessCallback_onsuccess_checking">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/FolderArraySuccessCallback_onsuccess_checking.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageFolderArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess_checking">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess_checking.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageBody (SMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute loaded of MessageBody (SMS) exists, has type Boolean and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_loaded_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_loaded_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="loaded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageId of MessageBody (SMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_messageId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_messageId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute plainBody of MessageBody (SMS) exists, has type DOMString" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_plainBody_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_plainBody_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageBody" element_type="attribute" element_name="plainBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageConversationArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageConversationArraySuccessCallback_onsuccess_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check scenario: send a message(sms), find conversation and then remove it" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_sendFindRemove">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversation_sendFindRemove.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Checks various message attributes upon message (sms) creation" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_sms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_sms.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_sms_onsuccess">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageServiceArraySuccessCallback_sms_onsuccess.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute id in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_id_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_id_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method works for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_loadBodySMS">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_loadBodySMS.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if name attribute exists in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_name_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_name_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="name" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if sendMessage exist in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sendMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check whether invoking sendMessage method with improper argument throws exception properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_invalid_argument">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_invalid_argument.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly with valid argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_valid_argument">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_valid_argument.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageService (SMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method loadMessageBody of MessageService (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_loadMessageBody_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.loadMessageBody method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_missarg_message">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_missarg_message.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageStorage of MessageService (SMS) exists, has type MessageStorage and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_messageStorage_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_messageStorage_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="messageStorage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method sendMessage of MessageService (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_sendMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageService (SMS) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_type_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_type_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addCCLAddMRemoveCRemoveCCL">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addCCLAddMRemoveCRemoveCCL.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMCLaddM">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMCLaddM.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check MessageStorage.findMessages method when errorCallback is a number (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_errorCallback_TypeMismatch_1">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_errorCallback_null">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_null.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method findMessages in MessageStorage" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_findMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_sms_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_filter_sms_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_limit_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_limit_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.findMessages (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check without arguments - MessageStorage.findMessages (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_noarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_noarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with valid offset" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_offset_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_offset_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_sort_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-SMS-2_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check if method removeChangeListener in MessageStorage" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_removeChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if removeChangeListener method removes listener added by addMessagesChangeListener method" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_formessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_formessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_valid_argument">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_valid_argument.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_with_watchId">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_with_watchId.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is null (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_null">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_null.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is undefined (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_undefined">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_undefined.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is a number (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_number">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_conversations_number.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly with all callbacks (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_forsms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_forsms.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_invalid_arg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_invalid_arg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_missarg_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_sms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_sms.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when successCallback is a number (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_number">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_number.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addConversationsChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addDraftMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addFoldersChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (sms)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addMessagesChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageStorage (SMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-SMS-3_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check if method findConversations of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_id">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_id.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to endswith." type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_endswith">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_endswith.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to exist." type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to startswith." type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_startswith">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_startswith.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_type">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_type.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.findConversations (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with limit (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_limit">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_limit.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with offset (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_offset">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_offset.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_sort_to">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_sort_to.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findFolders method works properly with successCallback" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findFolders">
-        <description>
-          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method findFolders of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findFolders_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method findMessages of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_filter_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_folderId_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_folderId_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_from_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_from_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_id_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_id_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_isRead_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_isRead_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check without arguments - MessageStorage.findMessages" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_invalid_obj.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_timestamp_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_to_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_to_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_type_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_type_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_limit">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_limit.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with offset (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_offset">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_offset.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_sort">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_sort.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeChangeListener_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeConversations of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeConversations_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method removeMessages of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-    <set name="Messaging-SMS-4_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_updateMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_exist.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_messages_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_messages_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_missarg.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_successCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works correctly wihtout error callback" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_updateMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_updateMessages.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute body of Message (SMS) exists, has type MessageBody" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_body_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_body_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="body" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with function (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_function">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_function.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with empty object (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_object">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_object.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with minimum arguments (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_minargs">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_minargs.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute conversationId of Message (SMS) exists, has type MessageConvId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_conversationId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_conversationId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="conversationId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if instance of interface Message (SMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_extend.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute folderId of Message (SMS) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_folderId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_folderId_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="folderId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute from of Message (SMS) exists, has type DOMString and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_from_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_from_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute id of Message (SMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_id_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_id_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute inResponseTo of Message (SMS) exists, has type MessageId" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_inResponseTo_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_inResponseTo_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="inResponseTo" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute isRead of Message (SMS) exists, has type Boolean" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_isRead_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_isRead_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute messageStatus of Message (SMS) exists, has type DOMString and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_messageStatus_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_messageStatus_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="messageStatus" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute timestamp of Message (SMS) exists, has type Date and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_timestamp_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_timestamp_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute to of Message (SMS) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_to_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_to_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if attribute type of Message (SMS) exists, has type MessageServiceTag and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_type_attribute.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Message" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withoutfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withoutfilter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_with_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_without_filter.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_with_errorCallback.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-    </set>
-  </suite>
-</test_definition>
diff --git a/common/tct-messaging-sms-tizen-tests/tests.xml b/common/tct-messaging-sms-tizen-tests/tests.xml
deleted file mode 100755 (executable)
index 7673579..0000000
+++ /dev/null
@@ -1,1894 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?xml-stylesheet type="text/xsl" href="./testcase.xsl"?>
-<test_definition>
-  <suite name="tct-messaging-sms-tizen-tests" extension="crosswalk" category="Tizen Web Device APIs">
-    <set name="Messaging-SMS-1_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check ConversationArraySuccessCallback callback for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="ConversationArraySuccessCallback_onsuccess_checking">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/ConversationArraySuccessCallback_onsuccess_checking.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if FolderArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="FolderArraySuccessCallback_onsuccess_checking">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/FolderArraySuccessCallback_onsuccess_checking.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess_checking">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess_checking.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageBody (SMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute loaded of MessageBody (SMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_loaded_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_loaded_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageId of MessageBody (SMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_messageId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_messageId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute plainBody of MessageBody (SMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_plainBody_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_plainBody_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageConversationArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageConversationArraySuccessCallback_onsuccess_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check scenario: send a message(sms), find conversation and then remove it" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_sendFindRemove">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversation_sendFindRemove.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Checks various message attributes upon message (sms) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_sms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_sms.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_sms_onsuccess">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageServiceArraySuccessCallback_sms_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute id in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_id_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_id_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method works for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_loadBodySMS">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_loadBodySMS.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if name attribute exists in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_name_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_name_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if sendMessage exist in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sendMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check whether invoking sendMessage method with improper argument throws exception properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_invalid_argument">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_invalid_argument.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly with valid argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_valid_argument">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_valid_argument.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageService (SMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method loadMessageBody of MessageService (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_loadMessageBody_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.loadMessageBody method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_missarg_message">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_missarg_message.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageStorage of MessageService (SMS) exists, has type MessageStorage and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_messageStorage_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_messageStorage_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method sendMessage of MessageService (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_sendMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageService (SMS) exists, has type MessageServiceTag and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute type in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_type_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_type_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addCCLAddMRemoveCRemoveCCL">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addCCLAddMRemoveCRemoveCCL.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMCLaddM">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMCLaddM.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check MessageStorage.findMessages method when errorCallback is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_errorCallback_TypeMismatch_1">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_errorCallback_null">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_null.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method findMessages in MessageStorage" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_findMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_sms_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_filter_sms_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_limit_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_limit_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.findMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check without arguments - MessageStorage.findMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_noarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_noarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with valid offset" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_offset_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_offset_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_sort_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-SMS-2_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check if method removeChangeListener in MessageStorage" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_removeChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if removeChangeListener method removes listener added by addMessagesChangeListener method" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_formessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_formessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_valid_argument">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_valid_argument.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_with_watchId">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_with_watchId.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is null (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_null">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_null.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is undefined (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_undefined">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_undefined.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_number">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_conversations_number.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly with all callbacks (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_forsms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_forsms.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_invalid_arg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_invalid_arg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_missarg_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_sms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_sms.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when successCallback is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_number">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_number.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addConversationsChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addDraftMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addFoldersChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (sms)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addMessagesChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageStorage (SMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-SMS-3_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check if method findConversations of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_id">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_id.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to endswith." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_endswith">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_endswith.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to exist." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to startswith." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_startswith">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_startswith.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_type">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_type.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.findConversations (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with limit (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_limit">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_limit.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with offset (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_offset">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_offset.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_sort_to">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_sort_to.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findFolders method works properly with successCallback" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findFolders">
-        <description>
-          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method findFolders of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findFolders_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method findMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_folderId_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_folderId_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_from_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_from_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_id_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_id_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_isRead_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_isRead_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check without arguments - MessageStorage.findMessages" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_timestamp_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_to_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_to_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_type_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_type_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_limit">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_limit.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with offset (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_offset">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_offset.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_sort">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_sort.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeConversations of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeConversations_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-SMS-4_mobile" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_updateMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_messages_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_messages_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works correctly wihtout error callback" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_updateMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_updateMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute body of Message (SMS) exists, has type MessageBody" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_body_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_body_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with function (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_function">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_function.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with empty object (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_object">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_object.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with minimum arguments (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_minargs">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_minargs.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute conversationId of Message (SMS) exists, has type MessageConvId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_conversationId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_conversationId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface Message (SMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute folderId of Message (SMS) exists, has type MessageFolderId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_folderId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_folderId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute from of Message (SMS) exists, has type DOMString and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_from_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_from_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute id of Message (SMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_id_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_id_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute inResponseTo of Message (SMS) exists, has type MessageId" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_inResponseTo_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_inResponseTo_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute isRead of Message (SMS) exists, has type Boolean" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_isRead_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_isRead_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageStatus of Message (SMS) exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_messageStatus_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_messageStatus_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute timestamp of Message (SMS) exists, has type Date and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_timestamp_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_timestamp_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute to of Message (SMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_to_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_to_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute type of Message (SMS) exists, has type MessageServiceTag and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withoutfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withoutfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-SMS-1_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check ConversationArraySuccessCallback callback for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="ConversationArraySuccessCallback_onsuccess_checking">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/ConversationArraySuccessCallback_onsuccess_checking.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if FolderArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="FolderArraySuccessCallback_onsuccess_checking">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/FolderArraySuccessCallback_onsuccess_checking.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess_checking">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess_checking.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageBody (SMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute loaded of MessageBody (SMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_loaded_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_loaded_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageId of MessageBody (SMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_messageId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_messageId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute plainBody of MessageBody (SMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_plainBody_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_plainBody_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageConversationArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageConversationArraySuccessCallback_onsuccess_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check scenario: send a message(sms), find conversation and then remove it" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_sendFindRemove">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversation_sendFindRemove.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Checks various message attributes upon message (sms) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_sms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_sms.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_sms_onsuccess">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageServiceArraySuccessCallback_sms_onsuccess.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute id in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_id_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_id_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method works for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_loadBodySMS">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_loadBodySMS.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if name attribute exists in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_name_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_name_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if sendMessage exist in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sendMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check whether invoking sendMessage method with improper argument throws exception properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_invalid_argument">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_invalid_argument.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly with valid argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_valid_argument">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_valid_argument.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageService (SMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method loadMessageBody of MessageService (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_loadMessageBody_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.loadMessageBody method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_missarg_message">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_missarg_message.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageStorage of MessageService (SMS) exists, has type MessageStorage and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_messageStorage_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_messageStorage_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method sendMessage of MessageService (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_sendMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute type of MessageService (SMS) exists, has type MessageServiceTag and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute type in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_type_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_type_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addCCLAddMRemoveCRemoveCCL">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addCCLAddMRemoveCRemoveCCL.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMCLaddM">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMCLaddM.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check MessageStorage.findMessages method when errorCallback is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_errorCallback_TypeMismatch_1">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_errorCallback_null">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_null.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method findMessages in MessageStorage" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_findMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_sms_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_filter_sms_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_limit_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_limit_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.findMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check without arguments - MessageStorage.findMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_noarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_noarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with valid offset" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_offset_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_offset_valid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_sort_valid">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-SMS-2_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check if method removeChangeListener in MessageStorage" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_removeChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if removeChangeListener method removes listener added by addMessagesChangeListener method" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_formessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_formessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_valid_argument">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_valid_argument.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_with_watchId">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_with_watchId.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is null (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_null">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_null.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is undefined (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_undefined">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_undefined.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_number">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_conversations_number.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly with all callbacks (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_forsms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_forsms.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_invalid_arg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_invalid_arg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_missarg_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.removeConversations method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_sms">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_sms.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check MessageStorage.removeConversations method when successCallback is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_number">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_number.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addConversationsChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addDraftMessage_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addFoldersChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (sms)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addMessagesChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface MessageStorage (SMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-SMS-3_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check if method findConversations of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_id">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_id.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to endswith." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_endswith">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_endswith.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to exist." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to startswith." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_startswith">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_startswith.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_type">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_type.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.findConversations (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with limit (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_limit">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_limit.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with offset (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_offset">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_offset.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_sort_to">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_sort_to.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage::findFolders method works properly with successCallback" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findFolders">
-        <description>
-          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method findFolders of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findFolders_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method findMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for filter argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_filter_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_filter_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_folderId_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_folderId_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_from_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_from_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_id_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_id_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_isRead_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_isRead_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check without arguments - MessageStorage.findMessages" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for sort argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_invalid_obj">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_invalid_obj.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_timestamp_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_to_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_to_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_type_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_type_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_limit">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_limit.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with offset (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_offset">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_offset.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_sort">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_sort.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeChangeListener_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeChangeListener_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeConversations of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeConversations_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeConversations_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method removeMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-    <set name="Messaging-SMS-4_iot" type="js">
-      <capabilities>
-        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
-        <capability name="http://tizen.org/feature/network.telephony"/>
-      </capabilities>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_updateMessages_exist">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_messages_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_messages_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_missarg">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_missarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_successCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_successCallback.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageStorage.updateMessages method works correctly wihtout error callback" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_updateMessages">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_updateMessages.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute body of Message (SMS) exists, has type MessageBody" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_body_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_body_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with function (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_function">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_function.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with empty object (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_object">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_object.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if Message's constructor works properly with minimum arguments (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_minargs">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_minargs.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute conversationId of Message (SMS) exists, has type MessageConvId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_conversationId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_conversationId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if instance of interface Message (SMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_sms_extend">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_extend.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute folderId of Message (SMS) exists, has type MessageFolderId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_folderId_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_folderId_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute from of Message (SMS) exists, has type DOMString and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_from_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_from_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute id of Message (SMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_id_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_id_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute inResponseTo of Message (SMS) exists, has type MessageId" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_inResponseTo_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_inResponseTo_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute isRead of Message (SMS) exists, has type Boolean" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_isRead_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_isRead_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute messageStatus of Message (SMS) exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_messageStatus_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_messageStatus_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute timestamp of Message (SMS) exists, has type Date and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_timestamp_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_timestamp_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute to of Message (SMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_to_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_to_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if attribute type of Message (SMS) exists, has type MessageServiceTag and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_type_attribute">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_type_attribute.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withoutfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withoutfilter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withoutfilter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_with_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_with_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_without_filter">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_without_filter.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_invalid_cb">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices_with_errorCallback">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_with_errorCallback.html</test_script_entry>
-        </description>
-      </testcase>
-    </set>
-  </suite>
-</test_definition>
\ No newline at end of file
diff --git a/common/tct-messaging-sms-tizen-tests/webrunner/index.html b/common/tct-messaging-sms-tizen-tests/webrunner/index.html
deleted file mode 100755 (executable)
index 69cc2d6..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-<!doctype html>
-<!--
-Copyright (c) 2013 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Wang, Jing <jing.j.wang@intel.com>
-
--->
-
-<head>
-<meta name="viewport" content="width=device-width">
-<script src="jquery-1.10.2.min.js"></script>
-<style type="text/css">
-html {
-  font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;
-}
-
-body {
-  background-color: white;
-}
-
-table#browse {
-  border-collapse:collapse;
-  table-layout:fixed;width:85%;
-}
-
-table#browse th:first-child,table#browse td:first-child {width:35%;}
-
-table#browse th:last-child,table#browse td:last-child {width:25%;}
-
-table#browse th {
-  padding:0;
-  padding-bottom:0.5em;
-  text-align:left;
-  border-bottom:medium solid black;
-}
-table#browse td {
-  padding:1em;
-  padding-bottom:0.5em;
-  border-bottom:thin solid black;
-}
-div#navbar{
-  box-sizing: border-box;
-  width: 99%;
-  border: 0px;
-  text-align: left;
-  background: slateblue;
-  color: white;
-}
-div#footbar{
-  width: 99%;
-  border: 0px;
-  text-align: left;
-}
-textarea#testinfo{
-  width: 99%;
-  font-size: 0.8em;
-}
-input{
-  font-size: 1.2em;
-  padding-top: 0.1em;
-  padding-bottom: 0.1em;
-}
-
-#btnPrev,#btnNext{
-  width: 8%;
-}
-#btnExit,#btnRun,#btnSave,#btnBack,#btnPass,#btnFail,#btnBlock{
-  width: 16%;
-  font-weight: bold;
-}
-
-#btnPass { color: green;}
-#btnFail { color: red;}
-#btnBlock { color: orange;}
-#labBatch{ font-size: 0.5em;}
-#textTest { width: 53%; }
-#title { font-size: 1.4em; font-weight: bold;}
-#frmTest { border: none;}
-.listhide { display: none;}
-.short{
-  padding-left: 1em;
-}
-</style>
-</head>
-
-<body>
-<div id="navbar" class="batchhide">
-  <span class="short listhide suitehide"><input type="button" id="btnBack" value="Back"/></span>
-  <span class="short listhide suitehide">
-    <input type="button" id="btnPrev" value="<"/>
-    <input type="text"  id="textTest" readonly />
-    <input type="button" id="btnNext" value=">"/>
-  </span>
-  <span class="short tchide"> <input type="button" id="btnExit" value="Exit"/></span>
-  <span id="title" class="short tchide">Open Web Test</span>
-</div>
-<div id="divSum"> </div>
-<div width="99%" class="batchhide">
-  <textarea class="listhide suitehide" id="testinfo" rows=4 disabled>
-  </textarea>
-</div>
-<div id="footbar" class="batchhide">
-  <span class="short"><input type="button"  id="btnRun" value="Run"/></span>
-  <span class="short listhide tchide"><input type="button" id="btnSave" value="Save"/></span>
-  <span class="short listhide suitehide"><input type="button" id="btnPass" value="PASS"/></span>
-  <span class="short listhide suitehide"><input type="button" id="btnFail" value="FAIL"/></span>
-  <span class="short listhide suitehide"><input type="button" id="btnBlock" value="BLOCK"/></span>
-</div>
-<iframe width="100%" id="frmTest" allowFullScreen="true" mozAllowFullScreen="true" webkitAllowFullscreen="true" src="">
-</iframe>
-<script src="testrunner.js"> </script>
-</body>
-</html>
diff --git a/common/tct-messaging-sms-tizen-tests/webrunner/jquery-1.10.2.min.js b/common/tct-messaging-sms-tizen-tests/webrunner/jquery-1.10.2.min.js
deleted file mode 100755 (executable)
index da41706..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
-//@ sourceMappingURL=jquery-1.10.2.min.map
-*/
-(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav></:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t
-}({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Ct=/^(?:checkbox|radio)$/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle);
-u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=un(e,t),Pt.detach()),Gt[e]=n),n}function un(e,t){var n=x(t.createElement(e)).appendTo(t.body),r=x.css(n[0],"display");return n.remove(),r}x.each(["height","width"],function(e,n){x.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(x.css(e,"display"))?x.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,i),i):0)}}}),x.support.opacity||(x.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=x.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===x.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),x(function(){x.support.reliableMarginRight||(x.cssHooks.marginRight={get:function(e,n){return n?x.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!x.support.pixelPosition&&x.fn.position&&x.each(["top","left"],function(e,n){x.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?x(e).position()[n]+"px":r):t}}})}),x.expr&&x.expr.filters&&(x.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!x.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||x.css(e,"display"))},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(x.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Ct.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),x.param=function(e,n){var r,i=[],o=function(e,t){t=x.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(x.isArray(t))x.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==x.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var mn,yn,vn=x.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Cn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=x.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=o.href}catch(Ln){yn=a.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(T)||[];if(x.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(l){var u;return o[l]=!0,x.each(e[l]||[],function(e,l){var c=l(n,r,i);return"string"!=typeof c||a||o[c]?a?!(u=c):t:(n.dataTypes.unshift(c),s(c),!1)}),u}return s(n.dataTypes[0])||!o["*"]&&s("*")}function _n(e,n){var r,i,o=x.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&x.extend(!0,e,r),e}x.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,l=e.indexOf(" ");return l>=0&&(i=e.slice(l,e.length),e=e.slice(0,l)),x.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&x.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Cn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,x.ajaxSettings),t):_n(x.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,l,u,c,p=x.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?x(f):x.event,h=x.Deferred(),g=x.Callbacks("once memory"),m=p.statusCode||{},y={},v={},b=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(T)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),qn(An,p,n,C),2===b)return C;l=p.global,l&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)C.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,C,p)===!1||2===b))return C.abort();w="abort";for(i in{success:1,error:1,complete:1})C[i](p[i]);if(u=qn(jn,p,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},p.timeout));try{b=1,u.send(y,k)}catch(N){if(!(2>b))throw N;k(-1,N)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,N=n;2!==b&&(b=2,s&&clearTimeout(s),u=t,a=i||"",C.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=Mn(p,C,r)),w=On(p,w,C,c),c?(p.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(x.lastModified[o]=T),T=C.getResponseHeader("etag"),T&&(x.etag[o]=T)),204===e||"HEAD"===p.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,v=w.error,c=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(f,[y,N,C]):h.rejectWith(f,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,p,c?y:v]),g.fireWith(f,[C,N]),l&&(d.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,o){return x.isFunction(r)&&(o=o||i,i=r,r=t),x.ajax({url:e,type:n,dataType:o,data:r,success:i})}});function Mn(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in l)if(l[s]&&l[s].test(o)){u.unshift(s);break}if(u[0]in r)a=u[0];else{for(s in r){if(!u[0]||e.converters[s+" "+u[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==u[0]&&u.unshift(a),r[a]):t}function On(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=a.head||x("head")[0]||a.documentElement;return{send:function(t,i){n=a.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Fn=[],Bn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fn.pop()||x.expando+"_"+vn++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,l=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Fn.push(o)),s&&x.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=x.ajaxSettings.xhr(),x.support.cors=!!Rn&&"withCredentials"in Rn,Rn=x.support.ajax=!!Rn,Rn&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,p;try{if(r&&(i||4===l.readyState))if(r=t,a&&(l.onreadystatechange=x.noop,$n&&delete Pn[a]),i)4!==l.readyState&&l.abort();else{p={},s=l.status,u=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{c=l.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,u)},n.async?4===l.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},x(e).unload($n)),Pn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Yn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),a=(x.cssNumber[e]||"px"!==o&&+r)&&Yn.exec(x.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,x.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=x.now()}function Zn(e,t,n){var r,i=(Qn[t]||[]).concat(Qn["*"]),o=0,a=i.length;for(;a>o;o++)if(r=i[o].call(n,t,e))return r}function er(e,t,n){var r,i,o=0,a=Gn.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(tr(c,u.opts.specialEasing);a>o;o++)if(r=Gn[o].call(u,e,c,u.opts))return r;return x.map(c,Zn,u),x.isFunction(u.opts.start)&&u.opts.start.call(e,u),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function tr(e,t){var n,r,i,o,a;for(n in e)if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=x.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}x.Animation=x.extend(er,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,l,u=this,c={},p=e.style,f=e.nodeType&&nn(e),d=x._data(e,"fxshow");n.queue||(s=x._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(x.support.inlineBlockNeedsLayout&&"inline"!==ln(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",x.support.shrinkWrapBlocks||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Vn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show"))continue;c[r]=d&&d[r]||x.style(e,r)}if(!x.isEmptyObject(c)){d?"hidden"in d&&(f=d.hidden):d=x._data(e,"fxshow",{}),o&&(d.hidden=!f),f?x(e).show():u.done(function(){x(e).hide()}),u.done(function(){var t;x._removeData(e,"fxshow");for(t in c)x.style(e,t,c[t])});for(r in c)a=Zn(f?d[r]:0,r,u),r in d||(d[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}x.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=er(this,x.extend({},e),o);(i||x._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=x.timers,a=x._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=x._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}x.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=rr.prototype.init,x.fx.tick=function(){var e,n=x.timers,r=0;for(Xn=x.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||x.fx.stop(),Xn=t},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){Un||(Un=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Un),Un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){x.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,x.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},x.offset={setOffset:function(e,t,n){var r=x.css(e,"position");"static"===r&&(e.style.position="relative");var i=x(e),o=i.offset(),a=x.css(e,"top"),s=x.css(e,"left"),l=("absolute"===r||"fixed"===r)&&x.inArray("auto",[a,s])>-1,u={},c={},p,f;l?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),x.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+p),null!=t.left&&(u.left=t.left-o.left+f),"using"in t?t.using.call(e,u):i.css(u)}},x.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===x.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?x(a).scrollLeft():o,r?o:x(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return x.access(this,function(n,r,i){var o;return x.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?x.css(n,r,s):x.style(n,r,i,s)},n,a?i:t,a,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:(e.jQuery=e.$=x,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}))})(window);
diff --git a/common/tct-messaging-sms-tizen-tests/webrunner/testrunner.js b/common/tct-messaging-sms-tizen-tests/webrunner/testrunner.js
deleted file mode 100755 (executable)
index bb4da28..0000000
+++ /dev/null
@@ -1,935 +0,0 @@
-/*
-Copyright (c) 2013 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Wang, Jing <jing.j.wang@intel.com>
-
-*/
-$(function(){
-  try {
-    var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle");
-    console.log("Shape = " + shape);
-  } catch (error) {
-    console.log("Error name: " + error.name + ", message: " + error.message);
-  }
-
-  if(shape){
-    $('body').css('max-width', '100%');
-    $('body').css('max-height', '100%');
-    $('body').css('background-color', 'white');
-    $('body').css('margin-top', '8%');
-    $('body').css('margin-bottom', '5%');
-    $('body').css('margin-left', '8%');
-    $('body').css('margin-right', '8%');
-  }
-});
-
-var STUB_PORT = "";
-var RESOURCE_DIR;
-$.ajax({
-  url:"/opt/usr/home/owner/share/TCT_CONFIG",
-  data:{},
-  async:false,
-  success:function(data){
-    var regEx = /DEVICE_SUITE_TARGET_30=(.+)/i;
-    var path = regEx.exec(data);
-    RESOURCE_DIR = path[1];
-  }
-});
-$.ajax({
-  url:RESOURCE_DIR + "/tct/portconfigure.json",
-  dataType:"json",
-  data:{},
-  async:false,
-  success:function(data){
-    STUB_PORT = data[0]["STUB_PORT"];
-  }
-});
-(function (window){
-  function TestRunner() {
-    this.start = null;
-    this.ui = null;
-    this.submitResult = function () {};
-    this.report = function (result, message) {};
-    this.doTest = function () {};
-  }
-
-  TestRunner.prototype = (function () {
-    var index = -1;
-    var Tests = [];
-    var Testsuites = {};
-    var TestsuiteSums = {};
-    var TestsetSums =  {};
-    var sum = newSummary();
-    var testContext =  newTestContext();
-    function newSummary(sum) {
-      if (typeof sum === "undefined")
-        return {"TOTAL": 0, "PASS" : 0, "FAIL" : 0, "BLOCK" : 0, "NOTRUN" : 0};
-      return {"TOTAL": sum.TOTAL, "PASS": sum.PASS, "FAIL": sum.FAIL, "BLOCK": sum.BLOCK, "NOTRUN": sum.NOTRUN};
-    }
-    function newTestContext() {
-      return {start_time: null, prev_uri: "", uri: "", sub_index: 0, onload_delay: 0};
-    }
-    function getParms () {
-      var parms = {};
-      var items = location.search.substring(1).split('&');
-      for ( var i = 0, max = items.length; i < max; i++) {
-        var pos = items[i].indexOf('=');
-        if (pos > 0) {
-          var key = items[i].substring(0, pos);
-          var val = items[i].substring(pos + 1);
-          if (!parms[key]) {
-            var rawVal = decodeURI(val);
-            if (rawVal.indexOf(',') < 0)
-              parms[key] = rawVal;
-            else
-              parms[key] = rawVal.split(',');
-          }
-        } else
-           parms[items[i]] = 1;
-      }
-      return parms;
-    }
-    return {
-      constructor: TestRunner,
-      options:  getParms(),
-      addTestsuite: function (testsuite, category) {
-        if (!category)
-          category = "default";
-        if (typeof Testsuites[category] === "undefined")
-          Testsuites[category] = [];
-        Testsuites[category].push(testsuite);
-      },
-
-      goNext: function () {
-        if (Tests.length === 0) return false;
-        if (index >= Tests.length) {
-          index = -1;
-          return false;
-        }
-        index++;
-        return true;
-      },
-
-      goPrev: function () {
-        if (Tests.length === 0) return false;
-        if (index < 0) {
-          index = Tests.length;
-          return false;
-        }
-        index--;
-        return true;
-      },
-
-      runAll: function () {
-        testContext = newTestContext();
-        VIEWFLAGS.add("batch");
-        this.ui.updateView(VIEWFLAGS.del("suite"));
-        this.testIndex(-1);
-        this.doTest();
-      },
-
-      cleanTests: function () {
-        Tests = [];
-      },
-
-      testIndex: function (ind) {
-        if (typeof ind === "undefined")
-          return index;
-        index = ind;
-      },
-
-      getTest: function (ind) {
-        if (typeof ind === "undefined")
-          ind = index;
-        return Tests[ind];
-      },
-
-      addTest: function (test) {
-        if (test instanceof Array)
-          Tests = Tests.concat(test);
-        else
-          Tests.push(test);
-      },
-
-      sumInit: function (num) {
-        if (typeof num === "undefined")
-          num = Tests.length;
-        sum.TOTAL = sum.NOTRUN = num;
-        sum.PASS = sum.FAIL = sum.BLOCK = 0;
-      },
-
-      sumUpdate: function (oldRes, newRes, set) {
-        if (oldRes !== null) {
-          sum[oldRes]--;
-          if (set !== null) TestsetSums[set][oldRes]--;
-        }
-        if (newRes !== null) {
-          sum[newRes]++;
-          if (set != null) TestsetSums[set][newRes]++;
-        }
-      },
-
-      checkResult: function (oTestDoc) {
-        var message = "";
-        if (!oTestDoc) {
-          this.report('FAIL', 'Test page crash');
-          return true;
-        }
-        // Handle sub-index test
-        if (testContext.sub_index > 0) {
-          var oRes = $(oTestDoc).find("table#results");
-          if (oRes.length == 0)
-            return false;
-          var ind = testContext.sub_index - 1;
-          var $n = $(oRes).find('tbody > tr').eq(ind);
-          if ($n.length == 0)
-            return false
-          var result = $n.children("td:eq(0)").text();
-          message = $n.children("td:eq(2)").text();
-          this.report(result.toUpperCase(), message);
-          return true;
-        }
-
-        var oPass = $(oTestDoc).find(".pass");
-        var oFail = $(oTestDoc).find(".fail");
-        // Qunit sub-cases
-        var oUnitRes = $(oTestDoc).find("ol.qunit-assert-list");
-        $(oUnitRes).find('li').each(function() {
-          message += "[assert]" + $(this).attr("class");
-          message += "[message]*" + $(this).children("span").text() + "\n";
-        });
-        // All tests pass
-        if (oPass.length > 0 && oFail.length == 0) {
-          this.report('PASS', message);
-          return true;
-        }
-        // Handle failed tests
-        if (oFail.length > 0) {
-          var oRes = $(oTestDoc).find("table#results");
-          $(oRes).find('tr.fail').each(function() {
-            message += " *" + $(this).children("td:eq(1)").text() + ": ";
-            message += $(this).children("td:eq(2)").text();
-          });
-          this.report('FAIL', message);
-          return true;
-        }
-        return false;
-      },
-
-      testInfo: function (ind) {
-        var info = "";
-        var tc = this.getTest();
-        if (!tc) return info;
-        info += "Test   : (" + (index + 1) + "/" + sum.TOTAL + ") ";
-        info += tc.test_script_entry;
-        info += "\nPurpose: " +  tc.purpose;
-        if (tc.pre_condition)
-          info += "\nPrecondition: " + tc.pre_condition;
-        if (tc.steps)
-          info += "\n" + tc.steps;
-        return info;
-      },
-
-      getTestCaseUrl: function () {
-        function getUriField(uri, param) {
-          var querys = uri.split("?")
-          if (querys.length <= 1)
-            return "";
-          uri = querys[1];
-          var start = uri.indexOf(param);
-          if (start == -1)
-            return "";
-          start += param.length + 1;
-          var end = uri.indexOf("&", start);
-          if (end == -1)
-            return uri.substring(start);
-          return uri.substring(start, end);
-        }
-        var tc = this.getTest();
-        if (!tc) return null;
-        var delay = tc.onload_delay;
-        if (delay)
-          testContext.onload_delay = parseInt(delay) * 1000;
-        else
-          testContext.onload_delay = 5000;
-
-        var uri = tc.test_script_entry;
-        if (typeof this.options.testprefix !== "undefined") {
-          var pos = uri.indexOf('http://');
-          if (pos !== 0)
-            uri = this.options.testprefix + uri
-        }
-        var val = getUriField(uri, "value");
-        if (val && tc.execution_type == "auto" && VIEWFLAGS.has("batch")) { // Need sub index in TC
-          testContext.sub_index = parseInt(val);
-          testContext.uri = uri.split("?")[0];
-          if (testContext.uri == testContext.prev_uri)
-            return "";
-        } else {
-          testContext.uri = uri;
-          testContext.sub_index = 0;
-        }
-        testContext.prev_uri = testContext.uri;
-        testContext.start_time = new Date();
-        return testContext.uri;
-      },
-
-      loadReady: function () {
-        if (!VIEWFLAGS.has("batch"))
-          return;
-        if (!this.ui.testComplete()){
-          if (testContext.onload_delay > 0){
-            var tval = 500;
-            var self = this;
-            setTimeout(function() {self.loadReady();}, tval);
-            testContext.onload_delay -= tval;
-            return
-          }
-          this.report("BLOCK", "Timeout");
-        }
-        this.doTest();
-      },
-
-      getListSum: function () {
-        var sumdata = "";
-        sumdata += "<p><table id='browse'><tr><th>Testsuite</th>";
-        sumdata += "<th>Total</th><th>Pass</th><th>Fail</th><th>Block</th></tr>";
-        $.each(TestsuiteSums, function (key, val){
-          sumdata += "<tr><td>" + key+ "</td>";
-          sumdata += "<td style='color:black;'>" + val.TOTAL + "</td>";
-          sumdata += "<td style='color:green;'>" + val.PASS + "</td>";
-          sumdata += "<td style='color:red;'>" + val.FAIL + "</td>";
-          sumdata += "<td style='color:orange;'>" + val.BLOCK + "</td></tr>";
-        });
-        sumdata += "</table>";
-        return sumdata;
-      },
-
-      getTestSum: function (include_set) {
-        var sumdata = "<section><h3>Total:" + sum.TOTAL
-            + " Pass:<span style='color:green;'>" + sum.PASS
-            + "</span> Fail:<span style='color:red;'>" + sum.FAIL
-            + "</span> Block:<span style='color:orange;'>" + sum.BLOCK
-            + "</span> Notrun:<span style='color:black;'>" + sum.NOTRUN
-            + "</span>";
-                                if (this.options.notifyInfo) {
-          sumdata += "<span style='color:slateblue;'> " + this.options.notifyInfo + "</span>";
-          this.options.notifyInfo = "";
-        }
-        sumdata += "</h3></section>";
-        if (VIEWFLAGS.has("batch")) {
-          var tc = this.getTest();
-          if (tc)  sumdata += "<h4><span style='background-color: wheat'>(#" + index + ") " + tc.id + "</span></h4>";
-        }
-        if (this.options.testsuite_name)
-          TestsuiteSums[this.options.testsuite_name] = newSummary(sum)
-        if (include_set) {
-          sumdata += "<p><table id='browse'><tr><th>Testset</th>";
-          sumdata += "<th>Total</th><th>Pass</th><th>Fail</th><th>Block</th></tr>";
-          $.each(TestsetSums, function (key, val){
-            sumdata += "<tr><td>" + key+ "</td>";
-            sumdata += "<td style='color:black;'>" + val.TOTAL + "</td>";
-            sumdata += "<td style='color:green;'>" + val.PASS + "</td>";
-            sumdata += "<td style='color:red;'>" + val.FAIL + "</td>";
-            sumdata += "<td style='color:orange;'>" + val.BLOCK + "</td></tr>";
-          });
-          sumdata += "</table>";
-        }
-        return sumdata;
-      },
-
-      getListInfo: function () {
-        function createList(category) {
-          var testList = "";
-          $.each(Testsuites[category], function (ind, val) {
-            testList += "<li><input type='checkbox' id='" + val + "'>&nbsp;<a href=''>" + val + "</a>" + "</li>";
-          });
-          return testList;
-        }
-        var data = "<html><head><style>.category{background: #cccccc;border: 1px solid #aaaaaa;} li{list-style-type: none; padding-left: 0.6em; padding-bottom:0.8em; font-size: 1.3em;}html{font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;}</style></head><body>";
-        $.each(Testsuites, function(key, val) {
-          data += "<section><h3 class='category'><input type='checkbox' id='" + key + "'>&nbsp;" + key + "</h3>"
-          data +=  createList(key) + "</section>";
-        });
-        data += "</body></html>";
-        return data;
-      },
-
-      getBrowseInfo: function () {
-        var failList = passList = blockList = notrunList = "";
-        function createTestList(tc, color, ind) {
-          var mtag = (tc.execution_type === "manual") ? "(M)" : "";
-          return "<li>" + mtag + "<a rel='" + ind + "' href='' style ='color:" + color + ";'>" + tc.id + "</a>" + "</li>";
-        }
-        TestsetSums = {};
-        $.each(Tests, function (ind, val) {
-          if (this.set === null)
-            this.set = "default";
-          if (typeof TestsetSums[this.set] === "undefined")
-            TestsetSums[this.set] = newSummary();
-          TestsetSums[this.set][this.result]++;
-          TestsetSums[this.set]["TOTAL"]++;
-          if (this.result == "FAIL")
-            failList += createTestList(this, "red", ind);
-          if (this.result == "PASS")
-            passList += createTestList(this, "green", ind);
-          if (this.result == "BLOCK")
-            blockList += createTestList(this, "orange", ind);
-          if (this.result == "NOTRUN")
-            notrunList += createTestList(this, "black", ind);
-        });
-        var data = "<html><head><style>ul li {padding-bottom:0.8em;font-size: 1.3em;}";
-        data += "html{font-family:DejaVu Sans, Bitstream Vera Sans, Arial, Sans;}</style></head><body>";
-        if (notrunList)
-          data += "<section><h3>Notrun</h3><ul>" + notrunList + "</ul></section>";
-        if (failList)
-          data += "<section><h3 style='color: red;'>Fail</h3><ul>" + failList + "</ul></section>";
-        if (blockList)
-          data += "<section><h3 style='color: orange;'>Block</h3><ul>" + blockList + "</ul></section>";
-        if (passList)
-          data += "<section><h3 style='color: green'>Pass</h3><ul>" + passList + "</ul></section>";
-        data += "</body></html>";
-        return data;
-      },
-
-      TestCase: function () {
-        return {
-          id: null,
-          test_script_entry: null,
-          execution_type: "manual",
-          result: "NOTRUN",
-          purpose: "",
-          set: null,
-          pre_condition: "",
-          onload_delay: 0,
-          steps: "",
-          data: null};
-      },
-
-      TestSuite: function () {
-        return {
-          id: null,
-          sum: null,
-          data: null};
-      }
-
-    };
-     }());
-  // Standalone test runner
-  var master_runner = new TestRunner();
-  master_runner.start = function (ui) {
-    function filter(xml, self) {
-      var set_ind = 0;
-      var manuals = [];
-      $(xml).find("set").each(function () {
-        var setname = $(this).attr("name");
-        if (!setname)
-          setname = "set" + set_ind;
-        $(this).find("testcase").each(function () {
-          var v = $(this).attr('execution_type');
-          if (self.options.execution_type && v != self.options.execution_type
-              && $.inArray(v, self.options.execution_type) < 0) {
-            $(this).remove();
-            return;
-          }
-          v = $(this).attr('priority');
-          if (self.options.priority && v != self.options.priority
-              && $.inArray(v, self.options.priority) < 0){
-            $(this).remove();
-            return;
-          }
-          var test = self.TestCase();
-          test.id = $(this).attr("id");
-          test.execution_type = $(this).attr("execution_type");
-          test.test_script_entry = $(this).find("test_script_entry").text();
-          test.purpose = $(this).attr("purpose");
-          test.pre_condition = $(this).find("pre_condition").text();
-          test.onload_delay = $(this).attr("onload_delay");
-          test.result = "NOTRUN";
-          test.set = setname;
-          test.data = this;
-          if (test.execution_type === "auto")
-            self.addTest(test);
-          else
-            manuals.push(test);
-        });
-        set_ind++;
-      });
-      self.addTest(manuals);
-    }
-
-    var self = this;
-    if (ui) ui.bind(self);
-    if (self.options.testsuite_name)
-      self.options.testsuite = "opt/" + self.options.testsuite_name + "/tests.xml";
-    if (!self.options.testsuite) {
-      $.getJSON(TESTLIST_FILE, function(data) {
-        for (var i = 0, imax = data.length; i < imax; i++) {
-          for (var j = 0, jmax = data[i].tests.length; j < jmax; j++)
-            self.addTestsuite(data[i].tests[j], data[i].category);
-        }
-        self.ui.list();
-        self.options.multiplex = true;
-      });
-    } else {
-      $.get(self.options.testsuite, null, function (xml) {
-        self.internal.xmldoc = xml;
-        filter(xml, self);
-        self.sumInit();
-        self.ui.browse();
-        setTimeout(function () {
-        if (self.options.autorun)
-          self.runAll();
-        }, 500);
-      }, "xml");
-    }
-  };
-
-  master_runner.doTest = function () {
-    var self = this, tc = null;
-    while (self.goNext()) {
-      tc = self.getTest();
-      if (!tc || tc.execution_type === "manual")
-        break;
-      self.ui.updateTestInfo(self.testInfo(), null, null);
-      self.ui.runTest(self.getTestCaseUrl());
-      return;
-    }
-    this.ui.updateView(VIEWFLAGS.del("batch"));
-    if (self.options.autorun) {
-      self.submitResult();
-      if (self.options.multiplex) {
-        self.ui.list();
-        return;
-      }
-      close_window();
-      return;
-    }
-    if (!tc) {
-      setTimeout(function () {self.ui.browse();}, 500);
-      return;
-    }
-    this.ui.updateTest();
-  };
-
-  master_runner.report = function (result, log) {
-    var tc = this.getTest();
-    if (!tc) return;
-    var oldresult = tc.result;
-    this.sumUpdate(oldresult, result, tc.set);
-    tc.result = result;
-    $(tc.data).find('result_info').remove();
-    $(tc.data).attr('result', result);
-    var doc = $.parseXML("<result_info><actual_result>" + result +
-           "</actual_result><stdout>" +
-           escape_html(log) + "</stdout></result_info>");
-    $(tc.data).append(doc.documentElement);
-    if (VIEWFLAGS.has("batch")) result = null;
-    this.ui.updateTestInfo(null, this.getTestSum(false), result);
-  };
-
-  master_runner.submitResult = function () {
-    var SERVER = "http://127.0.0.1:8080";
-    var contents = (new XMLSerializer()).serializeToString(this.internal.xmldoc);
-    var resfile = "tests.res.xml";
-    if (this.options.testsuite_name)
-      resfile = this.options.testsuite_name + "." + resfile;
-    $.post(SERVER + "/save_file", {filename: resfile, data: contents})
-  };
-
-  master_runner.internal = {xmldoc: null};
-
-  // Controlled test runner
-  var slave_runner = new TestRunner();
-  slave_runner.start = function (ui) {
-    function sync_session_id() {
-      $.get(SERVER + "/init_session_id?session_id="
-            + self.internal.session_id);
-    }
-    var self = this;
-    self.internal.session_id = Math.round(Math.random() * 10000);
-    sync_session_id();
-    var next_step = self.internal.get_json("ask_next_step");
-    if (!next_step || next_step.step != "continue") {
-      close_window();
-      return false;
-    }
-    ui.bind(self);
-    var f = function () {
-      var p = self.internal.get_json("check_execution_progress");
-      if (p) self.sumInit(parseInt(p.total));
-      self.doTest();
-    };
-    self.ui.updateView(VIEWFLAGS.add("batch"));
-    self.ui.updateView(VIEWFLAGS.del("suite"));
-    setTimeout(f, 1000);
-    return true;
-  };
-
-  slave_runner.doTest = function () {
-    var self = this;
-    if (self.internal.stage > 0) {
-      self.ui.updateView(VIEWFLAGS.del("batch"));
-      self.goNext();
-      self.ui.updateTest();
-      return;
-    }
-    var next_step = self.internal.get_json("ask_next_step");
-    if (next_step && next_step.step == "continue") {
-      var task = self.internal.get_json("auto_test_task");
-      if (task === null) {
-        print_error("ask_test_task", "Fail get task");
-      } else if (task.invalid === 0) {
-        print_error("ask_test_task", "Invalid session");
-      } else if (task.stop === 0) {
-        print_error("ask_test_task", "close window");
-      } else if (task.none !== 0) { //handle auto test
-        var test = self.TestCase();
-        test.id = task.case_id;
-        test.onload_delay = task.onload_delay;
-        test.test_script_entry = task.entry;
-        test.execution_type = "auto";
-        test.purpose = task.purpose;
-        test.pre_condition = task.pre_condition;
-        self.addTest(test);
-        self.goNext();
-        self.ui.updateTestInfo(self.testInfo(), null, null);
-        self.ui.runTest(self.getTestCaseUrl());
-        return;
-      } else {  //handle manual test
-        self.ui.updateView(VIEWFLAGS.del("batch"));
-        self.internal.stage = 1;
-        var mtask = self.internal.get_json("manual_cases");
-        if (mtask && mtask.none != 0) {
-          self.cleanTests();
-          for (var i = 0, max = mtask.length; i < max; i++) {
-            var test = self.TestCase();
-            test.id = mtask[i].case_id;
-            test.test_script_entry = mtask[i].entry;
-            test.purpose = mtask[i].purpose;
-            test.pre_condition = mtask[i].pre_condition;
-            test.result = "NOTRUN";
-            test.execution_type = "manual";
-            test.index = i;
-            var steps = "";
-            $(mtask[i].steps).each(function () {
-              steps += "Step-" + this.order + "\t: " + this.step_desc + "\n";
-              steps += "Expect\t: " + this.expected + "\n";
-            });
-            test.steps = steps;
-            self.addTest(test);
-          }
-          self.ui.updateTest(-1);
-          self.sumInit();
-          self.ui.browse();
-        } else
-          close_window();
-        return;
-      }
-    }
-    close_window();
-  };
-
-  slave_runner.report = function(result, log) {
-    var tc = this.getTest();
-    var oldresult;
-    if (this.internal.stage > 0) {
-      this.internal.post_json("commit_manual_result",
-        {"case_id": tc.id, "result": result});
-      oldresult = tc.result
-      tc.result = result;
-    } else {
-      this.internal.post_json("commit_result",
-        { "case_id" : tc.id,
-          "result" : result,
-          "msg" : "[Message]" + log,
-          "session_id" : this.internal.session_id});
-      oldresult = "NOTRUN";
-    }
-    this.sumUpdate(oldresult, result, null);
-    if (VIEWFLAGS.has("batch")) result = null;
-    this.ui.updateTestInfo(null, this.getTestSum(false), result);
-  };
-
-  slave_runner.submitResult = function () {
-    $.get(SERVER + "/generate_xml");
-  };
-
-  slave_runner.internal = {
-    session_id: null,
-    stage: 0,
-    get_json: function (name) {
-      var jsondata = null;
-      $.getJSON(SERVER + "/" + name + "?session_id="
-         + this.session_id, function(data) {
-           jsondata = data;});
-      return jsondata; },
-    post_json: function (name, d) {
-       $.post(SERVER + "/" + name, d, null, "json");
-    }
-  };
-
-  var i_ui = (function () {
-    var testinfo = $("#testinfo").get(0);
-    var frmTest = $("#frmTest").get(0);
-    var textTest  = $("#textTest").get(0);
-    var btnPass = $("#btnPass").get(0);
-    var btnFail = $("#btnFail").get(0);
-    var btnBlock = $("#btnBlock").get(0);
-    var btnExit = $("#btnExit").get(0);
-    var btnNext = $("#btnNext").get(0);
-    var btnPrev = $("#btnPrev").get(0);
-    var btnRun  = $("#btnRun").get(0);
-    var divSum = $("#divSum").get(0);
-    var btnBack = $("#btnBack").get(0);
-    var btnSave = $("#btnSave").get(0);
-    var runner = null;
-    var listmode = null;
-    var nextTest = function () {
-      runner.goNext();
-      selectTest();
-    };
-
-    var prevTest = function() {
-      runner.goPrev();
-      selectTest();
-    };
-
-    var selectResult = function() {
-      runner.report(this.value, "");
-    };
-
-    var selectTest = function () {
-      frmTest.src = "";
-      var tc = runner.getTest();
-      if (!tc) {
-        if (runner.testIndex() === -1)
-          textTest.value = "---Begin---";
-        else
-          textTest.value = "---End---";
-        changeColor("NOTRUN");
-        return;
-      }
-      testinfo.value = runner.testInfo();
-      $(divSum).html(runner.getTestSum(false));
-      textTest.value = ((tc.execution_type === "manual") ? "(M)" : "") + tc.id;
-      changeColor(tc.result);
-    };
-
-    function changeColor(result) {
-      if (result === "PASS")
-        $(textTest).css("backgroundColor", "lightgreen");
-      else if (result === "FAIL")
-        $(textTest).css("backgroundColor", "tomato");
-      else if (result === "BLOCK")
-        $(textTest).css("backgroundColor", "yellow");
-      else
-        $(textTest).css("backgroundColor", "white");
-    }
-
-    return {
-      bind: function (r) {
-        var self = this;
-        r.ui = self;
-        runner = r;
-        $(btnPass).on("click", selectResult);
-        $(btnFail).on("click", selectResult);
-        $(btnBlock).on("click", selectResult);
-        $(btnNext).on("click", nextTest);
-        $(btnPrev).on("click", prevTest);
-        $(btnRun).on("click",  function () {
-          if (VIEWFLAGS.has("list")) {
-            runner.options.auto_testsuites = [];
-            var tdoc = frmTest.contentWindow.document;
-            $(tdoc).find("section li>input:checked").each(function () {
-              var tname = $(this).attr("id");
-              runner.options.auto_testsuites.push(tname);
-            });
-            self.list();
-          } else if (VIEWFLAGS.has("suite")) {
-            runner.runAll();
-          } else
-            self.runTest(runner.getTestCaseUrl());
-        });
-        $(frmTest).on("load",  function () {runner.loadReady();});
-        $(btnExit).on("click", function () {
-          runner.submitResult();
-          if (runner.options.multiplex && VIEWFLAGS.has("suite"))
-            self.list();
-          else
-            close_window();
-        });
-        $(btnBack).on("click", function () {
-          frmTest.src = "";
-          setTimeout(function () {self.browse();}, 300);
-        });
-        $(btnSave).on("click", function () {
-          runner.submitResult();
-          runner.options.notifyInfo = "*Save succeed*";
-          $(divSum).html(runner.getTestSum(true));
-        });
-        frmTest.height = $(window).height();
-      },
-
-      list: function () {
-        var tdoc = frmTest.contentWindow.document;
-        $(btnExit).attr("value", "Exit");
-        tdoc.open("text/html", "replace");
-        tdoc.writeln(runner.getListInfo());
-        var self = this;
-        $(tdoc).find("section li>a").on("click", function (e) {
-          runner.options.testsuite_name = $(this).text();
-          VIEWFLAGS.del("list");
-          runner.start();
-          window.scrollTo(0, 0);
-          e.preventDefault();
-        });
-        $(tdoc).find("section h3>input[type=checkbox]").on("click", function () {
-          $boxs = $(this).parent().parent().find("li>input[type=checkbox]");
-          $boxs.prop('checked', $(this).is(':checked'));
-        });
-        $(divSum).html(runner.getListSum());
-        runner.cleanTests();
-        self.updateView(VIEWFLAGS.add("list"));
-        if (runner.options.auto_testsuites) {
-          if (runner.options.auto_testsuites.length > 0) {
-            var ts = runner.options.auto_testsuites.shift();
-            runner.options.testsuite_name = ts;
-            runner.options.autorun = true;
-            VIEWFLAGS.del("list");
-            runner.start();
-          } else
-            runner.options.autorun = false;
-        }
-      },
-
-      browse: function () {
-        var tdoc = frmTest.contentWindow.document;
-        if (runner.options.multiplex)
-          $(btnExit).attr("value", "Back");
-        tdoc.open("text/html", "replace");
-        tdoc.writeln(runner.getBrowseInfo());
-        var self = this;
-        $(tdoc).find("section ul li>a").on("click", function (e) {
-          var ind = parseInt($(this).attr("rel"));
-          self.updateView(VIEWFLAGS.del("suite"));
-          self.updateTest(ind);
-          window.scrollTo(0, 0);
-          e.preventDefault();
-        });
-        $(divSum).html(runner.getTestSum(true));
-        self.updateView(VIEWFLAGS.add("suite"));
-      },
-
-      updateTest: function (ind) {
-        if (typeof ind !== "undefined") runner.testIndex(ind);
-        selectTest();
-      },
-
-      updateView: function (flags) {
-        if (flags & VIEWFLAGS.flags.batch)
-          $(".batchhide").hide();
-        else {
-          $(".batchhide").show();
-          if (flags & VIEWFLAGS.flags.list) {
-            $(".tchide").show();
-            $(".suitehide").show();
-            $(".listhide").hide();
-          } else if (flags & VIEWFLAGS.flags.suite) {
-            $(".listhide").show();
-            $(".tchide").show();
-            $(".suitehide").hide();
-          } else {
-            $(".listhide").show();
-            $(".suitehide").show();
-            $(".tchide").hide();
-          }
-        }
-      },
-
-        testComplete: function () {
-        return runner.checkResult(frmTest.contentWindow.document);
-      },
-
-      runTest: function (uri) {
-        if (uri === null) return;
-        if (uri)
-          frmTest.src = uri;
-        else
-          runner.loadReady();
-      },
-
-      updateTestInfo: function (info, sum, result) {
-        if (info !== null)
-          testinfo.value = info;
-        if (sum !== null)
-          $(divSum).html(sum);
-        if (result !== null)
-          changeColor(result);
-      },
-     };
-  } ());
-
-  function escape_html(s) {
-    return s.replace(/\&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g,
-      "&quot;").replace(/'/g, "&#39;");
-  }
-
-  function print_error(command, message) {
-    console.warn("Command -" + command + ": " + message);
-  }
-
-  function close_window() {
-    setTimeout(function () {
-      window.open('', '_self', '');
-      window.close();
-      if (window.parent != window.self) {
-        window.parent.onbeforeunload = null;
-        window.parent.close();
-      }
-    }, 1000);
-  }
-
-  function pre_init() {
-    var runner_ok = false;
-    $.get(SERVER + "/check_server", function () {
-      runner_ok = slave_runner.start(i_ui);
-    });
-    if (!runner_ok)
-      master_runner.start(i_ui);
-  }
-  var SERVER = "http://127.0.0.1:"+STUB_PORT;
-  var TESTLIST_FILE = "testlist.json"
-  var VIEWFLAGS = { val: 0,
-    flags: {suite: 1, batch: 2, list: 4},
-    add: function (f) { this.val |= this.flags[f]; return this.val},
-    del: function (f) { this.val &= ~this.flags[f]; return this.val},
-    has: function (f) { return this.val & this.flags[f];},
-  };
-  $.ajaxSetup({ async: false});
-  $(window).on("ready", pre_init);
-})(window);
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/ConversationArraySuccessCallback_onsuccess_checking.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/ConversationArraySuccessCallback_onsuccess_checking.html
new file mode 100755 (executable)
index 0000000..9364ca7
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>ConversationArraySuccessCallback_onsuccess_checking</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: ConversationArraySuccessCallback_onsuccess_checking\r
+//==== LABEL Check ConversationArraySuccessCallback callback for sms\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, addSuccess, filter, findAllConversationsError, findAllConversationsSuccess, service;\r
+\r
+t.step(function () {\r
+    findAllConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "Incorrect type.");\r
+        t.done();\r
+    });\r
+\r
+    findAllConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        service.messageStorage.findConversations(filter, findAllConversationsSuccess, findAllConversationsError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/FolderArraySuccessCallback_onsuccess_checking.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/FolderArraySuccessCallback_onsuccess_checking.html
new file mode 100755 (executable)
index 0000000..381a5fc
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>FolderArraySuccessCallback_onsuccess_checking</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: FolderArraySuccessCallback_onsuccess_checking\r
+//==== LABEL Check if FolderArraySuccessCallback.onsuccess callback works properly\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolderArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, foldersSuccess, service,\r
+    filter, foldersError;\r
+\r
+t.step(function () {\r
+    foldersSuccess = t.step_func(function (folders) {\r
+        assert_type(folders, "array", "Incorrect type.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    foldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        service.messageStorage.findFolders(filter, foldersSuccess, foldersError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_notexist.html
new file mode 100755 (executable)
index 0000000..ddf69d7
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageArraySuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageArraySuccessCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageArraySuccessCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageArraySuccessCallback:MessageArraySuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageArraySuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_onsuccess.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_onsuccess.html
new file mode 100755 (executable)
index 0000000..67f7021
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageArraySuccessCallback_onsuccess</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageArraySuccessCallback_onsuccess\r
+//==== LABEL Check if method onsuccess of MessageArraySuccessCallback works\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message,\r
+    addDraftSuccess, addDraftError, findFilter, findMessagesSuccess, findMessagesError;\r
+\r
+t.step(function () {\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        findFilter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(findFilter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_onsuccess_checking.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_onsuccess_checking.html
new file mode 100755 (executable)
index 0000000..9c1d96a
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageArraySuccessCallback_onsuccess_checking</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageArraySuccessCallback_onsuccess_checking\r
+//==== LABEL Check if MessageArraySuccessCallback.onsuccess callback works properly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, filter, findMessageSuccess, findMessageError, addSuccess, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        assert_true(messages[0] instanceof tizen.Message, "Not a Message");\r
+        t.done();\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        service.messageStorage.findMessages(filter, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachmentSuccessCallback_email_onsuccess.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachmentSuccessCallback_email_onsuccess.html
new file mode 100755 (executable)
index 0000000..b926865
--- /dev/null
@@ -0,0 +1,147 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachmentSuccessCallback_email_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachmentSuccessCallback_email_onsuccess\r
+//==== PRIORITY P1\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageAttachmentSuccessCallback, onsuccess, email\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachmentSuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBT CBOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, inboxFolder,\r
+    message, attachment, sendSuccess, sendError, syncSuccess, syncError,\r
+    findSuccess, findError, foundMessage, returnedValue = null,\r
+    loadAttachmentSuccess, loadAttachmentError, loadBodySuccess, loadBodyError, loadMessage,\r
+    folderSuccess, folderError;\r
+\r
+t.step(function () {\r
+\r
+    loadAttachmentSuccess = t.step_func(function (fattachment) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from loadMessageAttachment");\r
+        assert_true(fattachment instanceof tizen.MessageAttachment, "Not a tizen.MessageAttachment.");\r
+\r
+        assert_type(fattachment.id, "string", "attachment.id incorrect type.");\r
+        assert_not_equals(fattachment.id, "", "attachment.id is empty.");\r
+\r
+        assert_type(fattachment.messageId, "string", "attachment.messageId incorrect type.");\r
+        assert_equals(fattachment.messageId, foundMessage.attachments[0].messageId, "attachment.messageId");\r
+\r
+        assert_equals(fattachment.mimeType, attachment.mimeType, "attachment.mimeType");\r
+\r
+        assert_type(fattachment.filePath, "string", "attachment.filePath incorrect type.");\r
+        assert_not_equals(fattachment.filePath, "", "attachment.filePath is empty.");\r
+        t.done();\r
+    });\r
+\r
+    loadAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadBodySuccess = t.step_func(function (message) {\r
+        loadMessage = message;\r
+        assert_equals(loadMessage.attachments.length, 1, "Incorrect number of found attachments");\r
+        returnedValue = service.loadMessageAttachment(loadMessage.attachments[0], loadAttachmentSuccess, loadAttachmentError);\r
+    });\r
+\r
+    loadBodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+            foundMessage = messages[0];\r
+\r
+            if (foundMessage.attachments.length === 0) {\r
+                service.loadMessageBody(foundMessage, loadBodySuccess, loadBodyError);\r
+            } else {\r
+                returnedValue = service.loadMessageAttachment(foundMessage.attachments[0], loadAttachmentSuccess, loadAttachmentError);\r
+            }\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, folderSuccess, folderError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE);\r
+        message.attachments = [attachment];\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachmentSuccessCallback_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachmentSuccessCallback_notexist.html
new file mode 100755 (executable)
index 0000000..1ca09c7
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachmentSuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachmentSuccessCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageAttachmentSuccessCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachmentSuccessCallback:MessageAttachmentSuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageAttachmentSuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_constructor.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_constructor.html
new file mode 100755 (executable)
index 0000000..b936aa7
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_constructor</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_constructor\r
+//==== LABEL Check if MessageAttachment's constructor works\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRA CONSTRM\r
+\r
+test(function () {\r
+    var attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE);\r
+\r
+    assert_true(attachment instanceof tizen.MessageAttachment, "InstanceOf.");\r
+\r
+    assert_equals(attachment.id, null, "'attachment.id' should be null");\r
+    assert_equals(attachment.messageId, null, "'attachment.messageId' should be null");\r
+    assert_equals(attachment.mimeType, MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE, "'attachment.mimeType' should be "+MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE);\r
+    assert_equals(attachment.filePath, TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "'attachment.filePath' should be \""+TEST_DIR + "webapi-tizen-messaging-test_image.jpg"+"\"");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_constructor_minargs.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_constructor_minargs.html
new file mode 100755 (executable)
index 0000000..47728bb
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_constructor_minargs</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_constructor_minargs\r
+//==== LABEL Check if MessageAttachment's constructor works with minimum arguments\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM\r
+\r
+test(function () {\r
+    var attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+\r
+    assert_true(attachment instanceof tizen.MessageAttachment, "InstanceOf.");\r
+\r
+    assert_equals(attachment.id, null, "'attachment.id' should be null by default");\r
+    assert_equals(attachment.messageId, null, "'attachment.messageId' should be null by default");\r
+    assert_equals(attachment.mimeType, null, "'attachment.mimeType' null by default");\r
+    assert_equals(attachment.filePath, TEST_DIR + "webapi-tizen-messaging-test_image.jpg",\r
+        "'attachment.filePath' should be \""+TEST_DIR + "webapi-tizen-messaging-test_image.jpg"+"\" by default");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_exist.html
new file mode 100755 (executable)
index 0000000..e9e3a44
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_exist\r
+//==== LABEL Check if MessageAttachment exists\r
+//==== PRIORITY P0\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRF\r
+\r
+test(function () {\r
+    check_constructor("MessageAttachment");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_extend.html
new file mode 100755 (executable)
index 0000000..09c665a
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageAttachment can be extended with new property\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:MessageAttachment U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+\r
+test(function () {\r
+    var attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+\r
+    check_extensibility(attachment);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_filePath_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_filePath_attribute.html
new file mode 100755 (executable)
index 0000000..427385f
--- /dev/null
@@ -0,0 +1,128 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_filePath_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_filePath_attribute\r
+//==== LABEL Check if attribute filePath of MessageAttachment exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:filePath A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT ADV\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), attachment, message,\r
+    service, serviceSuccess, serviceError, sendSuccess, sendError, syncSuccess, syncError,\r
+    findFoldersError, findFoldersSuccess,\r
+    inboxFolder, findMessageError,\r
+    findMessageSuccess, foundMessage, loadBodyError, loadBodySuccess;\r
+\r
+t.step(function () {\r
+    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+\r
+    assert_own_property(attachment, "filePath", "MessageAttachment does not own filePath property.");\r
+    check_readonly(attachment, "filePath", TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "string", "sampleValue");\r
+\r
+    loadBodySuccess = t.step_func(function (loadedMessage) {\r
+        assert_true(loadedMessage.hasAttachment, "Message does not have any attachments.");\r
+        assert_equals(loadedMessage.attachments[0].filePath, null, "filePath is incorrect");\r
+\r
+        t.done();\r
+    });\r
+\r
+    loadBodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+\r
+            foundMessage = messages[0];\r
+\r
+            service.loadMessageBody(foundMessage, loadBodySuccess, loadBodyError);\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+\r
+        inboxFolder = getInboxFolder(t, folders);\r
+\r
+        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+        message.attachments = [attachment];\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_id_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_id_attribute.html
new file mode 100755 (executable)
index 0000000..ec4d528
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_id_attribute\r
+//==== LABEL Check if attribute id of MessageAttachment exists, has type MessageAttachmentId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO ADV AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, attachment,\r
+    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;\r
+t.step(function () {\r
+    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+\r
+    assert_own_property(attachment, "id", "MessageAttachment does not own id property.");\r
+    assert_equals(attachment.id, null, "Incorrect default value");\r
+    check_readonly(attachment, "id", null, "object", "12345");\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_type(attachment.id, "string", "Id is not a string");\r
+        assert_not_equals(attachment.id, "", "Id is empty");\r
+\r
+        check_readonly(attachment, "id", attachment.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.attachments = [attachment];\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_messageId_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_messageId_attribute.html
new file mode 100755 (executable)
index 0000000..5774ffb
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_messageId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_messageId_attribute\r
+//==== LABEL Check if attribute messageId of MessageAttachment exists, has type MessageId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:messageId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO ADV AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, attachment,\r
+    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;\r
+t.step(function () {\r
+    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+\r
+    assert_own_property(attachment, "messageId", "MessageAttachment does not own messageId property.");\r
+    assert_equals(attachment.messageId, null, "Incorrect default value");\r
+    check_readonly(attachment, "messageId", null, "object", "12345");\r
+\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_type(attachment.messageId, "string", "messageId is not a string");\r
+        assert_not_equals(attachment.id, "", "messageId is empty");\r
+\r
+        check_readonly(attachment, "messageId", message.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.attachments = [attachment];\r
+\r
+        check_readonly(attachment, "messageId", message.id, "string", "22222");\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_mimeType_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_mimeType_attribute.html
new file mode 100755 (executable)
index 0000000..58c8060
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_mimeType_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_mimeType_attribute\r
+//==== LABEL Check if attribute mimeType of MessageAttachment exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:mimeType A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+\r
+test(function () {\r
+    var attachment;\r
+\r
+    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE);\r
+    assert_own_property(attachment, "mimeType", "MessageAttachment does not own mimeType property.");\r
+    check_readonly(attachment, "mimeType", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE, "string", "audio/mp3");\r
+\r
+    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+    assert_equals(attachment.mimeType, null, "Incorrect default value");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_email_onsuccess.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_email_onsuccess.html
new file mode 100755 (executable)
index 0000000..d11e3ed
--- /dev/null
@@ -0,0 +1,125 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBodySuccessCallback_email_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBodySuccessCallback_email_onsuccess\r
+//==== PRIORITY P1\r
+//==== LABEL Check if callback is called and if its arguments have proper type (email message)\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBodySuccessCallback:onsuccess U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBT CBOA\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), filter,\r
+    service, message, inboxFolder, serviceSuccess, serviceError, sendSuccess, sendError,\r
+    syncSuccess, syncError, folderSuccess, folderError, findSuccess, findError, bodySuccess, bodyError;\r
+\r
+t.step(function () {\r
+    bodySuccess = t.step_func(function (messageLoaded) {\r
+        assert_not_equals(messageLoaded, null, "message is null");\r
+        assert_true(messageLoaded instanceof tizen.Message, "message type is not Message");\r
+\r
+        assert_not_equals(messageLoaded.body, null, "message body is null");\r
+        assert_equals(messageLoaded.subject, message.subject, "subject does not match");\r
+        assert_equals(messageLoaded.body.htmlBody.replace(/\s+$/g, ""), MESSAGE_BODY_HTML, "body does not match");\r
+        assert_equals(messageLoaded.hasAttachment, false, "hasAttachment is not false");\r
+        assert_equals(messageLoaded.attachments.length, 0, "message should have no attachments");\r
+\r
+        t.done();\r
+    });\r
+\r
+    bodyError = t.step_func(function (error) {\r
+        assert_unreached("failed to load message body: name: " + error.name + " msg: " + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+            service.loadMessageBody(messages[0], bodySuccess, bodyError);\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("failed to find message: name: " + error.name + " msg: " + error.message);\r
+    });\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        service.messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [ TEST_EMAIL_RECIPIENT_1 ],\r
+            htmlBody: MESSAGE_BODY_HTML\r
+        });\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_notexist.html
new file mode 100755 (executable)
index 0000000..382bdfe
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBodySuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBodySuccessCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageBodySuccessCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBodySuccessCallback:MessageBodySuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageBodySuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_onsuccess.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_onsuccess.html
new file mode 100755 (executable)
index 0000000..e5a819d
--- /dev/null
@@ -0,0 +1,128 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageBodySuccessCallback_onsuccess</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageBodySuccessCallback_onsuccess\r
+//==== PRIORITY P1\r
+//==== LABEL Check if callback is called and if its arguments have proper type\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBodySuccessCallback:onsuccess U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, service, inboxFolder,\r
+    serviceSuccess, serviceError, sendSuccess, sendError, syncSuccess, syncError,\r
+    folderSuccess, folderError, findSuccess, findError, bodySuccess, bodyError;\r
+\r
+t.step(function () {\r
+    bodySuccess = t.step_func(function (messageLoaded) {\r
+        assert_not_equals(messageLoaded, null, "message is null");\r
+        assert_not_equals(messageLoaded.body, null, "message body is null");\r
+        assert_equals(messageLoaded.body.plainBody.replace(/\s+$/g, ""), message.body.plainBody, "body does not match");\r
+\r
+        t.done();\r
+    });\r
+\r
+    bodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+            service.loadMessageBody(messages[0], bodySuccess, bodyError);\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, folderSuccess, folderError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_extend.html
new file mode 100755 (executable)
index 0000000..e54eef2
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_email_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_email_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageBody (email) can be extended with new property\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:MessageBody U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, messageBody;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+        messageBody = message.body;\r
+\r
+        check_extensibility(messageBody);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_htmlBody_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_htmlBody_attribute.html
new file mode 100755 (executable)
index 0000000..1da8847
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_email_htmlBody_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_email_htmlBody_attribute\r
+//==== LABEL Check if attribute htmlBody of MessageBody (email) exists, has type DOMString\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:htmlBody A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AN ADV AT ASG\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, messageBody;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+        messageBody = message.body;\r
+\r
+        assert_own_property(messageBody, "htmlBody", "MessageBody does not own htmlBody property.");\r
+        check_attribute(messageBody, "htmlBody", "", "string", "sampleValue");\r
+\r
+        messageBody.htmlBody = null;\r
+        assert_equals(messageBody.htmlBody, "null", "htmlBody should not accept null as value");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_inlineAttachments_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_inlineAttachments_attribute.html
new file mode 100755 (executable)
index 0000000..aec5837
--- /dev/null
@@ -0,0 +1,105 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_email_inlineAttachments_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_email_inlineAttachments_attribute\r
+//==== LABEL Check if attribute inlineAttachments of MessageBody (email) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:inlineAttachments A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE AN AT ASG\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, messageBody, oldValue,\r
+    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_type(messageBody.inlineAttachments[0].id, "string", "id is not a string");\r
+        assert_not_equals(messageBody.inlineAttachments[0].id, "", "id is empty");\r
+        assert_equals(messageBody.inlineAttachments[0].messageId, message.id, "messageId is not a null");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        messageService = service;\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        messageBody = message.body;\r
+\r
+        assert_own_property(messageBody, "inlineAttachments", "MessageBody does not own inlineAttachments property.");\r
+\r
+        assert_type(messageBody.inlineAttachments, "array", "Not an array");\r
+        assert_equals(messageBody.inlineAttachments.length, 0, "Incorrrect length");\r
+\r
+        oldValue = messageBody.inlineAttachments;\r
+        messageBody.inlineAttachments = null;\r
+        assert_array_equals(messageBody.inlineAttachments, oldValue, "inlineAttachments should not accept null as value");\r
+\r
+        check_invalid_array_assignments(messageBody, "inlineAttachments", false);\r
+\r
+        messageBody.inlineAttachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg")];\r
+        assert_type(messageBody.inlineAttachments, "array", "Not an array");\r
+        assert_equals(messageBody.inlineAttachments.length, 1, "Incorrrect length");\r
+\r
+        assert_own_property(messageBody.inlineAttachments[0], "id", "No id.");\r
+        assert_own_property(messageBody.inlineAttachments[0], "messageId", "No messageId.");\r
+        assert_own_property(messageBody.inlineAttachments[0], "mimeType", "No mimeType.");\r
+        assert_own_property(messageBody.inlineAttachments[0], "filePath", "No filePath.");\r
+\r
+        assert_equals(messageBody.inlineAttachments[0].id, null, "id is not a null");\r
+        assert_equals(messageBody.inlineAttachments[0].messageId, message.id, "messageId is not a null");\r
+        assert_equals(messageBody.inlineAttachments[0].mimeType, "image/jpg", "Incorrect mimeType");\r
+        assert_type(messageBody.inlineAttachments[0].filePath, "string", "filePath is not a string");\r
+        assert_not_equals(messageBody.inlineAttachments[0].filePath, "", "filePath is empty");\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_loaded_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_loaded_attribute.html
new file mode 100755 (executable)
index 0000000..422685c
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_email_loaded_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_email_loaded_attribute\r
+//==== LABEL Check if attribute loaded of MessageBody (email) exists, has type Boolean and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:loaded A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO ADV\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, messageBody, oldValue;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+        messageBody = message.body;\r
+\r
+        assert_own_property(messageBody, "loaded", "MessageBody does not own loaded property.");\r
+        check_readonly(messageBody, "loaded", false, "boolean", true);\r
+\r
+        oldValue = messageBody.loaded;\r
+        messageBody.loaded = null;\r
+        assert_equals(messageBody.loaded, oldValue, "loaded attribute shuld not accept null as value");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_messageId_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_messageId_attribute.html
new file mode 100755 (executable)
index 0000000..509f8e5
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_email_messageId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_email_messageId_attribute\r
+//==== LABEL Check if attribute messageId of MessageBody (email) exists, has type MessageId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:messageId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, messageBody,\r
+    serviceError, serviceSuccess, addDraftError, addDraftSuccess;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        check_readonly(messageBody, "messageId", message.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        messageBody = message.body;\r
+\r
+        assert_own_property(messageBody, "messageId", "MessageBody does not own messageId property.");\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_plainBody_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_plainBody_attribute.html
new file mode 100755 (executable)
index 0000000..d0eed48
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_email_plainBody_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_email_plainBody_attribute\r
+//==== LABEL Check if attribute plainBody of MessageBody (email) exists, has type DOMString\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:plainBody A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ASG\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, messageBody;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+        messageBody = message.body;\r
+\r
+        assert_own_property(messageBody, "plainBody", "MessageBody does not own plainBody property.");\r
+        check_attribute(messageBody, "plainBody", "", "string", "sampleValue");\r
+\r
+        messageBody.plainBody = null;\r
+        assert_equals(messageBody.plainBody, "null", "Incorrect plainBody after null assignment");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_extend.html
new file mode 100755 (executable)
index 0000000..5a76c03
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_mms_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_mms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageBody (MMS) can be extended with new property\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:MessageBody U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+\r
+test(function () {\r
+    var message, messageBody;\r
+\r
+    message = new tizen.Message("messaging.mms");\r
+    messageBody = message.body;\r
+\r
+    check_extensibility(messageBody);\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_loaded_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_loaded_attribute.html
new file mode 100755 (executable)
index 0000000..a965157
--- /dev/null
@@ -0,0 +1,56 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_mms_loaded_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_mms_loaded_attribute\r
+//==== LABEL Check if attribute loaded of MessageBody (MMS) exists, has type Boolean and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:loaded A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO ADV\r
+\r
+test(function () {\r
+    var message, messageBody, oldValue;\r
+\r
+    message = new tizen.Message("messaging.mms");\r
+    messageBody = message.body;\r
+\r
+    assert_own_property(messageBody, "loaded", "MessageBody does not own loaded property.");\r
+    check_readonly(messageBody, "loaded", false, "boolean", true);\r
+\r
+    oldValue = messageBody.loaded;\r
+    messageBody.loaded = null;\r
+    assert_equals(messageBody.loaded, oldValue, "loaded attribute shuld not accept null as value");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_messageId_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_messageId_attribute.html
new file mode 100755 (executable)
index 0000000..f34c754
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_mms_messageId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_mms_messageId_attribute\r
+//==== LABEL Check if attribute messageId of MessageBody (MMS) exists, has type MessageId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:messageId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, messageBody,\r
+    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;\r
+t.step(function () {\r
+\r
+    message = new tizen.Message("messaging.mms", {\r
+        subject: generateSubject(),\r
+        to: [TEST_SMS_RECIPIENT],\r
+        plainBody: "sample plainBody"\r
+    });\r
+\r
+    messageBody = message.body;\r
+\r
+    assert_own_property(messageBody, "messageId", "MessageBody does not own messageId property.");\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        check_readonly(messageBody, "messageId", message.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_plainBody_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_plainBody_attribute.html
new file mode 100755 (executable)
index 0000000..1b3e5a7
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_mms_plainBody_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_mms_plainBody_attribute\r
+//==== LABEL Check if attribute plainBody of MessageBody (MMS) exists, has type DOMString\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:plainBody A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+\r
+test(function () {\r
+    var message, messageBody;\r
+\r
+    message = new tizen.Message("messaging.mms");\r
+    messageBody = message.body;\r
+\r
+    assert_own_property(messageBody, "plainBody", "MessageBody does not own plainBody property.");\r
+    check_attribute(messageBody, "plainBody", "", "string", "sampleValue");\r
+\r
+    messageBody.plainBody = null;\r
+    assert_equals(messageBody.plainBody, "null", "Incorrect plainBody after assigning null");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_notexist.html
new file mode 100755 (executable)
index 0000000..8c02555
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageBody exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:MessageBody U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA NIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageBody");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_extend.html
new file mode 100755 (executable)
index 0000000..fbe384a
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_sms_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_sms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageBody (SMS) can be extended with new property\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:MessageBody U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+\r
+test(function () {\r
+    var message, messageBody;\r
+\r
+    message = new tizen.Message("messaging.sms");\r
+    messageBody = message.body;\r
+\r
+    check_extensibility(messageBody);\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_loaded_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_loaded_attribute.html
new file mode 100755 (executable)
index 0000000..74948c7
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_sms_loaded_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_sms_loaded_attribute\r
+//==== LABEL Check if attribute loaded of MessageBody (SMS) exists, has type Boolean and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:loaded A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO ADV\r
+\r
+test(function () {\r
+\r
+    var message, messageBody, oldValue;\r
+\r
+    message = new tizen.Message("messaging.sms");\r
+    messageBody = message.body;\r
+\r
+    assert_own_property(messageBody, "loaded", "MessageBody does not own loaded property.");\r
+    check_readonly(messageBody, "loaded", false, "boolean", true);\r
+\r
+    oldValue = messageBody.loaded;\r
+    messageBody.loaded = null;\r
+    assert_equals(messageBody.loaded, oldValue, "loaded attribute shuld not accept null as value");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_messageId_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_messageId_attribute.html
new file mode 100755 (executable)
index 0000000..e8ecee0
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_sms_messageId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_sms_messageId_attribute\r
+//==== LABEL Check if attribute messageId of MessageBody (SMS) exists, has type MessageId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:messageId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, messageBody,\r
+    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;\r
+t.step(function () {\r
+\r
+    message = new tizen.Message("messaging.sms", {\r
+        to: [TEST_SMS_RECIPIENT],\r
+        plainBody: generatePlainBody()\r
+    });\r
+\r
+    messageBody = message.body;\r
+\r
+    assert_own_property(messageBody, "messageId", "MessageBody does not own messageId property.");\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        check_readonly(messageBody, "messageId", message.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_plainBody_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_plainBody_attribute.html
new file mode 100755 (executable)
index 0000000..1e73392
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_sms_plainBody_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_sms_plainBody_attribute\r
+//==== LABEL Check if attribute plainBody of MessageBody (SMS) exists, has type DOMString\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:plainBody A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ASG\r
+\r
+test(function () {\r
+    var message, messageBody;\r
+\r
+    message = new tizen.Message("messaging.sms");\r
+    messageBody = message.body;\r
+\r
+    assert_own_property(messageBody, "plainBody", "MessageBody does not own plainBody property.");\r
+    check_attribute(messageBody, "plainBody", "", "string", "sampleValue");\r
+\r
+    messageBody.plainBody = null;\r
+    assert_equals(messageBody.plainBody, "null", "Incorrect plainBody after assigning null");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_notexist.html
new file mode 100755 (executable)
index 0000000..6d2e25a
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationArraySuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationArraySuccessCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageConversationArraySuccessCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationArraySuccessCallback:MessageConversationArraySuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageConversationArraySuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_onsuccess.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_onsuccess.html
new file mode 100755 (executable)
index 0000000..ee337f2
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageConversationArraySuccessCallback_onsuccess</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversationArraySuccessCallback_onsuccess\r
+//==== LABEL Check if method onsuccess of MessageConversationArraySuccessCallback works\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), service, message,\r
+    serviceSuccess, serviceError, findConversationsSuccess, findConversationsError, filter,\r
+    addDraftSuccess, addDraftError;\r
+\r
+t.step(function () {\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "Incorrect type.");\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+        assert_own_property(conversations[0], "id", "id not present.");\r
+        assert_own_property(conversations[0], "type", "type not present.");\r
+        assert_own_property(conversations[0], "timestamp", "timestamp not present.");\r
+        assert_own_property(conversations[0], "messageCount", "messageCount not present.");\r
+        assert_own_property(conversations[0], "unreadMessages", "unreadMessages not present.");\r
+        assert_own_property(conversations[0], "preview", "preview not present.");\r
+        assert_own_property(conversations[0], "subject", "subject not present.");\r
+        assert_own_property(conversations[0], "isRead", "isRead not present.");\r
+        assert_own_property(conversations[0], "from", "from not present.");\r
+        assert_own_property(conversations[0], "to", "to not present.");\r
+        assert_own_property(conversations[0], "cc", "cc not present.");\r
+        assert_own_property(conversations[0], "bcc", "bcc not present.");\r
+        assert_own_property(conversations[0], "lastMessageId", "lastMessageId not present.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.conversationId);\r
+        service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_onsuccess_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_onsuccess_exist.html
new file mode 100755 (executable)
index 0000000..8afa971
--- /dev/null
@@ -0,0 +1,110 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageConversationArraySuccessCallback_onsuccess_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversationArraySuccessCallback_onsuccess_exist\r
+//==== LABEL Check if MessageConversationArraySuccessCallback.onsuccess callback works properly\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, datetime, service, messageStorage, filter,\r
+    sendSuccess, sendError, findConversationsSuccess, findConversationsError;\r
+\r
+t.step(function () {\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+        assert_own_property(conversations[0], "id", "No id attribute in conversation");\r
+        assert_own_property(conversations[0], "type", "No type attribute in conversation");\r
+        assert_own_property(conversations[0], "timestamp", "No timestamp attribute in conversation");\r
+        assert_own_property(conversations[0], "messageCount", "No messageCount attribute in conversation");\r
+        assert_own_property(conversations[0], "unreadMessages", "No unreadMessages attribute in conversation");\r
+        assert_own_property(conversations[0], "preview", "No preview attribute in conversation");\r
+        assert_own_property(conversations[0], "isRead", "No isRead attribute in conversation");\r
+        assert_own_property(conversations[0], "from", "No from attribute in conversation");\r
+        assert_own_property(conversations[0], "to", "No to attribute in conversation");\r
+        assert_own_property(conversations[0], "lastMessageId", "No lastMessageId attribute in conversation");\r
+\r
+        t.done();\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+\r
+        datetime = new Date().getTime().toString();\r
+        message = new tizen.Message("messaging.sms", {\r
+            plainBody: datetime,\r
+            to: [ TEST_SMS_RECIPIENT ]\r
+        });\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_bcc_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_bcc_attribute.html
new file mode 100755 (executable)
index 0000000..267dc25
--- /dev/null
@@ -0,0 +1,59 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_bcc_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_bcc_attribute\r
+//==== LABEL Check attribute bcc of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:bcc A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), tmp;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "bcc", "MessageConversation does not own bcc property.");\r
+\r
+    assert_type(conversation.bcc, "array", "Not an array");\r
+    assert_array_equals(conversation.bcc, message.bcc, "Incorrect 'bcc' attribute");\r
+\r
+    tmp = conversation.bcc;\r
+    conversation.bcc = [Math.random()];\r
+    assert_array_equals(conversation.bcc, tmp, "bcc can be modified.");\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_cc_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_cc_attribute.html
new file mode 100755 (executable)
index 0000000..460ce55
--- /dev/null
@@ -0,0 +1,59 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_cc_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_cc_attribute\r
+//==== LABEL Check attribute cc of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:cc A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), tmp;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "cc", "MessageConversation does not own cc property.");\r
+\r
+    assert_type(conversation.cc, "array", "Not an array");\r
+    assert_array_equals(conversation.cc, message.cc, "Incorrect 'cc' attribute");\r
+\r
+    tmp = conversation.cc;\r
+    conversation.cc = [Math.random()];\r
+    assert_array_equals(tmp, conversation.cc, "cc can be modified.");\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_extend.html
new file mode 100755 (executable)
index 0000000..982f71c
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageConversation can be extended with new property\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:MessageConversation U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    check_extensibility(conversation);\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_from_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_from_attribute.html
new file mode 100755 (executable)
index 0000000..61819af
--- /dev/null
@@ -0,0 +1,102 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_from_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_from_attribute\r
+//==== LABEL Check attribute from of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:from A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, sendSuccess, sendError, syncSuccess, syncError,\r
+    filter, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (conversations) {\r
+        if (conversations.length > 0) {\r
+            assert_type(conversations, "array", "Not an array");\r
+\r
+            for (i = 0; i < conversations.length; i++) {\r
+                assert_own_property(conversations[i], "from", "MessageConversation does not own from property.");\r
+                assert_equals(conversations[i].from, TEST_EMAIL_RECIPIENT_1, "returned from is not equal");\r
+                check_readonly(conversations[i], "from", conversations[i].from, "string", "dummyValue");\r
+            }\r
+\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("from", "EXACTLY", TEST_EMAIL_RECIPIENT_1);\r
+        service.messageStorage.findConversations(filter, findSuccess, findError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_id_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_id_attribute.html
new file mode 100755 (executable)
index 0000000..b98b44d
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST MessageConversation_id_attribute\r
+//==== LABEL Check attribute id of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "id", "MessageConversation does not own id property.");\r
+\r
+    check_readonly(conversation, "id", conversation.id, "string", null);\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_isRead_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_isRead_attribute.html
new file mode 100755 (executable)
index 0000000..ac58710
--- /dev/null
@@ -0,0 +1,53 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_isRead_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_isRead_attribute\r
+//==== PRIORITY P1\r
+//==== LABEL Check attribute isRead of MessageConversation\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:isRead A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "isRead", "MessageConversation does not own isRead property.");\r
+    check_readonly(conversation, "isRead", conversation.isRead, "boolean", null);\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_lastMessageId_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_lastMessageId_attribute.html
new file mode 100755 (executable)
index 0000000..a78ef19
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_lastMessageId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_lastMessageId_attribute\r
+//==== LABEL Check attribute lastMessageId of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:lastMessageId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "lastMessageId", "MessageConversation does not own lastMessageId property.");\r
+\r
+    check_readonly(conversation, "lastMessageId", conversation.lastMessageId, "string", null);\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_messageCount_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_messageCount_attribute.html
new file mode 100755 (executable)
index 0000000..3e6b107
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_messageCount_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_messageCount_attribute\r
+//==== LABEL Check attribute messageCount of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:messageCount A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "messageCount", "MessageConversation does not own messageCount property.");\r
+\r
+    check_readonly(conversation, "messageCount", conversation.messageCount, "number", null);\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_notexist.html
new file mode 100755 (executable)
index 0000000..481617a
--- /dev/null
@@ -0,0 +1,45 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversation_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageConversation exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:MessageConversation U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA NIO\r
+test(function () {\r
+    check_no_interface_object("MessageConversation");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_preview_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_preview_attribute.html
new file mode 100755 (executable)
index 0000000..870bf58
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_preview_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_preview_attribute\r
+//==== LABEL Check attribute preview of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:preview A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "preview", "MessageConversation does not own preview property.");\r
+\r
+    check_readonly(conversation, "preview", conversation.preview, "string", "aaa");\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_sendFindRemove.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_sendFindRemove.html
new file mode 100755 (executable)
index 0000000..113430e
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageConversation_sendFindRemove</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_sendFindRemove\r
+//==== PRIORITY P1\r
+//==== LABEL Check scenario: send a message(sms), find conversation and then remove it\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, msg, messageStorage, filterConversation, filterMessage,\r
+    removeConversationsSuccess, removeConversationsError, findMessageError,\r
+    findConversationsSuccess, findConversationsError, findMessageSuccess,\r
+    sendSuccess, sendError, serviceSuccess, serviceError,\r
+    returnedValue = null;\r
+\r
+t.step(function () {\r
+    removeConversationsSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    removeConversationsError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        returnedValue = messageStorage.removeConversations(conversations, removeConversationsSuccess, removeConversationsError);\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        filterConversation = new tizen.AttributeFilter("id", "EXACTLY", messages[0].conversationId);\r
+        messageStorage.findConversations(filterConversation, findConversationsSuccess, findConversationsError);\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_greater_than(recipients.length, 0, "Received empty recipients array");\r
+        filterMessage = new tizen.AttributeFilter("to", "CONTAINS", recipients[0]);\r
+        messageStorage.findMessages(filterMessage, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+        msg = new tizen.Message("messaging.sms", { plainBody: "test1.", to: [ TEST_SMS_RECIPIENT ]});\r
+        sendMessage(t, service, msg, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_subject_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_subject_attribute.html
new file mode 100755 (executable)
index 0000000..b4a7772
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_subject_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_subject_attribute\r
+//==== LABEL Check attribute subject of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:subject A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "subject", "MessageConversation does not own subject property.");\r
+\r
+    check_readonly(conversation, "subject", conversation.subject, "string", null);\r
+\r
+    assert_true(conversation.subject !== "", "subject should be null or non empty string");\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_timestamp_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_timestamp_attribute.html
new file mode 100755 (executable)
index 0000000..a65fd54
--- /dev/null
@@ -0,0 +1,58 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_timestamp_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_timestamp_attribute\r
+//==== LABEL Check attribute timestamp of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:timestamp A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), tmp;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "timestamp", "MessageConversation does not own timestamp property.");\r
+\r
+    assert_type(conversation.timestamp, "Date", "Type of timestamp is different.");\r
+\r
+    tmp = conversation.timestamp;\r
+    conversation.timestamp = new Date();\r
+    assert_equals(tmp.getTime(), conversation.timestamp.getTime(), "timestamp  can be modified.");\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_to_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_to_attribute.html
new file mode 100755 (executable)
index 0000000..5fd5b91
--- /dev/null
@@ -0,0 +1,59 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_to_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_to_attribute\r
+//==== LABEL Check attribute to of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:to A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), tmp;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "to", "MessageConversation does not own to property.");\r
+\r
+    assert_type(conversation.to, "array", "Not an array");\r
+    assert_array_equals(conversation.to, message.to, "Incorrect 'to' attribute");\r
+\r
+    tmp = conversation.to;\r
+    conversation.to = [Math.random()];\r
+    assert_array_equals(conversation.to, tmp, "to can be modified.");\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_type_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_type_attribute.html
new file mode 100755 (executable)
index 0000000..38e99d2
--- /dev/null
@@ -0,0 +1,53 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_type_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_type_attribute\r
+//==== LABEL Check attribute type of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "type", "MessageConversation does not own type property.");\r
+    check_readonly(conversation, "type", conversation.type, "string", null);\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_unreadMessages_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_unreadMessages_attribute.html
new file mode 100755 (executable)
index 0000000..a1476f5
--- /dev/null
@@ -0,0 +1,53 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_unreadMessages_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_unreadMessages_attribute\r
+//==== LABEL Check attribute unreadMessages of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:unreadMessages A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "unreadMessages", "MessageConversation does not own unreadMessages property.");\r
+    check_readonly(conversation, "unreadMessages", conversation.unreadMessages, "number", conversation.unreadMessages + 1);\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded.html
new file mode 100755 (executable)
index 0000000..e224303
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_conversationsadded</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversationsChangeCallback_conversationsadded\r
+//==== LABEL Check if conversationsadded callback was invoked with proper argument type.\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), service, i,\r
+    serviceSuccess, serviceError, messageService, addDraftError, message, conversationChangeCB, watchId;\r
+\r
+t.step(function () {\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watchId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    conversationChangeCB = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "type check");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+            for (i = 0; i < conversations.length; i++) {\r
+                assert_own_property(conversations[i], "id", "id not present.");\r
+                assert_own_property(conversations[i], "type", "type not present.");\r
+                assert_own_property(conversations[i], "timestamp", "timestamp not present.");\r
+                assert_own_property(conversations[i], "messageCount", "messageCount not present.");\r
+                assert_own_property(conversations[i], "unreadMessages", "unreadMessages not present.");\r
+                assert_own_property(conversations[i], "preview", "preview not present.");\r
+                assert_own_property(conversations[i], "subject", "subject not present.");\r
+                assert_own_property(conversations[i], "isRead", "isRead not present.");\r
+                assert_own_property(conversations[i], "from", "from not present.");\r
+                assert_own_property(conversations[i], "to", "to not present.");\r
+                assert_own_property(conversations[i], "cc", "cc not present.");\r
+                assert_own_property(conversations[i], "bcc", "bcc not present.");\r
+                assert_own_property(conversations[i], "lastMessageId", "lastMessageId not present.");\r
+\r
+                if (conversations[i].id === message.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        messageService = service;\r
+\r
+        watchId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        messageService.messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withfilter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withfilter.html
new file mode 100755 (executable)
index 0000000..5566332
--- /dev/null
@@ -0,0 +1,109 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_conversationsadded_withfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversationsChangeCallback_conversationsadded_withfilter\r
+//==== LABEL Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceSuccess, serviceError, service, message, filter,\r
+    removeAllSuccess, sendError, listener, listenerId;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener, filter);\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        sendMessage(t, service, message, null, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html
new file mode 100755 (executable)
index 0000000..e22b1b8
--- /dev/null
@@ -0,0 +1,106 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_conversationsadded_withoutfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversationsChangeCallback_conversationsadded_withoutfilter\r
+//==== LABEL Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,\r
+    serviceSuccess, serviceError, service, message, removeAllSuccess, sendError, listener;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        sendMessage(t, service, message, null, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withfilter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withfilter.html
new file mode 100755 (executable)
index 0000000..4237a88
--- /dev/null
@@ -0,0 +1,107 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_conversationsremoved_withfilter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationsChangeCallback_conversationsremoved_withfilter\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, i, watcherId,\r
+    removeAllSuccess, sendError, conversationChangeCB,\r
+    removeConversationError, removedConversationId;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    removeConversationError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    conversationChangeCB = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message.conversationId) {\r
+                    removedConversationId = conversations[i].id;\r
+                    service.messageStorage.removeConversations([conversations[i]], null, removeConversationError);\r
+                    break;\r
+                }\r
+            }\r
+        }),\r
+        conversationsremoved: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            t.done();\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        watcherId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        sendMessage(t, service, message, null, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html
new file mode 100755 (executable)
index 0000000..43ac6e3
--- /dev/null
@@ -0,0 +1,107 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_conversationsremoved_withoutfilter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationsChangeCallback_conversationsremoved_withoutfilter\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, i, watcherId,\r
+    removeAllSuccess, sendError, conversationChangeCB,\r
+    removeConversationError, removedConversationId;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    removeConversationError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    conversationChangeCB = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message.conversationId) {\r
+                    removedConversationId = conversations[i].id;\r
+                    service.messageStorage.removeConversations([conversations[i]], null, removeConversationError);\r
+                    break;\r
+                }\r
+            }\r
+        }),\r
+        conversationsremoved: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            t.done();\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        watcherId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        service.sendMessage(message, null, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withfilter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withfilter.html
new file mode 100755 (executable)
index 0000000..f6df1db
--- /dev/null
@@ -0,0 +1,120 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_conversationsupdated_withfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversationsChangeCallback_conversationsupdated_withfilter\r
+//==== LABEL Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,\r
+    serviceSuccess, serviceError, service, message1, message2, removeAllSuccess,\r
+    filter, sendSuccess, sendError, listener;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        conversationsupdated: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message2.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener, filter);\r
+\r
+        message2 = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        sendMessage(t, service, message2, null, sendError);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        message1 = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        sendMessage(t, service, message1, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html
new file mode 100755 (executable)
index 0000000..0f1a851
--- /dev/null
@@ -0,0 +1,124 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_conversationsupdated_withoutfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversationsChangeCallback_conversationsupdated_withoutfilter\r
+//==== LABEL Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,\r
+    serviceSuccess, serviceError, service, message1, message2,\r
+    removeAllSuccess, sendSuccess, sendError, listener;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        conversationsupdated: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message2.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);\r
+\r
+        message2 = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        sendMessage(t, service, message2, null, sendError);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        message1 = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        message1 = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        sendMessage(t, service, message1, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_email_conversationsremoved.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_email_conversationsremoved.html
new file mode 100755 (executable)
index 0000000..4099db1
--- /dev/null
@@ -0,0 +1,123 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_email_conversationsremoved</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationsChangeCallback_email_conversationsremoved\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, email\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    conversationFilter, findConversationSuccess, findConversationError, foundConversation, removeConversationError,\r
+    changeCallback, listenerId;\r
+\r
+t.step(function () {\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        conversationsremoved: t.step_func(function (removedConversations) {\r
+            assert_type(removedConversations, "array", "Not an array.");\r
+            assert_equals(removedConversations.length, 1, "Incorrect length of conversations.");\r
+            assert_equals(removedConversations[0].id, foundConversation.id, "Incorrect id of removed conversation.");\r
+\r
+            assert_own_property(removedConversations[0], "id", "id not present.");\r
+            assert_own_property(removedConversations[0], "type", "type not present.");\r
+            assert_own_property(removedConversations[0], "timestamp", "timestamp not present.");\r
+            assert_own_property(removedConversations[0], "messageCount", "messageCount not present.");\r
+            assert_own_property(removedConversations[0], "unreadMessages", "unreadMessages not present.");\r
+            assert_own_property(removedConversations[0], "preview", "preview not present.");\r
+            assert_own_property(removedConversations[0], "subject", "subject not present.");\r
+            assert_own_property(removedConversations[0], "isRead", "isRead not present.");\r
+            assert_own_property(removedConversations[0], "from", "from not present.");\r
+            assert_own_property(removedConversations[0], "to", "to not present.");\r
+            assert_own_property(removedConversations[0], "cc", "cc not present.");\r
+            assert_own_property(removedConversations[0], "bcc", "bcc not present.");\r
+            assert_own_property(removedConversations[0], "lastMessageId", "lastMessageId not present.");\r
+\r
+            t.done();\r
+        })\r
+    };\r
+\r
+    removeConversationError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConversationSuccess = t.step_func(function (conversations) {\r
+        assert_equals(conversations.length, 1, "Incorrect number of found conversations");\r
+        foundConversation = conversations[0];\r
+\r
+        listenerId = service.messageStorage.addConversationsChangeListener(changeCallback);\r
+        service.messageStorage.removeConversations([foundConversation], null, removeConversationError);\r
+    });\r
+\r
+    findConversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversationFilter = new tizen.AttributeFilter("id", "EXACTLY", message.conversationId);\r
+        service.messageStorage.findConversations(conversationFilter, findConversationSuccess, findConversationError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_email_conversationsupdated.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_email_conversationsupdated.html
new file mode 100755 (executable)
index 0000000..c15180e
--- /dev/null
@@ -0,0 +1,120 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_email_conversationsupdated</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationsChangeCallback_email_conversationsupdated\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, email\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, messageService, messageStorage, message, i,\r
+    addDraftSuccess, addDraftError, updateError, oldTimestamp, changeCallback, listenerId;\r
+\r
+t.step(function () {\r
+\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        conversationsupdated: t.step_func(function (updatedConversations) {\r
+            assert_type(updatedConversations, "array", "Not an array");\r
+            assert_greater_than(updatedConversations.length, 0, "Received empty conversations array");\r
+\r
+            for (i = 0; i < updatedConversations.length; i++) {\r
+                if (updatedConversations[i].id === message.conversationId) {\r
+                    check_readonly(updatedConversations[i], "id", updatedConversations[i].id, "string", "dummyValue");\r
+                    check_readonly(updatedConversations[i], "type", "messaging.email", "string", "dummyValue");\r
+                    assert_true(updatedConversations[i].timestamp instanceof Date, "Not a date");\r
+                    oldTimestamp = updatedConversations[i].timestamp;\r
+                    updatedConversations[i].timestamp = new Date();\r
+                    assert_equals(updatedConversations[i].timestamp.getTime(), oldTimestamp.getTime(), "timestamp modified");\r
+                    check_readonly(updatedConversations[i], "messageCount", updatedConversations[i].messageCount, "number", 123);\r
+                    check_readonly(updatedConversations[i], "unreadMessages", updatedConversations[i].unreadMessages, "number", 123);\r
+                    check_readonly(updatedConversations[i], "preview", updatedConversations[i].preview, "string", "dummyValue");\r
+                    check_readonly(updatedConversations[i], "subject", message.subject, "string", "dummyValue");\r
+                    check_readonly(updatedConversations[i], "isRead", updatedConversations[i].isRead, "boolean", "dummyValue");\r
+                    check_readonly(updatedConversations[i], "from", TEST_EMAIL_RECIPIENT_1, "string", "dummyValue");\r
+                    assert_array_equals(updatedConversations[i].to, message.to, "to incorrect");\r
+                    assert_array_equals(updatedConversations[i].cc, message.cc, "cc incorrect");\r
+                    assert_array_equals(updatedConversations[i].bcc, message.bcc, "bcc incorrect");\r
+                    check_readonly(updatedConversations[i], "lastMessageId", message.id, "string", "dummyValue");\r
+\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        listenerId = messageStorage.addConversationsChangeListener(changeCallback);\r
+\r
+        message.subject = generateSubject();\r
+        messageStorage.updateMessages([message], null, updateError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        messageService = service;\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_mms_conversationsremoved.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_mms_conversationsremoved.html
new file mode 100755 (executable)
index 0000000..447f443
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_mms_conversationsremoved</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationsChangeCallback_mms_conversationsremoved\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, mms\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,\r
+    serviceSuccess, serviceError, service, message,\r
+    removeAllSuccess, sendError, conversationChangeCB,\r
+    removeConversation, removeConversationError, removedConversationId;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    removeConversationError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeConversation = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "conversations");\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        for (i = 0; i < conversations.length; i++) {\r
+            if (conversations[i].id === message.conversationId) {\r
+                removedConversationId = conversations[i].id;\r
+                service.messageStorage.removeConversations([conversations[i]], null, removeConversationError);\r
+                break;\r
+            }\r
+        }\r
+    });\r
+    \r
+    conversationChangeCB = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            removeConversation(conversations);\r
+        }),\r
+        conversationsupdated: t.step_func(function (conversations) {\r
+            removeConversation(conversations);\r
+        }),       \r
+        conversationsremoved: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            t.done();\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        listenerId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        sendMessage(t, service, message, null, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_mms_conversationsupdated.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_mms_conversationsupdated.html
new file mode 100755 (executable)
index 0000000..372720b
--- /dev/null
@@ -0,0 +1,108 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_mms_conversationsupdated</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationsChangeCallback_mms_conversationsupdated\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, mms\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,\r
+    serviceSuccess, serviceError, service, message1, message2,\r
+    removeAllSuccess, sendSuccess, sendError, conversationChangeCB;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    conversationChangeCB = {\r
+        conversationsupdated: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message2.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        listenerId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);\r
+\r
+        message2 = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        sendMessage(t, service, message2, null, sendError);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        message1 = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        sendMessage(t, service, message1, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_notexist.html
new file mode 100755 (executable)
index 0000000..ee26a76
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationsChangeCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageConversationsChangeCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:MessageConversationsChangeCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageConversationsChangeCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolderArraySuccessCallback_email_onsuccess.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolderArraySuccessCallback_email_onsuccess.html
new file mode 100755 (executable)
index 0000000..0e6631d
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolderArraySuccessCallback_email_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolderArraySuccessCallback_email_onsuccess\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageFolderArraySuccessCallback, email\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolderArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), messageService,\r
+    messageStorage, filter, messageFolder, serviceSuccess, serviceError, folderSuccess, folderError, i;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+        assert_type(folders, "array", "Not an array.");\r
+\r
+        for (i = 0; i < folders.length; i++) {\r
+            messageFolder = folders[i];\r
+            assert_own_property(messageFolder, "id", "MessageFolder does not own parentId property for index=" + i);\r
+            assert_own_property(messageFolder, "parentId", "MessageFolder does not own parentId property for index=" + i);\r
+            assert_own_property(messageFolder, "serviceId", "MessageFolder does not own serviceId property for index=" + i);\r
+            assert_own_property(messageFolder, "contentType", "MessageFolder does not own contentType property for index=" + i);\r
+            assert_own_property(messageFolder, "name", "MessageFolder does not own name property for index=" + i);\r
+            assert_own_property(messageFolder, "path", "MessageFolder does not own path property for index=" + i);\r
+            assert_own_property(messageFolder, "type", "MessageFolder does not own type property for index=" + i);\r
+            assert_own_property(messageFolder, "synchronizable", "MessageFolder does not own synchronizable property for index=" + i);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolderArraySuccessCallback_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolderArraySuccessCallback_notexist.html
new file mode 100755 (executable)
index 0000000..51124b2
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolderArraySuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolderArraySuccessCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageFolderArraySuccessCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolderArraySuccessCallback:MessageFolderArraySuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageFolderArraySuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_contentType_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_contentType_exist.html
new file mode 100755 (executable)
index 0000000..033f3d3
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageFolder_contentType_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageFolder_contentType_exist\r
+//==== LABEL Check if the attribute contentType in MessageFolder\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:contentType A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    getMessageServicesSuccess, getMessageServicesError,\r
+    findFoldersSuccess, findFoldersError, filter;\r
+\r
+t.step(function () {\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "there should be folders");\r
+        assert_true("contentType" in folders[0], "contentType is not exist");\r
+        t.done();\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "There shout be available a message service");\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services[0].id);\r
+        services[0].messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    getMessageServicesError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_contentType_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_contentType_attribute.html
new file mode 100755 (executable)
index 0000000..248daf6
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_contentType_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_contentType_attribute\r
+//==== LABEL Check if attribute contentType of MessageFolder (email) exists, has type MessageServiceTag and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:contentType A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,\r
+    serviceSuccess, serviceError, folderSuccess, folderError;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        assert_own_property(messageFolder, "contentType", "MessageFolder does not own contentType property.");\r
+        check_readonly(messageFolder, "contentType", "messaging.email", "string", messageFolder.contentType + "sampleValue");\r
+\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_extend.html
new file mode 100755 (executable)
index 0000000..45b336a
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_extend</title>\r
+<script src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageFolder (email) can be extended with new property\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:MessageFolder U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, serviceSuccess,\r
+    serviceError, folderSuccess, folderError, messageFolder;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        check_extensibility(messageFolder);\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_id_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_id_attribute.html
new file mode 100755 (executable)
index 0000000..df9981a
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_id_attribute\r
+//==== LABEL Check if attribute id of MessageFolder (email) exists, has type MessageFolderId and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,\r
+    serviceSuccess, serviceError, folderSuccess, folderError;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        assert_own_property(messageFolder, "id", "MessageFolder does not own id property.");\r
+        check_readonly(messageFolder, "id", messageFolder.id, "string", messageFolder.id + "_value");\r
+        assert_not_equals(messageFolder.id, "", "MessageFolder id contains an empty string");\r
+\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_name_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_name_attribute.html
new file mode 100755 (executable)
index 0000000..4b08e35
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_name_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_name_attribute\r
+//==== LABEL Check if attribute name of MessageFolder (email) exists, has type DOMString\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:name A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ASG AT AN\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,\r
+    serviceSuccess, serviceError, folderSuccess, folderError;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        assert_own_property(messageFolder, "name", "MessageFolder does not own name property.");\r
+\r
+        check_attribute(messageFolder, "name", messageFolder.name, "string", "newName");\r
+\r
+        check_not_nullable(messageFolder, "name");\r
+\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_parentId_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_parentId_attribute.html
new file mode 100755 (executable)
index 0000000..d5ce05a
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_parentId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_parentId_attribute\r
+//==== LABEL Check if attribute parentId of MessageFolder (email) exists, has type MessageFolderId and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:parentId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ARO AT ADV\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, i,\r
+    filter, messageFolder, serviceSuccess, serviceError, folderSuccess, folderError, rootFound = false;\r
+t.step(function () {\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        assert_own_property(messageFolder, "parentId", "MessageFolder does not own parentId property.");\r
+        check_readonly(messageFolder, "parentId", messageFolder.parentId, "string", messageFolder.parentId + "sampleValue");\r
+\r
+        for(i = 0; i < folders.length; i++) {\r
+            if (folders[i].parentId === null) {\r
+                rootFound = true;\r
+                break;\r
+            }\r
+        }\r
+        assert_true(rootFound, "Root folder not found.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_path_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_path_attribute.html
new file mode 100755 (executable)
index 0000000..0970e9e
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_path_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_path_attribute\r
+//==== LABEL Check if attribute path of MessageFolder (email) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:path A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,\r
+    serviceSuccess, serviceError, folderSuccess, folderError;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        assert_own_property(messageFolder, "path", "MessageFolder does not own path property.");\r
+        check_readonly(messageFolder, "path", messageFolder.path, "string", messageFolder.path + "_value");\r
+\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_serviceId_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_serviceId_attribute.html
new file mode 100755 (executable)
index 0000000..e59152d
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_serviceId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_serviceId_attribute\r
+//==== LABEL Check if attribute serviceId of MessageFolder (email) exists, has appropriate type and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:serviceId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesSuccess, getMessageServicesError,\r
+    findFoldersSuccess, findFoldersError, filter, folder, service;\r
+\r
+t.step(function () {\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+        folder = folders[0];\r
+\r
+        assert_own_property(folder, "serviceId", "serviceId not found.");\r
+\r
+        assert_type(folder.serviceId, "string", "serviceId is not a string");\r
+        assert_not_equals(folder.serviceId, "", "serviceId is empty");\r
+\r
+        check_readonly(folder, "serviceId", folder.serviceId, "string", folder.serviceId + "123");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        service.messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    getMessageServicesError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_synchronizable_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_synchronizable_attribute.html
new file mode 100755 (executable)
index 0000000..0437686
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_synchronizable_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_synchronizable_attribute\r
+//==== LABEL Check if attribute synchronizable of MessageFolder (email) exists, has type Boolean\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:synchronizable A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,\r
+    serviceSuccess, serviceError, folderSuccess, folderError;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        assert_own_property(messageFolder, "synchronizable", "MessageFolder does not own synchronizable property.");\r
+        check_attribute(messageFolder, "synchronizable", messageFolder.synchronizable, "boolean", !messageFolder.synchronizable);\r
+\r
+        check_not_nullable(messageFolder, "synchronizable");\r
+\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_type_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_type_attribute.html
new file mode 100755 (executable)
index 0000000..787e0cf
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_type_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_type_attribute\r
+//==== LABEL Check if attribute type of MessageFolder (email) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,\r
+    serviceSuccess, serviceError, folderSuccess, folderError;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        assert_own_property(messageFolder, "type", "MessageFolder does not own type property.");\r
+        check_readonly(messageFolder, "type", messageFolder.type, "string", messageFolder.type + "_value");\r
+\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_id_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_id_exist.html
new file mode 100755 (executable)
index 0000000..43b179a
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageFolder_id_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageFolder_id_exist\r
+//==== LABEL Check if the attribute id in MessageFolder\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    getMessageServicesSuccess, getMessageServicesError,\r
+    findFoldersSuccess, findFoldersError, filter;\r
+\r
+t.step(function () {\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "there should be folders");\r
+        assert_true("id" in folders[0], "id is not exist");\r
+        t.done();\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "There shout be available a message service");\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services[0].id);\r
+        services[0].messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    getMessageServicesError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_notexist.html
new file mode 100755 (executable)
index 0000000..808e2f7
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageFolder exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:MessageFolder U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA NIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageFolder");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_path_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_path_exist.html
new file mode 100755 (executable)
index 0000000..623639d
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageFolder_path_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageFolder_path_exist\r
+//==== LABEL Check if the attribute path in MessageFolder\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:path A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    getMessageServicesSuccess, getMessageServicesError,\r
+    findFoldersSuccess, findFoldersError, filter;\r
+\r
+t.step(function () {\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "there should be folders");\r
+        assert_true("path" in folders[0], "path is not exist");\r
+        t.done();\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "There shout be available a message service");\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services[0].id);\r
+        services[0].messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    getMessageServicesError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_type_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_type_exist.html
new file mode 100755 (executable)
index 0000000..8207e32
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageFolder_type_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageFolder_type_exist\r
+//==== LABEL Check if the attribute type in MessageFolder\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    getMessageServicesSuccess, getMessageServicesError,\r
+    findFoldersSuccess, findFoldersError, filter;\r
+\r
+t.step(function () {\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "there should be folders");\r
+        assert_true("type" in folders[0], "type is not exist");\r
+        t.done();\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "There shout be available a message service");\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services[0].id);\r
+        services[0].messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    getMessageServicesError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersadded.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersadded.html
new file mode 100755 (executable)
index 0000000..2ba8276
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFoldersChangeCallback_foldersadded</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFoldersChangeCallback_foldersadded\r
+//==== LABEL Check if foldersadded callback was invoked with proper argument type.\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageFoldersChangeCallback:foldersadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter, addDraftError, i, message;\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(function (updatedFolders) {\r
+        }),\r
+        foldersadded: t.step_func(function (addedFolders) {\r
+            assert_type(addedFolders, "array", "type check");\r
+            assert_greater_than(addedFolders.length, 0, "Received empty folders array");\r
+            for (i = 0; i < addedFolders.length; i++) {\r
+                assert_own_property(addedFolders[i], "id", "id not present.");\r
+                assert_own_property(addedFolders[i], "parentId", "parentId not present.");\r
+                assert_own_property(addedFolders[i], "serviceId", "serviceId not present.");\r
+                assert_own_property(addedFolders[i], "contentType", "contentType not present.");\r
+                assert_own_property(addedFolders[i], "name", "name not present.");\r
+                assert_own_property(addedFolders[i], "path", "path not present.");\r
+                assert_own_property(addedFolders[i], "type", "type not present.");\r
+                assert_own_property(addedFolders[i], "synchronizable", "synchronizable not present.");\r
+            }\r
+        }),\r
+        foldersremoved: t.step_func(function (removedFolders) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);\r
+        assert_type(watchId, "long", "Incorrect returned type");\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.addDraftMessage(message, null, addDraftError);\r
+        service.messageStorage.removeChangeListener(watchId);\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersremoved.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersremoved.html
new file mode 100755 (executable)
index 0000000..951e718
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFoldersChangeCallback_foldersremoved</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFoldersChangeCallback_foldersremoved\r
+//==== LABEL Check if foldersremoved callback was invoked with proper argument type.\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageFoldersChangeCallback:foldersremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter, addDraftError, i, message;\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(function (updatedFolders) {\r
+        }),\r
+        foldersadded: t.step_func(function (addedFolders) {\r
+        }),\r
+        foldersremoved: t.step_func(function (removedFolders) {\r
+            assert_type(removedFolders, "array", "type check");\r
+            assert_greater_than(removedFolders.length, 0, "Received empty folders array");\r
+            for (i = 0; i < removedFolders.length; i++) {\r
+                assert_own_property(removedFolders[i], "id", "id not present.");\r
+                assert_own_property(removedFolders[i], "parentId", "parentId not present.");\r
+                assert_own_property(removedFolders[i], "serviceId", "serviceId not present.");\r
+                assert_own_property(removedFolders[i], "contentType", "contentType not present.");\r
+                assert_own_property(removedFolders[i], "name", "name not present.");\r
+                assert_own_property(removedFolders[i], "path", "path not present.");\r
+                assert_own_property(removedFolders[i], "type", "type not present.");\r
+                assert_own_property(removedFolders[i], "synchronizable", "synchronizable not present.");\r
+            }\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);\r
+        assert_type(watchId, "long", "Incorrect returned type");\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.addDraftMessage(message, null, addDraftError);\r
+        service.messageStorage.removeChangeListener(watchId);\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersupdated.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersupdated.html
new file mode 100755 (executable)
index 0000000..0d40a60
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFoldersChangeCallback_foldersupdated</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFoldersChangeCallback_foldersupdated\r
+//==== LABEL Check if foldersupdated callback was invoked with proper argument type.\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageFoldersChangeCallback:foldersupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter, addDraftError, i, message;\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(function (updatedFolders) {\r
+            assert_type(updatedFolders, "array", "type check");\r
+            assert_greater_than(updatedFolders.length, 0, "Received empty folders array");\r
+            for (i = 0; i < updatedFolders.length; i++) {\r
+                assert_own_property(updatedFolders[i], "id", "id not present.");\r
+                assert_own_property(updatedFolders[i], "parentId", "parentId not present.");\r
+                assert_own_property(updatedFolders[i], "serviceId", "serviceId not present.");\r
+                assert_own_property(updatedFolders[i], "contentType", "contentType not present.");\r
+                assert_own_property(updatedFolders[i], "name", "name not present.");\r
+                assert_own_property(updatedFolders[i], "path", "path not present.");\r
+                assert_own_property(updatedFolders[i], "type", "type not present.");\r
+                assert_own_property(updatedFolders[i], "synchronizable", "synchronizable not present.");\r
+            }\r
+        }),\r
+        foldersadded: t.step_func(function (addedFolders) {\r
+        }),\r
+        foldersremoved: t.step_func(function (removedFolders) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);\r
+        assert_type(watchId, "long", "Incorrect returned type");\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.addDraftMessage(message, null, addDraftError);\r
+        service.messageStorage.removeChangeListener(watchId);\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_notexist.html
new file mode 100755 (executable)
index 0000000..0838dd4
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFoldersChangeCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFoldersChangeCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageFoldersChangeCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFoldersChangeCallback:MessageFoldersChangeCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageFoldersChangeCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_email.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_email.html
new file mode 100755 (executable)
index 0000000..74b8ea7
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageInit_MessageInit_valid_argument_email</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageInit_MessageInit_valid_argument_email\r
+//==== LABEL Checks various message attributes upon message (email) creation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM CONSTRA\r
+\r
+test(function () {\r
+\r
+    var emailMsg;\r
+\r
+   emailMsg = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd",\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+    assert_equals(emailMsg.body.plainBody, "abd", "email message creation failed.");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_mms.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_mms.html
new file mode 100755 (executable)
index 0000000..625f9c4
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageInit_MessageInit_valid_argument_mms</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageInit_MessageInit_valid_argument_mms\r
+//==== LABEL Checks various message attributes upon message (mms) creation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM CONSTRA\r
+test(function () {\r
+    var mmsMsg;\r
+\r
+    mmsMsg = new tizen.Message("messaging.mms", {\r
+        subject: "Mms Message Test",\r
+        plainBody: "MMS Message Body",\r
+        to: [TEST_SMS_RECIPIENT]\r
+    });\r
+    assert_equals(mmsMsg.subject, "Mms Message Test", "MMS message creation failed.");\r
+    assert_equals(mmsMsg.to.length, 1, "MMS message creation failed.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_sms.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_sms.html
new file mode 100755 (executable)
index 0000000..fe637ed
--- /dev/null
@@ -0,0 +1,56 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageInit_MessageInit_valid_argument_sms</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageInit_MessageInit_valid_argument_sms\r
+//==== LABEL Checks various message attributes upon message (sms) creation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM CONSTRA\r
+test(function () {\r
+    var smsMsg;\r
+\r
+    smsMsg = new tizen.Message("messaging.sms", {\r
+        plainBody: "Sms Message Test",\r
+        to: [TEST_SMS_RECIPIENT]\r
+    });\r
+\r
+    assert_equals(smsMsg.body.plainBody, "Sms Message Test", "SMS message creation failed.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageManagerObject_messaging.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageManagerObject_messaging.html
new file mode 100755 (executable)
index 0000000..9c9a121
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageManagerObject_messaging</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageManagerObject_messaging\r
+//==== LABEL Check the attribute messaging in MessageManagerObject\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:Messaging U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBME\r
+\r
+test(function () {\r
+    assert_true("messaging" in tizen, "tizen.messaging exists");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageManagerObject_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageManagerObject_notexist.html
new file mode 100755 (executable)
index 0000000..eb4f95c
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageManagerObject_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageManagerObject_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageManagerObject exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageManagerObject:MessageManagerObject U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA NIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageManagerObject");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageRecipientsCallback_email_onsuccess.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageRecipientsCallback_email_onsuccess.html
new file mode 100755 (executable)
index 0000000..4dda3b9
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageRecipientsCallback_email_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageRecipientsCallback_email_onsuccess\r
+//==== LABEL Check if callback is called and if its arguments have proper type, check argument recipients type - DOMString[]\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageRecipientsCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, sendSuccess, sendError, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_type(recipients, "array", "recipients type is not array");\r
+        assert_equals(recipients.length, 1, "recipients.length should be 1");\r
+        assert_type(recipients[0], "string", "recipients[0] type is not string");\r
+        assert_equals(recipients[0], TEST_EMAIL_RECIPIENT_2, "recipient in sent message is not the same as recipient set during message creation");\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("failed to receive services: name:" + error.name + " message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("failed to receive services: " + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageRecipientsCallback_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageRecipientsCallback_notexist.html
new file mode 100755 (executable)
index 0000000..f0e2227
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageRecipientsCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageRecipientsCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageRecipientsCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageRecipientsCallback:MessageRecipientsCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageRecipientsCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_email_onsuccess.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_email_onsuccess.html
new file mode 100755 (executable)
index 0000000..0fbf807
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageServiceArraySuccessCallback_email_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageServiceArraySuccessCallback_email_onsuccess\r
+//==== LABEL Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for email\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, i;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "Not an array");\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        for(i = 0; i< services.length; i++){\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.email", "Type is not equal email");\r
+\r
+            assert_true("id" in services[i], "Name id doesn't exist in provided object.");\r
+            assert_true("name" in services[i], "Name name doesn't exist in provided object.");\r
+            assert_true("messageStorage" in services[i], "Name messageStorage doesn't exist in provided object.");\r
+            assert_type(services[i].sendMessage, "function", "Checking sendMessage of find");\r
+            assert_type(services[i].loadMessageBody, "function", "Checking loadMessageBody of find");\r
+            assert_type(services[i].loadMessageAttachment, "function", "Checking loadMessageAttachment of find");\r
+            assert_type(services[i].sync, "function", "Checking sync of find");\r
+            assert_type(services[i].syncFolder, "function", "Checking syncFolder of find");\r
+            assert_type(services[i].stopSync, "function", "Checking stopSync of find");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_mms_onsuccess.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_mms_onsuccess.html
new file mode 100755 (executable)
index 0000000..35c0029
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageServiceArraySuccessCallback_mms_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageServiceArraySuccessCallback_mms_onsuccess\r
+//==== LABEL Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for mms\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, i;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        assert_type(services, "array", "Not an array");\r
+\r
+        for(i = 0; i< services.length; i++){\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.mms", "Type is not equal mms");\r
+\r
+            assert_true("id" in services[i], "Name id doesn't exist in provided object.");\r
+            assert_true("name" in services[i], "Name name doesn't exist in provided object.");\r
+            assert_true("messageStorage" in services[i], "Name messageStorage doesn't exist in provided object.");\r
+            assert_type(services[i].sendMessage, "function", "Checking sendMessage of find");\r
+            assert_type(services[i].loadMessageBody, "function", "Checking loadMessageBody of find");\r
+            assert_type(services[i].loadMessageAttachment, "function", "Checking loadMessageAttachment of find");\r
+            assert_type(services[i].sync, "function", "Checking sync of find");\r
+            assert_type(services[i].syncFolder, "function", "Checking syncFolder of find");\r
+            assert_type(services[i].stopSync, "function", "Checking stopSync of find");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_notexist.html
new file mode 100755 (executable)
index 0000000..af7a6ea
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageServiceArraySuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageServiceArraySuccessCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageServiceArraySuccessCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:MessageServiceArraySuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageServiceArraySuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_onsuccess.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_onsuccess.html
new file mode 100755 (executable)
index 0000000..abba29e
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageServiceArraySuccessCallback_onsuccess</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageServiceArraySuccessCallback_onsuccess\r
+//==== LABEL Check the function onsuccess in MessageServiceArraySuccessCallback\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "Not an array");\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_sms_onsuccess.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_sms_onsuccess.html
new file mode 100755 (executable)
index 0000000..6700d14
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageServiceArraySuccessCallback_sms_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageServiceArraySuccessCallback_sms_onsuccess\r
+//==== LABEL Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for sms\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, i;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        assert_type(services, "array", "Not an array");\r
+\r
+        for(i = 0; i< services.length; i++) {\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.sms", "Type is not equal sms");\r
+\r
+            assert_true("id" in services[i], "Name id doesn't exist in provided object.");\r
+            assert_true("name" in services[i], "Name name doesn't exist in provided object.");\r
+            assert_true("messageStorage" in services[i], "Name messageStorage doesn't exist in provided object.");\r
+            assert_type(services[i].sendMessage, "function", "Checking sendMessage of find");\r
+            assert_type(services[i].loadMessageBody, "function", "Checking loadMessageBody of find");\r
+            assert_type(services[i].loadMessageAttachment, "function", "Checking loadMessageAttachment of find");\r
+            assert_type(services[i].sync, "function", "Checking sync of find");\r
+            assert_type(services[i].syncFolder, "function", "Checking syncFolder of find");\r
+            assert_type(services[i].stopSync, "function", "Checking stopSync of find");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_extend.html
new file mode 100755 (executable)
index 0000000..e1a248b
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_extend</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageService (email) can be extended with new property\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:MessageService U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        check_extensibility(messageService);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_id_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_id_attribute.html
new file mode 100755 (executable)
index 0000000..a273066
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_id_attribute\r
+//==== LABEL Check if attribute id of MessageService (email) exists, has appropriate type and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_own_property(service, "id", "No 'id' attribute in service");\r
+\r
+        assert_type(service.id, "string", "Incorrect type");\r
+        assert_not_equals(service.id, "", "Id is empty");\r
+\r
+        check_readonly(service, "id", service.id, "string", "123456");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment.html
new file mode 100755 (executable)
index 0000000..f097281
--- /dev/null
@@ -0,0 +1,144 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment\r
+//==== LABEL Check if MessageService.loadMessageAttachment method works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, inboxFolder, message, attachment, returnedValue = null,\r
+    serviceSuccess, serviceError, sendSuccess, sendError, syncSuccess, syncError,\r
+    findSuccess, findError, foundMessage, loadAttachmentSuccess, loadAttachmentError,\r
+    loadBodySuccess, loadBodyError, loadMessage, folderSuccess, folderError;\r
+\r
+t.step(function () {\r
+\r
+    loadAttachmentSuccess = t.step_func(function (f_attachment) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from loadMessageAttachment");\r
+        assert_true(f_attachment instanceof tizen.MessageAttachment, "Not a tizen.MessageAttachment.");\r
+\r
+        assert_type(f_attachment.id, "string", "attachment.id incorrect type.");\r
+        assert_not_equals(f_attachment.id, "", "attachment.id is empty.");\r
+\r
+        assert_type(f_attachment.messageId, "string", "attachment.messageId incorrect type.");\r
+        assert_equals(f_attachment.messageId, foundMessage.attachments[0].messageId, "attachment.messageId");\r
+\r
+        assert_equals(f_attachment.mimeType, attachment.mimeType, "attachment.mimeType");\r
+\r
+        assert_type(f_attachment.filePath, "string", "attachment.filePath incorrect type.");\r
+        assert_not_equals(f_attachment.filePath, "", "attachment.filePath is empty.");\r
+        t.done();\r
+    });\r
+\r
+    loadAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadBodySuccess = t.step_func(function (message) {\r
+        loadMessage = message;\r
+        assert_equals(loadMessage.attachments.length, 1, "Incorrect number of found attachments");\r
+        returnedValue = service.loadMessageAttachment(loadMessage.attachments[0], loadAttachmentSuccess, loadAttachmentError);\r
+    });\r
+\r
+    loadBodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+\r
+            foundMessage = messages[0];\r
+            if (foundMessage.attachments.length === 0) {\r
+                service.loadMessageBody(foundMessage, loadBodySuccess, loadBodyError);\r
+            } else {\r
+                returnedValue = service.loadMessageAttachment(foundMessage.attachments[0], loadAttachmentSuccess, loadAttachmentError);\r
+            }\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, folderSuccess, folderError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..cfbec99
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_attachment_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_attachment_TypeMismatch\r
+//==== LABEL Check type conversions for attachment argument of MessageService.loadMessageAttachment method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName, incorrectAttachment, loadAttachmentSuccess,\r
+    loadAttachmentError, conversionTable, i;\r
+t.step(function () {\r
+\r
+    loadAttachmentSuccess = t.step_func(function (attachment) {\r
+        assert_unreached("loadMessageAttachment() success callback invoked");\r
+    });\r
+\r
+    loadAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectAttachment = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageService.loadMessageAttachment(incorrectAttachment, loadAttachmentSuccess, loadAttachmentError);\r
+                }, exceptionName + " should be thrown - given incorrect Attachment: " + incorrectAttachment);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html
new file mode 100755 (executable)
index 0000000..6c3c1f5
--- /dev/null
@@ -0,0 +1,96 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_attachment_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_attachment_invalid_cb\r
+//==== LABEL Check if MessageService.loadMessageAttachment method throws exception when attachment is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", loadAttachmentSuccess,\r
+    loadAttachmentError, fakeAttachment;\r
+\r
+t.step(function () {\r
+\r
+    loadAttachmentSuccess = t.step_func(function (attachment) {\r
+        assert_unreached("loadMessageAttachment() success callback invoked");\r
+    });\r
+\r
+    loadAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+\r
+        fakeAttachment = {\r
+            id: message.attachments[0].id,\r
+            messageId: message.attachments[0].messageId,\r
+            mimeType: message.attachments[0].mimeType,\r
+            filePath: message.attachments[0].filePath\r
+        };\r
+        assert_throws({ name: exceptionName },\r
+            function () {\r
+                messageService.loadMessageAttachment(fakeAttachment, loadAttachmentSuccess, loadAttachmentError);\r
+            }, exceptionName + " should be thrown - incorrect success object.");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..3fdbb69
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.loadMessageAttachment method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName, incorrectCallback, loadAttachmentSuccess,\r
+    conversionTable, i;\r
+t.step(function () {\r
+\r
+    loadAttachmentSuccess = t.step_func(function (attachment) {\r
+        assert_unreached("loadMessageAttachment() success callback invoked");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageService.loadMessageAttachment(message.attachments[0], loadAttachmentSuccess, incorrectCallback);\r
+                }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..01d8e7b
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.loadMessageAttachment method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", incorrectCallback,\r
+    loadAttachmentSuccess;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("Incorrect errorCallback invoked: " + error.name + ": " + error.message);\r
+        })\r
+    };\r
+\r
+    loadAttachmentSuccess = t.step_func(function (attachment) {\r
+        assert_unreached("loadMessageAttachment() success callback invoked");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws({ name: exceptionName },\r
+            function () {\r
+                messageService.loadMessageAttachment(message.attachments[0], loadAttachmentSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - incorrect success object.");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_exist.html
new file mode 100755 (executable)
index 0000000..dcbeb5d
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_exist\r
+//==== LABEL Check if method loadMessageAttachment of MessageService (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_true("loadMessageAttachment" in service, "No loadMessageAttachment method in service");\r
+        check_method_exists(service, "loadMessageAttachment");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_missarg.html
new file mode 100755 (executable)
index 0000000..438547b
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_missarg</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageService.loadMessageAttachment (email)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, messageService, messageStorage, message, attachment,\r
+    addDraftError, addDraftSuccess, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageService.loadMessageAttachment(message.attachments[0]);\r
+            }, exceptionName + " should be thrown - missing mandatory argument.");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.attachments = [attachment];\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..4e00963
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.loadMessageAttachment method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName, incorrectCallback, loadAttachmentError,\r
+    conversionTable, i;\r
+t.step(function () {\r
+\r
+    loadAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageService.loadMessageAttachment(message.attachments[0], incorrectCallback, loadAttachmentError);\r
+                }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..870c93d
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.loadMessageAttachment method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", incorrectCallback,\r
+    loadAttachmentError;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function (error) {\r
+            assert_unreached("Incorrect successCallback invoked: " + error.name + ": " + error.message);\r
+        })\r
+    };\r
+\r
+    loadAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws({ name: exceptionName },\r
+            function () {\r
+                messageService.loadMessageAttachment(message.attachments[0], incorrectCallback, loadAttachmentError);\r
+            }, exceptionName + " should be thrown - incorrect success object.");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_without_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..030db72
--- /dev/null
@@ -0,0 +1,140 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_without_errorCallback\r
+//==== LABEL Check if MessageService.loadMessageAttachment method works properly without errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MMINA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, inboxFolder, serviceSuccess, serviceError, sendSuccess, sendError,\r
+    message, attachment, syncSuccess, syncError, returnedValue = null, findSuccess, findError, foundMessage,\r
+    loadAttachmentSuccess, loadBodySuccess, loadBodyError, loadMessage, folderSuccess, folderError;\r
+\r
+t.step(function () {\r
+    loadAttachmentSuccess = t.step_func(function (f_attachment) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from loadMessageAttachment");\r
+        assert_true(f_attachment instanceof tizen.MessageAttachment, "Not a tizen.MessageAttachment.");\r
+\r
+        assert_type(f_attachment.id, "string", "attachment.id incorrect type.");\r
+        assert_not_equals(f_attachment.id, "", "attachment.id is empty.");\r
+\r
+        assert_type(f_attachment.messageId, "string", "attachment.messageId incorrect type.");\r
+        assert_equals(f_attachment.messageId, foundMessage.attachments[0].messageId, "attachment.messageId");\r
+\r
+        assert_equals(f_attachment.mimeType, attachment.mimeType, "attachment.mimeType");\r
+\r
+        assert_type(f_attachment.filePath, "string", "attachment.filePath incorrect type.");\r
+        assert_not_equals(f_attachment.filePath, "", "attachment.filePath is empty.");\r
+        t.done();\r
+    });\r
+\r
+    loadBodySuccess = t.step_func(function (message) {\r
+        loadMessage = message;\r
+        assert_equals(loadMessage.attachments.length, 1, "Incorrect number of found attachments");\r
+        returnedValue = service.loadMessageAttachment(loadMessage.attachments[0], loadAttachmentSuccess);\r
+    });\r
+\r
+    loadBodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+\r
+            foundMessage = messages[0];\r
+\r
+            if (foundMessage.attachments.length === 0) {\r
+                service.loadMessageBody(foundMessage, loadBodySuccess, loadBodyError);\r
+            } else {\r
+                returnedValue = service.loadMessageAttachment(foundMessage.attachments[0], loadAttachmentSuccess);\r
+            }\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, folderSuccess, folderError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody.html
new file mode 100755 (executable)
index 0000000..50ade81
--- /dev/null
@@ -0,0 +1,151 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageService_email_loadMessageBody\r
+//==== LABEL Check if MessageService.loadMessageBody method works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,\r
+    findMessagesSuccess, findMessagesError,\r
+    loadMessageBodySuccess, service, filter, myMessage, j, returnedValue = null;\r
+\r
+t.step(function () {\r
+    loadMessageBodySuccess = t.step_func(function (msg) {\r
+        assert_not_equals(msg, null, "load message successfully");\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, myMessage.id, "Id is not equal");\r
+        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");\r
+        assert_equals(msg.conversationId, myMessage.conversationId, "conversationId is not equal");\r
+        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");\r
+        assert_equals(msg.folderId, myMessage.folderId, "folderId is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, myMessage.type, "type is not equal");\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), myMessage.timestamp.getTime(), "timestamp is not equal");\r
+        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");\r
+        assert_equals(msg.from, myMessage.from, "from is not equal");\r
+        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");\r
+        for(j = 0; j < msg.to.length; j++){\r
+            assert_equals(msg.to[j], myMessage.to[j], "to is not equal");\r
+        }\r
+        assert_own_property(msg, "bcc", "Name bcc doesn't exist in provided object.");\r
+        for(j = 0; j < msg.bcc.length; j++){\r
+            assert_equals(msg.bcc[j], myMessage.bcc[j], "bcc is not equal");\r
+        }\r
+        assert_own_property(msg, "cc", "Name cc doesn't exist in provided object.");\r
+        for(j = 0; j < msg.cc.length; j++){\r
+            assert_equals(msg.cc[j], myMessage.cc[j], "cc is not equal");\r
+        }\r
+        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");\r
+        assert_equals(msg.body.messageId, myMessage.body.messageId, "body.messageId is not equal");\r
+        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");\r
+        assert_equals(msg.body.loaded, myMessage.body.loaded, "loaded is not equal");\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, myMessage.body.plainBody, "plainBody is not equal");\r
+        assert_own_property(msg.body, "htmlBody", "Name htmlBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.htmlBody, myMessage.body.htmlBody, "htmlBody is not equal");\r
+        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");\r
+        assert_equals(msg.isRead, myMessage.isRead, "isRead is not equal");\r
+        assert_own_property(msg, "hasAttachment", "Name hasAttachment doesn't exist in provided object.");\r
+        assert_equals(msg.hasAttachment, myMessage.hasAttachment, "hasAttachment is not equal");\r
+        assert_own_property(msg, "isHighPriority", "Name isHighPriority doesn't exist in provided object.");\r
+        assert_equals(msg.isHighPriority, myMessage.isHighPriority, "isHighPriority is not equal");\r
+        assert_own_property(msg, "subject", "Name subject doesn't exist in provided object.");\r
+        assert_equals(msg.subject, myMessage.subject, "subject is not equal");\r
+        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");\r
+        assert_equals(msg.inResponseTo, myMessage.inResponseTo, "inResponseTo is not equal");\r
+        assert_own_property(msg, "messageStatus", "Name messageStatus doesn't exist in provided object.");\r
+        assert_equals(msg.messageStatus, myMessage.messageStatus, "messageStatus is not equal");\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        myMessage = messages[0];\r
+        returnedValue = service.loadMessageBody(myMessage, loadMessageBodySuccess);\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("find error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..9216687
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_errorCallback_TypeMismatch</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_email_loadMessageBody_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.loadMessageBody method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,\r
+    loadMessageBodySuccess, service, i, param, conversionTable, exceptionName;\r
+\r
+t.step(function () {\r
+    loadMessageBodySuccess = t.step_func(function (message) {\r
+        assert_unreached("sould not be called");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            param = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.loadMessageBody(message, loadMessageBodySuccess, param);\r
+            }, exceptionName + " should be thrown " + param);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..0e919d1
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_errorCallback_invalid_cb</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_email_loadMessageBody_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.loadMessageBody method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,\r
+    loadMessageBodySuccess, incorrectCallback, service;\r
+\r
+t.step(function () {\r
+    loadMessageBodySuccess = t.step_func(function () {\r
+        assert_unreached("loadMessageBody() success callback invoked");\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("Incorrect errorCallback invoked: " + error.name + ": " + error.message);\r
+        })\r
+    };\r
+\r
+    addDraftSuccess = t.step_func(function (){\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.loadMessageBody(message, loadMessageBodySuccess, incorrectCallback);\r
+        });\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_exist.html
new file mode 100755 (executable)
index 0000000..c514b25
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageBody_exist\r
+//==== LABEL Check if method loadMessageBody of MessageService (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("loadMessageBody" in service, "No loadMessageBody method in message_service");\r
+        check_method_exists(service, "loadMessageBody");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_message_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..ba3aae8
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_message_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageBody_message_TypeMismatch\r
+//==== LABEL Check if message argument of MessageService::loadMessageBody will throw exception when given invalid type argument\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), loadMessageBodySuccess, service, filter, i, incorrectBody, conversionTable,\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError, findMessagesSuccess, findMessagesError, exceptionName;\r
+\r
+t.step(function () {\r
+    loadMessageBodySuccess = t.step_func(function (msg) {\r
+    });\r
+\r
+    findMessagesSuccess = t.step_func(function () {\r
+    conversionTable = getTypeConversionExceptions("object", false);\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectBody = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    service.loadMessageBody(incorrectBody, loadMessageBodySuccess);\r
+                }, exceptionName + " should be thrown - given incorrect message: " + incorrectBody);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("find error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_message_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..36d5a58
--- /dev/null
@@ -0,0 +1,114 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_message_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageService_email_loadMessageBody_message_invalid_obj\r
+//==== LABEL Check invalid object for message argument of MessageService::loadMessageBody method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTO\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError, fakeMessage,\r
+    findMessagesSuccess, findMessagesError, loadMessageBodySuccess, service, filter;\r
+\r
+t.step(function () {\r
+    loadMessageBodySuccess = t.step_func(function () {\r
+    });\r
+\r
+    findMessagesSuccess = t.step_func(function () {\r
+        fakeMessage = {\r
+            id: "1",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.email",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [TEST_EMAIL_RECIPIENT_1],\r
+            cc: [],\r
+            bcc: [],\r
+            body: {\r
+                messageId: "1",\r
+                loaded: false,\r
+                plainBody: MESSAGE_BODY_PLAIN,\r
+                htmlBody: "",\r
+                inlineAttachments: []\r
+            },\r
+            isRead: false,\r
+            hasAttachment: false,\r
+            isHighPriority: false,\r
+            subject: "",\r
+            inResponseTo: null,\r
+            messageStatus: "",\r
+            attachments: []\r
+        };\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function() {\r
+            service.loadMessageBody(fakeMessage, loadMessageBodySuccess);\r
+        }, "fake message object was pased but exception was not thrown");\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("find error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_missarg.html
new file mode 100755 (executable)
index 0000000..5b62c19
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageBody_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageService.loadMessageBody (email)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, message, serviceSuccess, serviceError, addDraftSuccess, addDraftError,\r
+    exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws({ name: exceptionName },\r
+            function () {\r
+                service.loadMessageBody(message);\r
+            }, exceptionName + " should be thrown - missing argument.");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_missarg_message.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_missarg_message.html
new file mode 100755 (executable)
index 0000000..88bf620
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_missarg_message</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageBody_missarg_message\r
+//==== LABEL Check with missing message argument - MessageService.loadMessageBody (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.loadMessageBody();\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..0b91d3a
--- /dev/null
@@ -0,0 +1,109 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_successCallback_TypeMismatch</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_email_loadMessageBody_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.loadMessageBody method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,\r
+    findMessagesSuccess, findMessagesError,\r
+    service, i, param, conversionTable, exceptionName, filter;\r
+\r
+t.step(function () {\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            param = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.loadMessageBody(messages[0], param);\r
+            }, exceptionName + " should be thrown " + param);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..cd080f2
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_successCallback_invalid_cb</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_email_loadMessageBody_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.loadMessageBody method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError, service;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.loadMessageBody(message, { onsuccess: function () {} });\r
+        });\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..8cc27f2
--- /dev/null
@@ -0,0 +1,153 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_with_errorCallback</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_email_loadMessageBody_with_errorCallback\r
+//==== LABEL Check if MessageService.loadMessageBody method works properly with errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR MAST\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,\r
+    findMessagesSuccess, findMessagesError,\r
+    loadMessageBodySuccess, loadMessageBodyError, filter, service, returnedValue = null, myMessage, j;\r
+\r
+t.step(function () {\r
+    loadMessageBodySuccess = t.step_func(function (msg) {\r
+        assert_not_equals(msg, null, "load message successfully");\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, myMessage.id, "Id is not equal");\r
+        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");\r
+        assert_equals(msg.conversationId, myMessage.conversationId, "conversationId is not equal");\r
+        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");\r
+        assert_equals(msg.folderId, myMessage.folderId, "folderId is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, myMessage.type, "type is not equal");\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), myMessage.timestamp.getTime(), "timestamp is not equal");\r
+        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");\r
+        assert_equals(msg.from, myMessage.from, "from is not equal");\r
+        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");\r
+        for(j = 0; j < msg.to.length; j++){\r
+            assert_equals(msg.to[j], myMessage.to[j], "to is not equal");\r
+        }\r
+        assert_own_property(msg, "bcc", "Name bcc doesn't exist in provided object.");\r
+        for(j = 0; j < msg.bcc.length; j++){\r
+            assert_equals(msg.bcc[j], myMessage.bcc[j], "bcc is not equal");\r
+        }\r
+        assert_own_property(msg, "cc", "Name cc doesn't exist in provided object.");\r
+        for(j = 0; j < msg.cc.length; j++){\r
+            assert_equals(msg.cc[j], myMessage.cc[j], "cc is not equal");\r
+        }\r
+        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");\r
+        assert_equals(msg.body.messageId, myMessage.body.messageId, "body.messageId is not equal");\r
+        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");\r
+        assert_equals(msg.body.loaded, myMessage.body.loaded, "loaded is not equal");\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, myMessage.body.plainBody, "plainBody is not equal");\r
+        assert_own_property(msg.body, "htmlBody", "Name htmlBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.htmlBody, myMessage.body.htmlBody, "htmlBody is not equal");\r
+        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");\r
+        assert_equals(msg.isRead, myMessage.isRead, "isRead is not equal");\r
+        assert_own_property(msg, "hasAttachment", "Name hasAttachment doesn't exist in provided object.");\r
+        assert_equals(msg.hasAttachment, myMessage.hasAttachment, "hasAttachment is not equal");\r
+        assert_own_property(msg, "isHighPriority", "Name isHighPriority doesn't exist in provided object.");\r
+        assert_equals(msg.isHighPriority, myMessage.isHighPriority, "isHighPriority is not equal");\r
+        assert_own_property(msg, "subject", "Name subject doesn't exist in provided object.");\r
+        assert_equals(msg.subject, myMessage.subject, "subject is not equal");\r
+        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");\r
+        assert_equals(msg.inResponseTo, myMessage.inResponseTo, "inResponseTo is not equal");\r
+        assert_own_property(msg, "messageStatus", "Name messageStatus doesn't exist in provided object.");\r
+        assert_equals(msg.messageStatus, myMessage.messageStatus, "messageStatus is not equal");\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    loadMessageBodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        myMessage = messages[0];\r
+        returnedValue = service.loadMessageBody(messages[0], loadMessageBodySuccess, loadMessageBodyError);\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_messageStorage_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_messageStorage_attribute.html
new file mode 100755 (executable)
index 0000000..bc3c4ab
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_messageStorage_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_messageStorage_attribute\r
+//==== LABEL Check if attribute messageStorage of MessageService (email) exists, has type MessageStorage and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:messageStorage A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, storage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        messagingService = emailService;\r
+\r
+        assert_true("messageStorage" in messagingService, "No 'messageStorage' attribute in messagingService");\r
+\r
+        messagingService.messageStorage = null;\r
+        assert_not_equals(messagingService.messageStorage, null, "messageStorage shouldn't be nullable");\r
+\r
+        storage = messagingService.messageStorage;\r
+        assert_type(storage.addDraftMessage, "function", "messageStorage.addDraftMessage() method not found");\r
+        assert_type(storage.findMessages, "function", "messageStorage.findMessages() method not found");\r
+        assert_type(storage.removeMessages, "function", "messageStorage.removeMessages() method not found");\r
+        assert_type(storage.updateMessages, "function", "messageStorage.updateMessages() method not found");\r
+        assert_type(storage.findConversations, "function", "messageStorage.findConversations() method not found");\r
+        assert_type(storage.removeConversations, "function", "messageStorage.removeConversations() method not found");\r
+        assert_type(storage.findFolders, "function", "messageStorage.findFolders() method not found");\r
+        assert_type(storage.addMessagesChangeListener, "function", "messageStorage.addMessagesChangeListener() method not found");\r
+        assert_type(storage.addConversationsChangeListener, "function", "messageStorage.addConversationsChangeListener() method not found");\r
+        assert_type(storage.addFoldersChangeListener, "function",\r
+            "messageStorage.addFoldersChangeListener() method not found");\r
+        assert_type(storage.removeChangeListener, "function", "messageStorage.removeChangeListener() method not found");\r
+\r
+        messagingService.nessageStorage = {};\r
+        assert_type(storage.addDraftMessage, "function", "Not read only - messageStorage.addDraftMessage() method not found");\r
+        assert_type(storage.findMessages, "function", "Not read only - messageStorage.findMessages() method not found");\r
+        assert_type(storage.removeMessages, "function", "Not read only - messageStorage.removeMessages() method not found");\r
+        assert_type(storage.updateMessages, "function", "Not read only - messageStorage.updateMessages() method not found");\r
+        assert_type(storage.findConversations, "function", "Not read only - messageStorage.findConversations() method not found");\r
+        assert_type(storage.removeConversations, "function", "Not read only - messageStorage.removeConversations() method not found");\r
+        assert_type(storage.findFolders, "function", "Not read only - messageStorage.findFolders() method not found");\r
+        assert_type(storage.addMessagesChangeListener, "function",\r
+            "Not read only - messageStorage.addMessagesChangeListener() method not found");\r
+        assert_type(storage.addConversationsChangeListener, "function",\r
+            "Not read only - messageStorage.addConversationsChangeListener() method not found");\r
+        assert_type(storage.addFoldersChangeListener, "function",\r
+            "Not read only - messageStorage.addFoldersChangeListener() method not found");\r
+        assert_type(storage.removeChangeListener, "function", "Not read only - messageStorage.removeChangeListener() method not found");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_name_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_name_attribute.html
new file mode 100755 (executable)
index 0000000..97db647
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_name_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_name_attribute\r
+//==== LABEL Check if attribute name of MessageService (email) exists, has appropriate type and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:name A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_own_property(service, "name", "No 'name' attribute in service");\r
+\r
+        assert_type(service.name, "string", "Incorrect type");\r
+        assert_not_equals(service.name, "", "Name is empty");\r
+\r
+        check_readonly(service, "name", service.name, "string", "newValue");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage.html
new file mode 100755 (executable)
index 0000000..3bb0b38
--- /dev/null
@@ -0,0 +1,167 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageService_email_sendMessage\r
+//==== LABEL Check if MessageService.sendMessage method works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MAST MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, loadedMessage, resend=0, requestSending, sendMessageReturnValue = null, service, inboxFolder,\r
+    serviceSuccess, serviceError, sendSuccess, sendError, syncSuccess, syncError,\r
+    folderSuccess, folderError, findSuccess, findError, bodySuccess, bodyError,\r
+    attachmentSuccess, attachmentError;\r
+\r
+t.step(function () {\r
+    attachmentSuccess = t.step_func(function (attachment) {\r
+        assert_type(attachment.id, "string", "attachment.id type is not string");\r
+        assert_not_equals(attachment.id, "", "attachment.id is an empty string");\r
+\r
+        assert_equals(attachment.messageId, loadedMessage.id, "attachment id and message id are not equal");\r
+\r
+        assert_equals(attachment.mimeType, MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE, "attachment MIME type is incorrect");\r
+\r
+        assert_type(attachment.filePath, "string", "attachment.filePath type is not string");\r
+        assert_not_equals(attachment.filePath, "", "attachment.filePath is an empty string");\r
+\r
+        t.done();\r
+    });\r
+\r
+    attachmentError = t.step_func(function (error) {\r
+        assert_unreached("failed to load attachment: name: " + error.name + " msg: " + error.message);\r
+    });\r
+\r
+    bodySuccess = t.step_func(function (bodyLoadedMessage) {\r
+        loadedMessage = bodyLoadedMessage;\r
+        assert_not_equals(loadedMessage, null, "message is null");\r
+        assert_not_equals(loadedMessage.body, null, "message body is null");\r
+        assert_equals(loadedMessage.body.plainBody.replace(/\s+$/g, ""), message.body.plainBody, "body does not match");\r
+        assert_equals(loadedMessage.hasAttachment, true, "hasAttachment is false");\r
+        assert_true(loadedMessage.attachments.length > 0, "no attachments found");\r
+\r
+        service.loadMessageAttachment(loadedMessage.attachments[0], attachmentSuccess, attachmentError);\r
+    });\r
+\r
+    bodyError = t.step_func(function (error) {\r
+        assert_unreached("failed to load message body: name: " + error.name + " msg: " + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+            service.loadMessageBody(messages[0], bodySuccess, bodyError);\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("failed to find message: name: " + error.name + " msg: " + error.message);\r
+    });\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, folderSuccess, folderError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_equals(sendMessageReturnValue, undefined, "sendMessage() return value is not void");\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        if (resend <= EMAIL_RESEND_LIMIT) {\r
+            setTimeout(requestSending, 5000);\r
+        } else {\r
+            assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+        }\r
+    });\r
+\r
+    requestSending = t.step_func(function () {\r
+        resend++;\r
+        sendMessageReturnValue = service.sendMessage(message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        message.attachments = [\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)\r
+        ];\r
+\r
+        requestSending();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..ec96eca
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_errorCallback_TypeMismatch</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.sendMessage method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, message, sendSuccess,\r
+    invalidErrorCallback, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0 ; i < conversionTable.length ; i++) {\r
+            invalidErrorCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    service.sendMessage(message, sendSuccess, invalidErrorCallback);\r
+                },\r
+                exceptionName + " should be thrown - invalid error callback: " + invalidErrorCallback + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..d56d824
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_errorCallback_invalid_cb</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, message, sendSuccess, invalidErrorCallback,\r
+    exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+\r
+    invalidErrorCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                service.sendMessage(message, sendSuccess, invalidErrorCallback);\r
+            },\r
+            exceptionName + " should be thrown - invalid error callback."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_exist.html
new file mode 100755 (executable)
index 0000000..f3755f6
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_exist\r
+//==== LABEL Check if method sendMessage of MessageService (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("sendMessage" in service, "No sendMessage method in service");\r
+        check_method_exists(service, "sendMessage");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_message_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..3e89225
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_message_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_message_TypeMismatch\r
+//==== LABEL Check type conversions for message argument of MessageService.sendMessage method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, sendSuccess, sendError,\r
+    incorrectMessage, exceptionName, i, conversionTable;\r
+\r
+t.step(function () {\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("sendMessage() success callback invoked.");\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+\r
+        for (i = 0 ; i < conversionTable.length ; i++) {\r
+            incorrectMessage = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    service.sendMessage(incorrectMessage, sendSuccess, sendError);\r
+                },\r
+                exceptionName + " should be thrown - incorrectly created message: " + incorrectMessage + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_message_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..cc42a4b
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_message_invalid_obj</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_message_invalid_obj\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when message is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, sendSuccess, sendError,\r
+    fakeMessage, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked");\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+\r
+        fakeMessage = {\r
+            id: "1",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.email",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [ TEST_EMAIL_RECIPIENT_1 ],\r
+            cc: [],\r
+            bcc: [],\r
+            body: {\r
+                messageId: "1",\r
+                loaded: false,\r
+                plainBody: MESSAGE_BODY_PLAIN,\r
+                htmlBody: "",\r
+                inlineAttachments: []\r
+            },\r
+            isRead: false,\r
+            hasAttachment: false,\r
+            isHighPriority: false,\r
+            subject: "",\r
+            inResponseTo: null,\r
+            messageStatus: "",\r
+            attachments: []\r
+        };\r
+\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                service.sendMessage(fakeMessage, sendSuccess, sendError);\r
+            },\r
+            exceptionName + " should be thrown - incorrectly created message."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_missarg.html
new file mode 100755 (executable)
index 0000000..90bfdb1
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageService.sendMessage (email)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                service.sendMessage();\r
+            },\r
+            exceptionName + " should be thrown - missing message."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..8bae54a
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.sendMessage method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, message, sendError, invalidSuccessCallback,\r
+    exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0 ; i < conversionTable.length ; i++) {\r
+            invalidSuccessCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    service.sendMessage(message, invalidSuccessCallback, sendError);\r
+                },\r
+                exceptionName + " should be thrown - invalid success callback: " + invalidSuccessCallback + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..e69c085
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_successCallback_invalid_cb</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message,\r
+    sendError, invalidSuccessCallback, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+    invalidSuccessCallback = {\r
+        onsuccess: t.step_func(function (recipients) {\r
+            assert_unreached("Invalid success callback invoked");\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                service.sendMessage(message, invalidSuccessCallback, sendError);\r
+            },\r
+            exceptionName + " should be thrown - invalid success callback."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_without_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..9cf10ec
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_without_errorCallback\r
+//==== LABEL Check if MessageService.sendMessage method works properly without errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, returnedValue = null, serviceSuccess, sendSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_type(recipients, "array", "recipients type is not array");\r
+        assert_equals(recipients.length, 1, "recipients.length should be 1");\r
+        assert_equals(recipients[0], TEST_EMAIL_RECIPIENT_2, "recipient in sent message is not the same as recipient set during message creation");\r
+\r
+        assert_equals(returnedValue, undefined, "sendMessage() return value is not void");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        returnedValue = service.sendMessage(message, sendSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("failed to receive services: " + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_without_successCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_without_successCallback.html
new file mode 100755 (executable)
index 0000000..5cf5623
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_without_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_without_successCallback\r
+//==== LABEL Check if MessageService.sendMessage method works properly without successCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, returnedValue = null, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        returnedValue = service.sendMessage(message);\r
+        assert_equals(returnedValue, undefined, "sendMessage() return value is not void");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("failed to receive services: " + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_exist.html
new file mode 100755 (executable)
index 0000000..c4997fd
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_stopSync_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_stopSync_exist\r
+//==== LABEL Check if method stopSync of MessageService (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:stopSync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("stopSync" in service, "No stopSync method in message_service");\r
+        check_method_exists(service, "stopSync");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_missarg.html
new file mode 100755 (executable)
index 0000000..90f58b3
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong <dong82.zhao@samsung.com>\r
+        Hyukin Kwon <hyukin.kwon@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_stopSync_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_stopSync_missarg\r
+//==== LABEL Check if MessageService::stopSync (for sync) method silently fails without argument\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:stopSync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        try {\r
+            service.stopSync();\r
+        } catch (e) {\r
+            assert_unreached("Should not throw any exception, but threw " + e.name);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_opId_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_opId_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..6cef9fa
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_stopSync_opId_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_stopSync_opId_TypeMismatch\r
+//==== LABEL Check if MessageService::stopSync (for sync) method should throw an exception with invalid argument type\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:stopSync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 300000});\r
+\r
+var t = async_test(document.title, {timeout: 300000}),\r
+    opId, serviceSuccess, serviceError, exceptionName, conversionTable, i;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("long", false);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            opId = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                service.stopSync(opId);\r
+            }, exceptionName + " should be thrown - given incorrect opId.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_syncFolder_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_syncFolder_exist.html
new file mode 100755 (executable)
index 0000000..8c67bea
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_syncFolder_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_syncFolder_exist\r
+//==== LABEL Check if method syncFolder of MessageService (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("syncFolder" in service, "No syncFolder method in message_service");\r
+        check_method_exists(service, "syncFolder");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sync_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sync_exist.html
new file mode 100755 (executable)
index 0000000..3bd1b4d
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sync_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sync_exist\r
+//==== LABEL Check if method sync of MessageService (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("sync" in service, "No sync method in message_service");\r
+        check_method_exists(service, "sync");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_type_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_type_attribute.html
new file mode 100755 (executable)
index 0000000..7211747
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_type_attribute</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_type_attribute\r
+//==== LABEL Check if attribute type of MessageService (email) exists, has type MessageServiceTag and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("type" in service, "No 'type' attribute in messaging_service");\r
+        assert_type(service.type, "string", "messaging_service.type is not string");\r
+        check_readonly(service, "type", "messaging.email", "string", "messaging.sms");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_id_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_id_exist.html
new file mode 100755 (executable)
index 0000000..1654aa0
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_id_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_id_exist\r
+//==== LABEL Check if attribute id in MessageService\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        assert_true("id" in services[0], "Messaging.MessageService.id property exists");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_loadBodySMS.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_loadBodySMS.html
new file mode 100755 (executable)
index 0000000..a3aa292
--- /dev/null
@@ -0,0 +1,98 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_loadBodySMS</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_loadBodySMS\r
+//==== LABEL Check if MessageService.loadMessageBody method works for sms\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, messageStorage, message, datetime,\r
+    sendSuccess, sendError, loadBodySuccess, loadBodyError, returnedValue;\r
+\r
+t.step(function () {\r
+    loadBodySuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    loadBodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        returnedValue = service.loadMessageBody(message, loadBodySuccess, loadBodyError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+        datetime = tizen.time.getCurrentDateTime().toString();\r
+        message = new tizen.Message("messaging.sms", {\r
+            plainBody: datetime,\r
+            to: [ TEST_SMS_RECIPIENT ]\r
+        });\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_extend.html
new file mode 100755 (executable)
index 0000000..4a9e66b
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageService (MMS) can be extended with new property\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:MessageService U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        check_extensibility(messageService);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageAttachment_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageAttachment_exist.html
new file mode 100755 (executable)
index 0000000..a4b0b58
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_loadMessageAttachment_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_loadMessageAttachment_exist\r
+//==== LABEL Check if method loadMessageAttachment of MessageService (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_true("loadMessageAttachment" in service, "No loadMessageAttachment method in service");\r
+        check_method_exists(service, "loadMessageAttachment");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageBody_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageBody_exist.html
new file mode 100755 (executable)
index 0000000..fd0a483
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_loadMessageBody_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_loadMessageBody_exist\r
+//==== LABEL Check if method loadMessageBody of MessageService (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_true("loadMessageBody" in service, "No loadMessageBody method in service");\r
+        check_method_exists(service, "loadMessageBody");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageBody_missarg_message.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageBody_missarg_message.html
new file mode 100755 (executable)
index 0000000..e94d49e
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_loadMessageBody_missarg_message</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_loadMessageBody_missarg_message\r
+//==== LABEL Check with missing message argument - MessageService.loadMessageBody (mms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.loadMessageBody();\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_messageStorage_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_messageStorage_attribute.html
new file mode 100755 (executable)
index 0000000..32bea6a
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_messageStorage_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_messageStorage_attribute\r
+//==== LABEL Check if attribute messageStorage of MessageService (MMS) exists, has type MessageStorage and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:messageStorage A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, storage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        assert_true("messageStorage" in messagingService, "No 'messageStorage' attribute in messagingService");\r
+\r
+        messagingService.messageStorage = null;\r
+        assert_not_equals(messagingService.messageStorage, null, "messageStorage shouldn't be nullable");\r
+\r
+        storage = messagingService.messageStorage;\r
+        assert_type(storage.addDraftMessage, "function", "messageStorage.addDraftMessage() method not found");\r
+        assert_type(storage.findMessages, "function", "messageStorage.findMessages() method not found");\r
+        assert_type(storage.removeMessages, "function", "messageStorage.removeMessages() method not found");\r
+        assert_type(storage.updateMessages, "function", "messageStorage.updateMessages() method not found");\r
+        assert_type(storage.findConversations, "function", "messageStorage.findConversations() method not found");\r
+        assert_type(storage.removeConversations, "function", "messageStorage.removeConversations() method not found");\r
+        assert_type(storage.findFolders, "function", "messageStorage.findFolders() method not found");\r
+        assert_type(storage.addMessagesChangeListener, "function", "messageStorage.addMessagesChangeListener() method not found");\r
+        assert_type(storage.addConversationsChangeListener, "function",\r
+            "messageStorage.addConversationsChangeListener() method not found");\r
+        assert_type(storage.addFoldersChangeListener, "function", "messageStorage.addFoldersChangeListener() method not found");\r
+        assert_type(storage.removeChangeListener, "function", "messageStorage.removeChangeListener() method not found");\r
+\r
+        messagingService.nessageStorage = {};\r
+        assert_type(storage.addDraftMessage, "function", "Not read only - messageStorage.addDraftMessage() method not found");\r
+        assert_type(storage.findMessages, "function", "Not read only - messageStorage.findMessages() method not found");\r
+        assert_type(storage.removeMessages, "function", "Not read only - messageStorage.removeMessages() method not found");\r
+        assert_type(storage.updateMessages, "function", "Not read only - messageStorage.updateMessages() method not found");\r
+        assert_type(storage.findConversations, "function", "Not read only - messageStorage.findConversations() method not found");\r
+        assert_type(storage.removeConversations, "function", "Not read only - messageStorage.removeConversations() method not found");\r
+        assert_type(storage.findFolders, "function", "Not read only - messageStorage.findFolders() method not found");\r
+        assert_type(storage.addMessagesChangeListener, "function",\r
+            "Not read only - messageStorage.addMessagesChangeListener() method not found");\r
+        assert_type(storage.addConversationsChangeListener, "function",\r
+            "Not read only - messageStorage.addConversationsChangeListener() method not found");\r
+        assert_type(storage.addFoldersChangeListener, "function",\r
+            "Not read only - messageStorage.addFoldersChangeListener() method not found");\r
+        assert_type(storage.removeChangeListener, "function", "Not read only - messageStorage.removeChangeListener() method not found");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..44b3e91
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.sendMessage method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendSuccess, invalidErrorCallback, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_unreached("Success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms");\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0 ; i < conversionTable.length ; i++) {\r
+            invalidErrorCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    messagingService.sendMessage(message, sendSuccess, invalidErrorCallback);\r
+                },\r
+                exceptionName + " should be thrown - invalid error callback: " + invalidErrorCallback + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..02b0788
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when errorCallback is invalid\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendSuccess, invalidErrorCallback, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    invalidErrorCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms");\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage(message, sendSuccess, invalidErrorCallback);\r
+            },\r
+            exceptionName + " should be thrown - invalid error callback."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_exist.html
new file mode 100755 (executable)
index 0000000..0f27542
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_exist\r
+//==== LABEL Check if method sendMessage of MessageService (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_true("sendMessage" in service, "No sendMessage method in service");\r
+        check_method_exists(service, "sendMessage");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_message_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..58988e3
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_message_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_message_TypeMismatch\r
+//==== LABEL Check type conversions for message argument of MessageService.sendMessage method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, sendSuccess,\r
+    sendError, incorrectMessage, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked");\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+        for (i = 0 ; i < conversionTable.length ; i++) {\r
+            incorrectMessage = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    messagingService.sendMessage(incorrectMessage, sendSuccess, sendError);\r
+                },\r
+                exceptionName + " should be thrown - incorrectly created message: " + incorrectMessage + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_message_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..78b9515
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_message_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_message_invalid_obj\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when message is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, sendSuccess,\r
+    sendError, fakeMessage, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked");\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        fakeMessage = {\r
+            id: "1",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.mms",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [ TEST_SMS_RECIPIENT ],\r
+            body: {\r
+                messageId: "1",\r
+                loaded: true,\r
+                plainBody: "Sample content"\r
+            },\r
+            isRead: false,\r
+            hasAttachment: false,\r
+            subject: "",\r
+            inResponseTo: null,\r
+            messageStatus: "",\r
+            attachments: []\r
+        };\r
+\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage(fakeMessage, sendSuccess, sendError);\r
+            },\r
+            exceptionName + " should be thrown - incorrectly created message."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_missarg.html
new file mode 100755 (executable)
index 0000000..b263439
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageService.sendMessage (mms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage();\r
+            },\r
+            exceptionName + " should be thrown - missing message."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..b762d20
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.sendMessage method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendError, invalidSuccessCallback, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms");\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0 ; i < conversionTable.length ; i++) {\r
+            invalidSuccessCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    messagingService.sendMessage(message, invalidSuccessCallback, sendError);\r
+                },\r
+                exceptionName + " should be thrown - invalid success callback: " + invalidSuccessCallback + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..4f37885
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when successCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendError, invalidSuccessCallback, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    invalidSuccessCallback = {\r
+        onsuccess: t.step_func(function (recipients) {\r
+            assert_unreached("Invalid success callback invoked");\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms");\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage(message, invalidSuccessCallback, sendError);\r
+            },\r
+            exceptionName + " should be thrown - invalid success callback."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_type_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_type_attribute.html
new file mode 100755 (executable)
index 0000000..bf46ef8
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_type_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_type_attribute\r
+//==== LABEL Check if attribute type of MessageService (MMS) exists, has type MessageServiceTag and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_true("type" in service, "No 'type' attribute in service");\r
+        assert_type(service.type, "string", "service.type is not string");\r
+        check_readonly(service, "type", "messaging.mms", "string", "messaging.email");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_name_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_name_exist.html
new file mode 100755 (executable)
index 0000000..b401b1c
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_name_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_name_exist\r
+//==== LABEL Check if name attribute exists in MessageService\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:name A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceError, serviceSuccess;\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        assert_true("name" in services[0], "Messaging.MessageService.name property exists");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_notexist.html
new file mode 100755 (executable)
index 0000000..60f8010
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageService exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:MessageService U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA NIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageService");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_emailWithBcc.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_emailWithBcc.html
new file mode 100755 (executable)
index 0000000..bd4ed30
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sendMessage_emailWithBcc</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sendMessage_emailWithBcc\r
+//==== LABEL Check if MessageService.sendMessage method works properly with bcc (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, messageSent, messageFailed, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    messageSent = t.step_func(function (recipients) {\r
+        assert_greater_than(recipients.length, 0, "Received empty recipients array");\r
+        t.done();\r
+    });\r
+\r
+    messageFailed = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.bcc = [TEST_EMAIL_RECIPIENT_1];\r
+        sendMessage(t, service, message, messageSent, messageFailed);\r
+    });\r
+\r
+    serviceError = t.step_func(function (err) {\r
+        assert_unreached("getEmailService() error: " + err.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_emailWithPriority.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_emailWithPriority.html
new file mode 100755 (executable)
index 0000000..f17ad56
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sendMessage_emailWithPriority</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sendMessage_emailWithPriority\r
+//==== LABEL Check if MessageService.sendMessage method works properly with highPriority (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+message, serviceSuccess, serviceError, sendSuccess, sendError;\r
+\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_true(recipients.length > 0, "No message sent successfully");\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.isHighPriority = true;\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (err) {\r
+        assert_unreached("getMessageServices() error: " + err.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_email_without_callbacks.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_email_without_callbacks.html
new file mode 100755 (executable)
index 0000000..c2ad832
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sendMessage_email_without_callbacks</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageService_sendMessage_email_without_callbacks\r
+//==== LABEL Check if MessageService.sendMessage method works properly without callbacks (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, returnedValue = null;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        returnedValue = service.sendMessage(message);\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from sendMessage");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (err) {\r
+        assert_unreached("getMessageServices() error: " + err.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_exist.html
new file mode 100755 (executable)
index 0000000..6a43492
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sendMessage_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sendMessage_exist\r
+//==== LABEL Check if sendMessage exist in MessageService\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceError, serviceSuccess;\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        assert_true("sendMessage" in services[0], "sendMessage does not exist.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_invalid_argument.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_invalid_argument.html
new file mode 100755 (executable)
index 0000000..d26feef
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageService_sendMessage_invalid_argument</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sendMessage_invalid_argument\r
+//==== LABEL Check whether invoking sendMessage method with improper argument throws exception properly\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, serviceError, serviceSuccess, sendError, sendSuccess;\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_unreached("sendMessage() success callback invoked");\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0]; // save service\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.sendMessage("messaging.email", sendSuccess, sendError);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_mms_without_callbacks.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_mms_without_callbacks.html
new file mode 100755 (executable)
index 0000000..42eab81
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sendMessage_mms_without_callbacks</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageService_sendMessage_mms_without_callbacks\r
+//==== LABEL Check if MessageService.sendMessage method works properly without callbacks (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), onSuccess, message;\r
+t.step(function () {\r
+\r
+    message = new tizen.Message("messaging.mms", {\r
+        plainBody: "I will arrive in 10 minutes.",\r
+        to: [TEST_SMS_RECIPIENT]\r
+    });\r
+\r
+    onSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "type of services is not Array");\r
+        assert_true(services.length > 0, "No messaging.mms service");\r
+        services[0].sendMessage(message);\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", onSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_valid_argument.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_valid_argument.html
new file mode 100755 (executable)
index 0000000..89bb069
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageService_sendMessage_valid_argument</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sendMessage_valid_argument\r
+//==== LABEL Check if MessageService.sendMessage method works properly with valid argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, smsMessage, serviceError, serviceSuccess, sendError, sendSuccess;\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        smsMessage = new tizen.Message("messaging.sms", {\r
+            plainBody: "Sms Message Test",\r
+            to: [TEST_SMS_RECIPIENT]\r
+        });\r
+        sendMessage(t, service, smsMessage, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_extend.html
new file mode 100755 (executable)
index 0000000..b0e66c2
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_extend</title>\r
+<script src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageService (SMS) can be extended with new property\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:MessageService U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        check_extensibility(messageService);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_exist.html
new file mode 100755 (executable)
index 0000000..21a59ba
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_loadMessageBody_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_loadMessageBody_exist\r
+//==== LABEL Check if method loadMessageBody of MessageService (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        assert_true("loadMessageBody" in messageService, "No loadMessageBody method in messageService");\r
+        check_method_exists(messageService, "loadMessageBody");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..36627e4
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_loadMessageBody_message_TypeMismatch</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_loadMessageBody_message_TypeMismatch\r
+//==== LABEL Check type conversions for message argument of MessageService.loadMessageBody method (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, i, param, conversionTable, loadBodySuccess,\r
+    serviceSuccess, serviceError, exceptionName;\r
+\r
+t.step(function () {\r
+\r
+    loadBodySuccess = t.step_func(function () {\r
+        assert_unreached("loadMessageBody() success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            param = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageService.loadMessageBody(param, loadBodySuccess);\r
+            }, exceptionName + " should be thrown " + param);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..a7088a3
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_loadMessageBody_message_invalid_obj</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_loadMessageBody_message_invalid_obj\r
+//==== LABEL Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, message, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        message = {\r
+            id: "1",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.sms",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [ TEST_SMS_RECIPIENT ],\r
+            body: {\r
+                messageId: "1",\r
+                loaded: true,\r
+                plainBody: "Sample content"\r
+            },\r
+            isRead: false,\r
+            inResponseTo: null,\r
+            messageStatus: ""\r
+        };\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            messageService.loadMessageBody(message);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_missarg_message.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_missarg_message.html
new file mode 100755 (executable)
index 0000000..6e7a5ee
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_loadMessageBody_missarg_message</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_loadMessageBody_missarg_message\r
+//==== LABEL Check with missing non-optional argument - MessageService.loadMessageBody (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            messageService.loadMessageBody();\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_messageStorage_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_messageStorage_attribute.html
new file mode 100755 (executable)
index 0000000..426f1fc
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_messageStorage_attribute</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_messageStorage_attribute\r
+//==== LABEL Check if attribute messageStorage of MessageService (SMS) exists, has type MessageStorage and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:messageStorage A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, storage, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        assert_true("messageStorage" in messagingService, "No 'messageStorage' attribute in messagingService");\r
+\r
+        messagingService.messageStorage = null;\r
+        assert_not_equals(messagingService.messageStorage, null, "messageStorage shouldn't be nullable");\r
+\r
+        storage = messagingService.messageStorage;\r
+        assert_type(storage.addDraftMessage, "function", "messageStorage.addDraftMessage() method not found");\r
+        assert_type(storage.findMessages, "function", "messageStorage.findMessages() method not found");\r
+        assert_type(storage.removeMessages, "function", "messageStorage.removeMessages() method not found");\r
+        assert_type(storage.updateMessages, "function", "messageStorage.updateMessages() method not found");\r
+        assert_type(storage.findConversations, "function", "messageStorage.findConversations() method not found");\r
+        assert_type(storage.removeConversations, "function", "messageStorage.removeConversations() method not found");\r
+        assert_type(storage.findFolders, "function", "messageStorage.findFolders() method not found");\r
+        assert_type(storage.addMessagesChangeListener, "function", "messageStorage.addMessagesChangeListener() method not found");\r
+        assert_type(storage.addConversationsChangeListener, "function",\r
+            "messageStorage.addConversationsChangeListener() method not found");\r
+        assert_type(storage.addFoldersChangeListener, "function", "messageStorage.addFoldersChangeListener() method not found");\r
+        assert_type(storage.removeChangeListener, "function", "messageStorage.removeChangeListener() method not found");\r
+\r
+        messagingService.nessageStorage = {};\r
+        assert_type(storage.addDraftMessage, "function", "Not read only - messageStorage.addDraftMessage() method not found");\r
+        assert_type(storage.findMessages, "function", "Not read only - messageStorage.findMessages() method not found");\r
+        assert_type(storage.removeMessages, "function", "Not read only - messageStorage.removeMessages() method not found");\r
+        assert_type(storage.updateMessages, "function", "Not read only - messageStorage.updateMessages() method not found");\r
+        assert_type(storage.findConversations, "function", "Not read only - messageStorage.findConversations() method not found");\r
+        assert_type(storage.removeConversations, "function", "Not read only - messageStorage.removeConversations() method not found");\r
+        assert_type(storage.findFolders, "function", "Not read only - messageStorage.findFolders() method not found");\r
+        assert_type(storage.addMessagesChangeListener, "function",\r
+            "Not read only - messageStorage.addMessagesChangeListener() method not found");\r
+        assert_type(storage.addConversationsChangeListener, "function",\r
+            "Not read only - messageStorage.addConversationsChangeListener() method not found");\r
+        assert_type(storage.addFoldersChangeListener, "function",\r
+            "Not read only - messageStorage.addFoldersChangeListener() method not found");\r
+        assert_type(storage.removeChangeListener, "function", "Not read only - messageStorage.removeChangeListener() method not found");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage.html
new file mode 100755 (executable)
index 0000000..5a24099
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sms_sendMessage\r
+//==== LABEL Check if MessageService.sendMessage method works properly (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, datetime, messageStorage, sendSuccess, sendError,\r
+    service, serviceSuccess, serviceError, count;\r
+\r
+t.step(function () {\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_type(recipients, "array", "recipients type is not array");\r
+        assert_equals(recipients.length, 1, "recipients.length should be 1");\r
+        assert_equals(recipients[0], TEST_SMS_RECIPIENT, "recipient in sent message is not the same as recipient set during message creation");\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+        datetime = tizen.time.getCurrentDateTime().toString();\r
+        message = new tizen.Message("messaging.sms", {\r
+            plainBody: datetime,\r
+            to: [ TEST_SMS_RECIPIENT ]\r
+        });\r
+\r
+        count = tizen.systeminfo.getCount("SIM");\r
+        sendMessage(t, service, message, sendSuccess, sendError, count);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..18c26a5
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendSuccess, invalidErrorCallback, exceptionName, i, conversionTable;\r
+\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms");\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            invalidErrorCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    messagingService.sendMessage(message, sendSuccess, invalidErrorCallback);\r
+                },\r
+                exceptionName + " should be thrown - invalid error callback: " + invalidErrorCallback + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..cc86176
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_errorCallback_invalid_cb</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendSuccess, invalidErrorCallback, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+\r
+    invalidErrorCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms");\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage(message, sendSuccess, invalidErrorCallback);\r
+            },\r
+            exceptionName + " should be thrown - invalid error callback."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_exist.html
new file mode 100755 (executable)
index 0000000..d142cbb
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_exist\r
+//==== LABEL Check if method sendMessage of MessageService (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        assert_true("sendMessage" in messageService, "No sendMessage method in messageService");\r
+        check_method_exists(messageService, "sendMessage");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..608f1a7
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_message_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_message_TypeMismatch\r
+//==== LABEL Check type conversions for message argument of MessageService.sendMessage method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, sendSuccess,\r
+    sendError, incorrectMessage, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked");\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectMessage = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    messagingService.sendMessage(incorrectMessage, sendSuccess, sendError);\r
+                },\r
+                exceptionName + " should be thrown - incorrectly created message: " + incorrectMessage + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..be57dc1
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_message_invalid_obj</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_message_invalid_obj\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when message is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, sendSuccess,\r
+    sendError, fakeMessage, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked");\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        fakeMessage = {\r
+            id: "1",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.sms",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [ TEST_SMS_RECIPIENT ],\r
+            body: {\r
+                messageId: "1",\r
+                loaded: true,\r
+                plainBody: "Sample content"\r
+            },\r
+            isRead: false,\r
+            inResponseTo: null,\r
+            messageStatus: ""\r
+        };\r
+\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage(fakeMessage, sendSuccess, sendError);\r
+            },\r
+            exceptionName + " should be thrown - incorrectly created message."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_missarg.html
new file mode 100755 (executable)
index 0000000..79e347c
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageService.sendMessage (sms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage();\r
+            },\r
+            exceptionName + " should be thrown - missing message."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..aba9a66
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_successCallback_TypeMismatch</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.sendMessage method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendError, invalidSuccessCallback, exceptionName, i, conversionTable;\r
+\r
+t.step(function () {\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms");\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            invalidSuccessCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    messagingService.sendMessage(message, invalidSuccessCallback, sendError);\r
+                },\r
+                exceptionName + " should be thrown - invalid success callback: " + invalidSuccessCallback + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..904b72c
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_successCallback_invalid_cb</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendError, invalidSuccessCallback, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+\r
+    invalidSuccessCallback = {\r
+        onsuccess: t.step_func(function (recipients) {\r
+            assert_unreached("Invalid success callback invoked");\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms");\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage(message, invalidSuccessCallback, sendError);\r
+            },\r
+            exceptionName + " should be thrown - invalid success callback."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_without_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..62e2cbd
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_without_errorCallback</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_without_errorCallback\r
+//==== LABEL Check if MessageService.sendMessage method works properly without errorCallback argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, datetime,\r
+    sendSuccess, returnedValue = null, messageSent = false, resendMessage,\r
+    service, serviceListSuccess, serviceListError;\r
+\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        messageSent = true;\r
+\r
+        assert_type(recipients, "array", "recipients type is not array");\r
+        assert_equals(recipients.length, 1, "recipients.length should be 1");\r
+        assert_greater_than_equal(recipients[0].indexOf(TEST_SMS_RECIPIENT), 0, "recipient in sent message is not the same as" +\r
+            "recipient set during message creation");\r
+\r
+        assert_equals(returnedValue, undefined, "sendMessage() return value is not void");\r
+\r
+        t.done();\r
+    });\r
+\r
+\r
+    resendMessage = t.step_func(function () {\r
+        returnedValue = service.sendMessage(message, sendSuccess);\r
+\r
+        setTimeout(t.step_func(function () {\r
+            if (messageSent === false) {\r
+                resendMessage();\r
+            }\r
+        }), 10000);\r
+    });\r
+\r
+    serviceListSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "No sms MessageService found.");\r
+        service = services[0];\r
+\r
+        datetime = tizen.time.getCurrentDateTime().toString();\r
+        message = new tizen.Message("messaging.sms", {\r
+            plainBody: datetime,\r
+            to: [ TEST_SMS_RECIPIENT ]\r
+        });\r
+\r
+        resendMessage();\r
+    });\r
+\r
+    serviceListError = t.step_func(function (error) {\r
+        assert_unreached("failed to receive services: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceListSuccess, serviceListError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_type_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_type_attribute.html
new file mode 100755 (executable)
index 0000000..23204dc
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_type_attribute</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_type_attribute\r
+//==== LABEL Check if attribute type of MessageService (SMS) exists, has type MessageServiceTag and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        assert_true("type" in messageService, "No 'type' attribute in messageService");\r
+        assert_type(messageService.type, "string", "messageService.type is not string");\r
+        check_readonly(messageService, "type", "messaging.sms", "string", "messaging.email");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_stopSync_sync.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_stopSync_sync.html
new file mode 100755 (executable)
index 0000000..5414cd2
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_stopSync_sync</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_stopSync_sync\r
+//==== LABEL Check if MessageService.stopSync (for sync) method works properly\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:stopSync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), returnedValue = null,\r
+    serviceError, serviceSuccess, service, message, sendError, sendSuccess, syncId;\r
+\r
+t.step(function () {\r
+    sendSuccess = t.step_func(function () {\r
+        setTimeout(t.step_func(function () {\r
+            syncId = service.sync();\r
+            returnedValue = service.stopSync(syncId);\r
+            assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+            t.done();\r
+        }), EMAIL_SYNC_INTERVAL);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_stopSync_syncFolder.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_stopSync_syncFolder.html
new file mode 100755 (executable)
index 0000000..eff029a
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_stopSync_syncFolder</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_stopSync_syncFolder\r
+//==== LABEL Check if MessageService.stopSync (for syncFolder) method works properly\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:stopSync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, filterForServiceId, findFoldersError, findFoldersSuccess,\r
+    inboxFolder, message, sendError, sendSuccess, syncId, returnedValue = null;\r
+\r
+t.step(function () {\r
+    sendSuccess = t.step_func(function () {\r
+        setTimeout(t.step_func(function () {\r
+            syncId = service.syncFolder(inboxFolder);\r
+            returnedValue = service.stopSync(syncId);\r
+            assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+            t.done();\r
+        }), EMAIL_SYNC_INTERVAL);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+        inboxFolder = getInboxFolder(t, folders);\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        filterForServiceId = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        service.messageStorage.findFolders(filterForServiceId, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync.html
new file mode 100755 (executable)
index 0000000..a49cef1
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync\r
+//==== LABEL Check if MessageService.sync method works properly\r
+//==== PRIORITY: P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, returnedValue = null;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        returnedValue = service.sync();\r
+        assert_type(returnedValue, "long", "type check");\r
+        service.stopSync(returnedValue);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder.html
new file mode 100755 (executable)
index 0000000..497a02f
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder\r
+//==== LABEL Check if MessageService.syncFolder method works properly\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MMINA\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service,\r
+    returnedValue = null, findSuccess, findError;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+\r
+        returnedValue = service.syncFolder(folders[0]);\r
+\r
+        assert_type(returnedValue, "long", "Incorrect returned value");\r
+\r
+        service.stopSync(returnedValue);\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+        findFolders(t, service, findSuccess, findError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..dc3e547
--- /dev/null
@@ -0,0 +1,87 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_errorCallback_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.syncFolder method\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, findSuccess, findError,\r
+    exceptionName, conversionTable, i, successCallback, errorCallback;\r
+\r
+t.step(function () {\r
+\r
+    successCallback = t.step_func(function () {\r
+        assert_unreached("syncFolder() success callback invoked.");\r
+    });\r
+\r
+    findSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "No folder found.");\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            errorCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName}, function () {\r
+                service.syncFolder(folders[0], successCallback, errorCallback);\r
+            }, exceptionName + " should be thrown - given incorrect errorCallback.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+        findFolders(t, service, findSuccess, findError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..42f36c9
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_errorCallback_invalid_cb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.syncFolder method throws exception when errorCallback is invalid\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, findError, findSuccess,\r
+    syncFolderSuccess, invalidErrorCallback;\r
+t.step(function () {\r
+\r
+    invalidErrorCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    syncFolderSuccess = t.step_func(function () {\r
+        assert_unreached("syncFolder() success callback invoked.");\r
+    });\r
+\r
+    findSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+\r
+        assert_throws ({name: TYPE_MISMATCH_ERR}, function () {\r
+            service.syncFolder(folders[0], syncFolderSuccess, invalidErrorCallback);\r
+        }, "TypeMismatchError should be thrown - given incorrect errorCallback.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+        findFolders(t, service, findSuccess, findError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_folder_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_folder_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..fb45931
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_folder_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_folder_TypeMismatch\r
+//==== LABEL Check type conversions for folder argument of MessageService.syncFolder method\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), folder,\r
+    serviceSuccess, serviceError, exceptionName, conversionTable, i;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            folder = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName}, function () {\r
+                service.syncFolder(folder);\r
+            }, exceptionName + " should be thrown - given incorrect folder.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_missarg.html
new file mode 100755 (executable)
index 0000000..666045f
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_missarg</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageService.syncFolder\r
+//==== PRIORITY P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.syncFolder();\r
+        }, "Method should throw an exception");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..d7b8a52
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_successCallback_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.syncFolder method\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, findSuccess, findError,\r
+    exceptionName, conversionTable, i, successCallback;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "No folder found.");\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            successCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName}, function () {\r
+                service.syncFolder(folders[0], successCallback);\r
+            }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+        findFolders(t, service, findSuccess, findError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..1f08fcf
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_successCallback_invalid_cb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.syncFolder method throws exception when successCallback is invalid\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, findError, findSuccess, invalidSuccessCallback;\r
+t.step(function () {\r
+    invalidSuccessCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("Invalid success callback invoked");\r
+        })\r
+    };\r
+\r
+    findSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.syncFolder(folders[0], invalidSuccessCallback);\r
+        },  "TypeMismatchError should be thrown - given incorrect successCallback.");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+        findFolders(t, service, findSuccess, findError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..8487cce
--- /dev/null
@@ -0,0 +1,108 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_with_errorCallback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_with_errorCallback\r
+//==== LABEL Check if MessageService.syncFolder method works properly with errorCallback argument\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, findFoldersError, findFoldersSuccess,\r
+    inboxFolder, message, sendError, sendSuccess, syncId = null,\r
+    syncFolderSuccess, syncFolderError, findMessageError, findMessageSuccess;\r
+\r
+t.step(function () {\r
+\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncFolderSuccess = t.step_func(function () {\r
+        assert_type(syncId, "long", "Incorrect returned value");\r
+        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+\r
+    syncFolderError = t.step_func(function (error) {\r
+        assert_unreached("syncFolder() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        syncId = service.syncFolder(inboxFolder, syncFolderSuccess, syncFolderError);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        setTimeout(t.step_func(function () {\r
+            findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+        }), EMAIL_SYNC_INTERVAL);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_limit.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_limit.html
new file mode 100755 (executable)
index 0000000..81fc0c0
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_with_limit</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_with_limit\r
+//==== LABEL Check if MessageService.syncFolder method works properly with limit\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, findFoldersSuccess, findFoldersError,\r
+    inboxFolder, syncId = null, syncFolderSuccess, syncFolderError;\r
+\r
+t.step(function () {\r
+    syncFolderSuccess = t.step_func(function () {\r
+        assert_type(syncId, "long", "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    syncFolderError = t.step_func(function (error) {\r
+        assert_unreached("syncFolder() error: " + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+\r
+        inboxFolder = getInboxFolder(t, folders);\r
+\r
+        syncId = service.syncFolder(inboxFolder, syncFolderSuccess, syncFolderError, 10);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_successCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_successCallback.html
new file mode 100755 (executable)
index 0000000..e3f0f81
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_with_successCallback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_with_successCallback\r
+//==== LABEL Check if syncFolder method with successCallback optional argument works\r
+//==== PRIORITY: P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, findFoldersError, findFoldersSuccess,\r
+    inboxFolder, message, sendError, sendSuccess, syncId = null, syncFolderSuccess,\r
+    findMessageError, findMessageSuccess;\r
+\r
+t.step(function () {\r
+\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncFolderSuccess = t.step_func(function () {\r
+        assert_type(syncId, "long", "Incorrect returned value");\r
+        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        syncId = service.syncFolder(inboxFolder, syncFolderSuccess);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        setTimeout(t.step_func(function () {\r
+            findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+        }), EMAIL_SYNC_INTERVAL);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_emailwithoutparam.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_emailwithoutparam.html
new file mode 100755 (executable)
index 0000000..a588ab3
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_emailwithoutparam</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_emailwithoutparam\r
+//==== LABEL Check if MessageService.sync method works properly without param\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, syncSuccess, syncError;\r
+\r
+t.step(function () {\r
+    syncSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..21b24aa
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_errorCallback_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.sync method\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, syncSuccess, errorCallback, exceptionName, conversionTable, i;\r
+t.step(function () {\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        assert_unreached("sync() success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            errorCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName}, function () {\r
+                service.sync(syncSuccess, errorCallback);\r
+            }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..43941eb
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_errorCallback_invalid_cb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sync method throws exception when errorCallback is invalid\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceError,\r
+    successCallback, invalidErrorCallback, serviceSuccess, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+\r
+    invalidErrorCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    successCallback = t.step_func(function () {\r
+        assert_unreached("sync() success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                service.sync(successCallback, invalidErrorCallback);\r
+            }, exceptionName + " should be thrown - given incorrect errorCallback.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_foremail.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_foremail.html
new file mode 100755 (executable)
index 0000000..2426d7f
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sync_foremail</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageService_sync_foremail\r
+//==== LABEL Check if MessageService.sync method works properly without arguments\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, syncId;\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        syncId = service.sync();\r
+        service.stopSync(syncId);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..b6fb02c
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_successCallback_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.sync method\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    successCallback, serviceSuccess, serviceError, exceptionName, conversionTable, i;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            successCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName}, function () {\r
+                service.sync(successCallback);\r
+            }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..a653434
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_successCallback_invalid_cb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sync method throws exception when successCallback is invalid\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    successCallback, serviceSuccess, serviceError, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+    successCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("Incorrect successCallback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws({name: exceptionName}, function () {\r
+            service.sync(successCallback);\r
+        }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..1cc70a8
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_with_errorCallback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_with_errorCallback\r
+//==== LABEL Check if MessageService.sync method works properly with errorCallback argument\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    returnedValue = null, serviceError, serviceSuccess, service, message, sendError, sendSuccess,\r
+    syncRequest, syncRetryCount=0, syncError, syncSuccess, inboxFolder,\r
+    findFoldersSuccess, findFoldersError, findMessageSuccess, findMessageError;\r
+\r
+t.step(function () {\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        assert_type(returnedValue, "long", "Incorrect returned value");\r
+\r
+        findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        if (syncRetryCount <= EMAIL_RESYNC_LIMIT) {\r
+            setTimeout(syncRequest, 5000);\r
+        } else {\r
+            assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+        }\r
+    });\r
+\r
+    syncRequest = t.step_func(function () {\r
+        syncRetryCount++;\r
+        returnedValue = service.sync(syncSuccess, syncError);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        setTimeout(t.step_func(function () {\r
+            syncRequest();\r
+        }), EMAIL_SYNC_INTERVAL);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_limit.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_limit.html
new file mode 100755 (executable)
index 0000000..d57655d
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_with_limit</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_with_limit\r
+//==== LABEL Check if MessageService.sync method works properly with limit argument\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, syncSuccess, syncError;\r
+\r
+t.step(function () {\r
+    syncSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        sync(t, service, syncSuccess, syncError, 10);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_successCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_successCallback.html
new file mode 100755 (executable)
index 0000000..12029bc
--- /dev/null
@@ -0,0 +1,105 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_with_successCallback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_with_successCallback\r
+//==== LABEL Check if MessageService.sync method works properly with successCallback argument\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, returnedValue = null,\r
+    sendSuccess, sendError, syncSuccess, findFoldersSuccess, findFoldersError,\r
+    findMessageSuccess, findMessageError, inboxFolder;\r
+\r
+t.step(function () {\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_equals(messages.length, 1, "Found incorrect number of messages");\r
+            assert_equals(messages[0].subject, message.subject, "Incorrect subject.");\r
+            assert_equals(messages[0].folderId, inboxFolder.id, "Incorrect folderId.");\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        assert_type(returnedValue, "long", "Incorrect returned value");\r
+\r
+        findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        setTimeout(t.step_func(function () {\r
+            returnedValue = service.sync(syncSuccess);\r
+        }), EMAIL_SYNC_INTERVAL);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_type_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_type_exist.html
new file mode 100755 (executable)
index 0000000..9fa9609
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_type_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_type_exist\r
+//==== LABEL Check if attribute type in MessageService\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        assert_true("type" in services[0], "type in MessageService is not present");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addCCLAddMRemoveCRemoveCCL.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addCCLAddMRemoveCRemoveCCL.html
new file mode 100755 (executable)
index 0000000..1ac40c3
--- /dev/null
@@ -0,0 +1,133 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addCCLAddMRemoveCRemoveCCL</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addCCLAddMRemoveCRemoveCCL\r
+//==== LABEL Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), listener,\r
+    serviceError, serviceSuccess, service, listenerId, msg, addError, addSuccess,\r
+    filterForId, findConversationError, findConversationSuccess, removeConversationError,\r
+    removeConversationSuccess, findMessageSuccess, findMessageError, filterForTo;\r
+\r
+\r
+t.step(function () {\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throws an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        conversationsupdated: function (conversations) {\r
+        },\r
+        conversationsadded: function (conversations) {\r
+        },\r
+        conversationsremoved: function (conversations) {\r
+        }\r
+    };\r
+\r
+    removeConversationSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    removeConversationError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConversationSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        service.messageStorage.removeConversations(conversations, removeConversationSuccess, removeConversationError);\r
+    });\r
+\r
+    findConversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        filterForId = new tizen.AttributeFilter("id", "EXACTLY", messages[0].conversationId);\r
+        service.messageStorage.findConversations(filterForId, findConversationSuccess, findConversationError);\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        filterForTo = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        service.messageStorage.findMessages(filterForTo, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);\r
+        msg = new tizen.Message("messaging.sms",\r
+                {plainBody: "addCCLAddMRemoveCRemoveCCL-testing",\r
+                 to: [ TEST_SMS_RECIPIENT ]});\r
+        service.messageStorage.addDraftMessage(msg, addSuccess, addError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener.html
new file mode 100755 (executable)
index 0000000..4ce757c
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addConversationsChangeListener</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addConversationsChangeListener\r
+//==== LABEL Check if MessageStorage.addConversationsChangeListener method works properly (email)\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MMINA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, i,\r
+    serviceSuccess, serviceError, messageService, message, addDraftError, conversationChangeCB, returnedValue = null;\r
+\r
+t.step(function () {\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(returnedValue);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throws an exception\r
+        }\r
+    });\r
+\r
+    conversationChangeCB = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        messageService = service;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        returnedValue = messageService.messageStorage.addConversationsChangeListener(conversationChangeCB);\r
+        assert_type(returnedValue, "long", "Incorrect returned value type");\r
+\r
+        messageService.messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..8eb1ede
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addConversationsChangeListener_filter_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addConversationsChangeListener_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.addConversationsChangeListener method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, conversationChangeCB, filter,\r
+    exceptionName, conversionTable, i, watchId;\r
+\r
+t.step(function () {\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watchId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throws an exception\r
+        }\r
+    });\r
+\r
+    conversationChangeCB = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_unreached("conversations added");\r
+        }),\r
+        conversationsupdated: t.step_func(function (conversations) {\r
+            assert_unreached("conversations updated");\r
+        }),\r
+        conversationsremoved: t.step_func(function (conversations) {\r
+            assert_unreached("conversations removed");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            filter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({\r
+                name: exceptionName\r
+            }, function () {\r
+                watchId = service.messageStorage.addConversationsChangeListener(conversationChangeCB, filter);\r
+            }, exceptionName + " should be thrown - given incorrect filter: " + filter);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_missarg.html
new file mode 100755 (executable)
index 0000000..a9205d3
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addConversationsChangeListener_missarg</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addConversationsChangeListener_missarg\r
+//==== LABEL Check with missing mandatory argument - MessageStorage.addConversationsChangeListener (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, watchId;\r
+t.step(function () {\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watchId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throws an exception\r
+        }\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            watchId = service.messageStorage.addConversationsChangeListener();\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_with_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_with_filter.html
new file mode 100755 (executable)
index 0000000..288dde8
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addConversationsChangeListener_with_filter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addConversationsChangeListener_with_filter\r
+//==== LABEL Check if MessageStorage.addConversationsChangeListener method works properly with filter (email)\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), addDraftError, i,\r
+    service, serviceSuccess, serviceError, message, conversationChangeCB, filter, watchId;\r
+\r
+t.step(function () {\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watchId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throws an exception\r
+        }\r
+    });\r
+\r
+    conversationChangeCB = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        filter = new tizen.AttributeFilter("to", "EXACTLY", message.to);\r
+        watchId = service.messageStorage.addConversationsChangeListener(conversationChangeCB, filter);\r
+\r
+        service.messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_withoutcb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_withoutcb.html
new file mode 100755 (executable)
index 0000000..7ec02ab
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addConversationsChangeListener_withoutcb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addConversationsChangeListener_withoutcb\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addConversationsChangeListener (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.addConversationsChangeListener();\r
+        }, "Missing non-optional argument");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_withoutfilter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_withoutfilter.html
new file mode 100755 (executable)
index 0000000..5b4817b
--- /dev/null
@@ -0,0 +1,108 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addConversationsChangeListener_withoutfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addConversationsChangeListener_withoutfilter\r
+//==== LABEL Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)\r
+//==== PRIORITY: P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MAST MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,\r
+    serviceSuccess, serviceError, service, message, removeAllSuccess, sendError, listener;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        sendMessage(t, service, message, null, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMCLaddM.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMCLaddM.html
new file mode 100755 (executable)
index 0000000..b12f262
--- /dev/null
@@ -0,0 +1,107 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addMCLaddM</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addMCLaddM\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly for sms\r
+//==== PRIORITY: P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, listenerId, listener, sendError, serviceSuccess,\r
+    msg, serviceError, messageStorage;\r
+\r
+t.step(function () {\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesupdated: t.step_func(function (messages) {\r
+            assert_unreached("messagesupdated callback invoked");\r
+        }),\r
+        messagesadded: t.step_func(function (messages) {\r
+            assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+            t.done();\r
+        }),\r
+        messagesremoved: t.step_func(function (messages) {\r
+            assert_unreached("messagesremoved callback invoked");\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+        listenerId = service.messageStorage.addMessagesChangeListener(listener);\r
+        msg = new tizen.Message("messaging.sms", {\r
+            plainBody: "test.",\r
+            to: [TEST_SMS_RECIPIENT]\r
+        });\r
+        sendMessage(t, service, msg, null, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withfilter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withfilter.html
new file mode 100755 (executable)
index 0000000..cd6581b
--- /dev/null
@@ -0,0 +1,106 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addMessagesChangeListener_withfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addMessagesChangeListener_withfilter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly with filter\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MAST MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    service, listenerId, messageStorage, message, listener, filter, serviceSuccess,\r
+    serviceError, addError;\r
+\r
+t.step(function () {\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesadded: t.step_func(function (messages) {\r
+            assert_type(messages, "array", "Not an array.");\r
+            assert_greater_than(messages.length, 0, "Received empty messages array");\r
+            for (i = 0; i < messages.length; i++) {\r
+                assert_true(messages[i] instanceof tizen.Message, "Not a message.");\r
+                if (messages[i].id === message.id) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function serviceListCB(services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        listenerId = messageStorage.addMessagesChangeListener(listener, filter);\r
+        message = new tizen.Message("messaging.sms", {plainBody: "test.", to: [ TEST_SMS_RECIPIENT ]});\r
+        service.messageStorage.addDraftMessage(message, null, addError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withoutfilter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withoutfilter.html
new file mode 100755 (executable)
index 0000000..513aaca
--- /dev/null
@@ -0,0 +1,104 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addMessagesChangeListener_withoutfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addMessagesChangeListener_withoutfilter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly without filter\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MMINA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    service, listenerId, serviceSuccess, message, messageStorage, listener,\r
+    serviceError, sendError;\r
+t.step(function () {\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesadded: t.step_func(function (messages) {\r
+            assert_type(messages, "array", "Not an array.");\r
+            assert_greater_than(messages.length, 0, "Received empty messages array");\r
+            for (i = 0; i < messages.length; i++) {\r
+                assert_true(messages[i] instanceof tizen.Message, "Not a message.");\r
+                if (messages[i].id === message.id) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+        listenerId = messageStorage.addMessagesChangeListener(listener);\r
+        assert_type(listenerId, "long", "Incorrect returned value from addMessagesChangeListener method.");\r
+        message = new tizen.Message("messaging.sms", {plainBody: "test.", to: [ TEST_SMS_RECIPIENT ]});\r
+        sendMessage(t, service, message, null, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..c1d4c71
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch\r
+//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectChangeListener, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectChangeListener  = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addConversationsChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..28208f0
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTL\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), incorrectChangeListener,\r
+    serviceSuccess, serviceError, incorrectListeners, i, exceptionName;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        incorrectListeners = getListenerConversionExceptions(["conversationsadded", "conversationsupdated", "conversationsremoved"]);\r
+        for(i = 0; i < incorrectListeners.length; i++) {\r
+            incorrectChangeListener = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.addConversationsChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..0447260
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addConversationsChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addConversationsChangeListener_exist\r
+//==== LABEL Check if method addConversationsChangeListener of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    messageStorage, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        messageStorage = service.messageStorage;\r
+        assert_true("addConversationsChangeListener" in messageStorage, "No addConversationsChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "addConversationsChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage.html
new file mode 100755 (executable)
index 0000000..45d9758
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MAST MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message,\r
+    addDraftSuccess, addDraftError, returnedValue = null, filter, findMessagesSuccess, findMessagesError;\r
+\r
+t.step(function () {\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        returnedValue = service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..516462a
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, conversionTable, i, exceptionName, incorrectCallback;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage() success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..b59bb3a
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, incorrectCallback, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage() success callback invoked.");\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_exist.html
new file mode 100755 (executable)
index 0000000..c91e562
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_exist\r
+//==== LABEL Check if method addDraftMessage of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("addDraftMessage" in service.messageStorage, "No addDraftMessage method in messageStorage");\r
+        check_method_exists(service.messageStorage, "addDraftMessage");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_message_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..fe5128d
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_message_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_message_TypeMismatch\r
+//==== LABEL Check type conversions for message argument of MessageStorage.addDraftMessage method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, incorrectMessage, conversionTable, i, exceptionName,\r
+    addDraftSuccess, addDraftError;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage success callback invoked.");\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectMessage = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.addDraftMessage(incorrectMessage, addDraftSuccess, addDraftError);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessage);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_message_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..be30443
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_message_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_message_invalid_obj\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when message is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, fakeMessage, exceptionName = "TypeMismatchError",\r
+    addDraftSuccess, addDraftError;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage success callback invoked.");\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        fakeMessage = {\r
+            id: "123456",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.email",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [ TEST_EMAIL_RECIPIENT_1 ],\r
+            cc: [],\r
+            bcc: [],\r
+            body: {\r
+                messageId: "123456",\r
+                loaded: false,\r
+                plainBody: MESSAGE_BODY_PLAIN,\r
+                htmlBody: "",\r
+                inlineAttachments: []\r
+            },\r
+            isRead: false,\r
+            hasAttachment: false,\r
+            isHighPriority: false,\r
+            subject: "",\r
+            inResponseTo: null,\r
+            messageStatus: "",\r
+            attachments: []\r
+        };\r
+\r
+        assert_throws({name: exceptionName}, function () {\r
+            service.messageStorage.addDraftMessage(fakeMessage, addDraftSuccess, addDraftError);\r
+        }, exceptionName + " should be thrown - given incorrect Message");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_missarg.html
new file mode 100755 (executable)
index 0000000..011b3fd
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addDraftMessage (email)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.addDraftMessage();\r
+        }, "Missing argument");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..477059e
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, incorrectCallback, addDraftError, conversionTable, exceptionName, i;\r
+\r
+t.step(function () {\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);\r
+            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..a4d6385
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, incorrectCallback, addDraftError;\r
+\r
+t.step(function () {\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);\r
+        }, "Given incorrect success callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_without_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..f6ef61b
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_without_errorCallback\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, returnedValue = null,\r
+    addDraftSuccess, filter, findMessagesSuccess, findMessagesError;\r
+\r
+t.step(function () {\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        returnedValue = service.messageStorage.addDraftMessage(message, addDraftSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_without_successCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_without_successCallback.html
new file mode 100755 (executable)
index 0000000..f73bf53
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_without_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_without_successCallback\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly without successCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, returnedValue = null;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        returnedValue = service.messageStorage.addDraftMessage(message);\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener.html
new file mode 100755 (executable)
index 0000000..1afa036
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener\r
+//==== LABEL Check if MessageStorage.addFoldersChangeListener method works properly (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersChangeCallback, watchId;\r
+\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(function (updatedFolders){\r
+        }),\r
+        foldersadded: t.step_func(function (addedFolders){\r
+        }),\r
+        foldersremoved: t.step_func(function (removedFolders){\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback);\r
+        assert_type(watchId, "long", "Incorrect returned type");\r
+\r
+        service.messageStorage.removeChangeListener(watchId);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..2f2476e
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener_exist\r
+//==== LABEL Check if method addFoldersChangeListener of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("addFoldersChangeListener" in service.messageStorage, "No addFoldersChangeListener method in messageStorage");\r
+        check_method_exists(service.messageStorage, "addFoldersChangeListener");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..81b4a65
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.addFoldersChangeListener method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersChangeCallback, incorrectfilter, conversionTable, i, exceptionName;\r
+\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(function (updatedFolders){\r
+\r
+        }),\r
+        foldersadded: t.step_func(function (addedFolders){\r
+\r
+        }),\r
+        foldersremoved: t.step_func(function (removedFolders){\r
+\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectfilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.addFoldersChangeListener(foldersChangeCallback, incorrectfilter);\r
+            }, exceptionName + " should be thrown - given incorrect filter - " + incorrectfilter);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..359ee7f
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Karol Surma <k.surma@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch\r
+//==== LABEL Check type conversions for foldersChangeCallback argument of MessageStorage.addFoldersChangeListener method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError,\r
+    incorrectCallback, conversionTable, i, exceptionName;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName}, function () {\r
+                service.messageStorage.addFoldersChangeListener(incorrectCallback);\r
+            }, "Given incorrect error callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_invalid_cb.html
new file mode 100755 (executable)
index 0000000..e8e319e
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener_invalid_cb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener_invalid_cb\r
+//==== LABEL Check if MessageStorage.addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTL\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, incorrectListeners, folderChangeListener, i, exceptionName, filter;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        incorrectListeners = getListenerConversionExceptions(["foldersadded", "foldersupdated", "foldersremoved"]);\r
+\r
+        for (i = 0; i < incorrectListeners.length; i++) {\r
+            folderChangeListener  = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.addFoldersChangeListener(folderChangeListener, filter);\r
+            }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_missarg.html
new file mode 100755 (executable)
index 0000000..be05c50
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener_missarg</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addFoldersChangeListener (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION,\r
+            function () {\r
+                service.messageStorage.addFoldersChangeListener();\r
+            },\r
+            "TypeMismatchError should be thrown - no listener given"\r
+        );\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_updatedata.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_updatedata.html
new file mode 100755 (executable)
index 0000000..2e5a2b0
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener_updatedata</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener_updatedata\r
+//==== LABEL Check if MessageStorage::addFoldersChangeListener method works properly when update data\r
+//==== PRIORITY: P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MAST\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter, addDraftError, i;\r
+\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(function (updatedFolders) {\r
+        }),\r
+        foldersadded: t.step_func(function (addedFolders) {\r
+            assert_type(addedFolders, "object", "type check");\r
+            assert_greater_than(addedFolders.length, 0, "Received empty folders array");\r
+            for (i = 0; i < addedFolders.length; i++) {\r
+                if (addedFolders[i].name= "abc") {\r
+                    alert("please remove the folder just added");\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        }),\r
+        foldersremoved: t.step_func(function (removedFolders) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);\r
+        assert_type(watchId, "long", "Incorrect returned type");\r
+        alert("add a folder in the email named 'abc' manually");\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_with_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_with_filter.html
new file mode 100755 (executable)
index 0000000..0878568
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Karol Surma <k.surma@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener_with_filter</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener_with_filter\r
+//==== LABEL Check if MessageStorage.addFoldersChangeListener method works properly with filter (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter;\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(function (updatedFolders){\r
+        }),\r
+        foldersadded: t.step_func(function (addedFolders){\r
+        }),\r
+        foldersremoved: t.step_func(function (removedFolders){\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);\r
+        assert_type(watchId, "long", "Incorrect returned type");\r
+\r
+        service.messageStorage.removeChangeListener(watchId);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..a10c1c4
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addMessagesChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addMessagesChangeListener_exist\r
+//==== LABEL Check if method addMessagesChangeListener of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("addMessagesChangeListener" in service.messageStorage, "No addMessagesChangeListener method in messageStorage");\r
+        check_method_exists(service.messageStorage, "addMessagesChangeListener");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..0cb56cd
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, changeCallback, conversionTable, incorrectFilter, exceptionName, i;\r
+\r
+t.step(function () {\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("messagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("messagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectFilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.addMessagesChangeListener(changeCallback, incorrectFilter);\r
+                }, exceptionName + " should be thrown - given incorrect filter: " + incorrectFilter);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..4220873
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch\r
+//==== LABEL Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, incorrectChangeListener, exceptionName, i, conversionTable;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectChangeListener  = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.addMessagesChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..5cf349e
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTL\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, incorrectListeners, incorrectChangeListener, exceptionName, i;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        incorrectListeners = getListenerConversionExceptions(["messagesadded", "messagesupdated", "messagesremoved"]);\r
+\r
+        for(i = 0; i < incorrectListeners.length; i++) {\r
+            incorrectChangeListener = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.addMessagesChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_missarg.html
new file mode 100755 (executable)
index 0000000..cb96a87
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addMessagesChangeListener_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addMessagesChangeListener_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (email)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.addMessagesChangeListener();\r
+            }, exceptionName + " should be thrown - missing argument.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_with_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_with_filter.html
new file mode 100755 (executable)
index 0000000..5b8ab21
--- /dev/null
@@ -0,0 +1,101 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addMessagesChangeListener_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addMessagesChangeListener_with_filter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly with filter (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), changeCallback, addDraftError,\r
+    service, serviceSuccess, serviceError, mismatchMessage, matchMessage, filter, listenerID;\r
+\r
+t.step(function () {\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerID);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);\r
+            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            assert_equals(addedMessages[0].subject, matchMessage.subject, "Incorrect subject.");\r
+            assert_equals(addedMessages[0].id, matchMessage.id, "Incorrect id.");\r
+            t.done();\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        mismatchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        matchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        filter = new tizen.AttributeFilter("subject", "EXACTLY", matchMessage.subject);\r
+\r
+        listenerID = service.messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+        assert_type(listenerID, "long", "Incorrect returned value.");\r
+\r
+        service.messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);\r
+        service.messageStorage.addDraftMessage(matchMessage, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_without_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_without_filter.html
new file mode 100755 (executable)
index 0000000..ff15a5a
--- /dev/null
@@ -0,0 +1,102 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addMessagesChangeListener_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addMessagesChangeListener_without_filter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly without filter (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MMINA MAST\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceSuccess, serviceError, service, message, listenerId, addDraftError, changeCallback;\r
+\r
+t.step(function () {\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_greater_than(addedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < addedMessages.length; i++) {\r
+                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");\r
+\r
+                if (addedMessages[0].id === message.id) {\r
+                    assert_equals(addedMessages[i].subject, message.subject, "Incorrect subject.");\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        listenerId = service.messageStorage.addMessagesChangeListener(changeCallback);\r
+        assert_type(listenerId, "long", "Incorrect returned value.");\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_extend.html
new file mode 100755 (executable)
index 0000000..5350c77
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageStorage (email) can be extended with new property\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        check_extensibility(service.messageStorage);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..e9860b7
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_errorCallback_TypeMismatch\r
+//==== LABEL Check errorCallback argument of findConversations will be throw exception with invalid argument type\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectCallback, conversionTable, exceptionName;\r
+\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({\r
+                name: exceptionName\r
+            }, function () {\r
+                services[0].messageStorage.findConversations(toFilter, findConversationsCallback, incorrectCallback);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..b006531
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_email_findConversations_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage::findConversations method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback,\r
+    getMessagingServicesCallback, onError, invalidCallback;\r
+\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    invalidCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("Invalid errorCallback invoked");\r
+        })\r
+    };\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(toFilter, findConversationsCallback, invalidCallback);\r
+        });\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_exist.html
new file mode 100755 (executable)
index 0000000..408f72c
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_exist\r
+//==== LABEL Check if method findConversations of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("findConversations" in service.messageStorage, "No findConversations method in messageStorage");\r
+        check_method_exists(service.messageStorage, "findConversations");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..6786e96
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_filter_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage::findConversations method (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectFilter, conversionTable, exceptionName;\r
+\r
+t.step(function () {\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_not_equals(services.length, 0, "getMessageServices services.length");\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectFilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                services[0].messageStorage.findConversations(incorrectFilter, findConversationsCallback, errorCallback);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_from.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_from.html
new file mode 100755 (executable)
index 0000000..cf46a4a
--- /dev/null
@@ -0,0 +1,109 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_filter_from</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_findConversations_filter_from\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by from (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, i,\r
+    sendSuccess, sendError, syncSuccess, syncError, findSuccess, findError;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (conversations) {\r
+        if (conversations.length > 0) {\r
+            for (i = 0; i < conversations.length; i++) {\r
+                assert_equals(conversations[i].from, TEST_EMAIL_RECIPIENT_1, "from should match");\r
+            }\r
+\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("from", "EXACTLY", TEST_EMAIL_RECIPIENT_1),\r
+        service.messageStorage.findConversations(filter, findSuccess, findError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_invalid_obj.html
new file mode 100755 (executable)
index 0000000..f43b61d
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_filter_invalid_obj</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_filter_invalid_obj\r
+//==== LABEL Check if MessageStorage::findConversations method throws exception when filter is invalid (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTO\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, invalidFilter;\r
+\r
+t.step(function () {\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_not_equals(services.length, 0, "getMessageServices services.length");\r
+\r
+        invalidFilter = {\r
+            attributeName: "type",\r
+            matchFlag: "EXACTLY",\r
+            matchValue: services[0].type\r
+        };\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(invalidFilter, findConversationsCallback, errorCallback);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_to.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_to.html
new file mode 100755 (executable)
index 0000000..16432cc
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_filter_to</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_findConversations_filter_to\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by to (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, i,\r
+    addDraftSuccess, addDraftError, filter, findSuccess, findError;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+        for (i = 0; i < conversations.length; i++) {\r
+            assert_array_equals(conversations[i].to, [TEST_EMAIL_RECIPIENT_2], "to should match");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function ()\r
+    {\r
+        filter = new tizen.AttributeFilter("to", "EXACTLY", TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.findConversations(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_type.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_type.html
new file mode 100755 (executable)
index 0000000..f0b137e
--- /dev/null
@@ -0,0 +1,96 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_filter_type</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_findConversations_filter_type\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by type (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    findConversationsSuccess, findConversationsError, serviceSuccess, serviceError,\r
+    service, filter, i, addDraftSuccess, addDraftError, message;\r
+\r
+t.step(function () {\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty services array");\r
+        for (i = 0; i < conversations.length; i++) {\r
+            assert_equals(conversations[i].type, filter.matchValue, "type should match");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);\r
+        service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_missarg.html
new file mode 100755 (executable)
index 0000000..fdad39e
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_missarg</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage::findConversations (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess;\r
+\r
+t.step(function () {\r
+\r
+    onSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "type of services is not Array");\r
+        if (services.length > 0) {\r
+            service = services[0];\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                service.messageStorage.findConversations();\r
+            });\r
+        } else {\r
+            assert_unreached("list of services is empty");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", onSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_sort_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_sort_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..52abd2d
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_sort_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_sort_TypeMismatch\r
+//==== LABEL Check type conversions for sort argument of MessageStorage::findConversations method (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectSort, conversionTable, exceptionName;\r
+\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectSort = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                services[0].messageStorage.findConversations(toFilter, findConversationsCallback, errorCallback, incorrectSort);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_sort_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_sort_invalid_obj.html
new file mode 100755 (executable)
index 0000000..ad3be38
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_sort_invalid_obj</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_sort_invalid_obj\r
+//==== LABEL Check if MessageStorage::findConversations method throws exception when sort is invalid (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTO\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, invalidSort;\r
+\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    invalidSort = {\r
+        attributeName: "id",\r
+        order: "ASC"\r
+    };\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(toFilter, findConversationsCallback, errorCallback, invalidSort);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..e8ec944
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage::findConversations method (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, errorCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectCallback, conversionTable, exceptionName;\r
+\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                services[0].messageStorage.findConversations(toFilter, incorrectCallback, errorCallback);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..f29e843
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_successCallback_invalid_cb</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage::findConversations method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, errorCallback, getMessagingServicesCallback,\r
+    onError, invalidCallback;\r
+\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    invalidCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("Unexpected onsuccess");\r
+        })\r
+    };\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(toFilter, invalidCallback, errorCallback);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_offset.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_offset.html
new file mode 100755 (executable)
index 0000000..e9546ba
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_with_offset</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_with_offset\r
+//==== LABEL Check if MessageStorage::findConversations method works properly with all optional argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, serviceSuccess, serviceError, message1, message2,\r
+    filter, sortMode, addDraftSuccess, addDraftError, addDraftSuccessCount = 0,\r
+    findConversationsSuccess, findConversationsError, limit, offset;\r
+\r
+t.step(function () {\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than_equal(conversations.length, 2, "Need at least 2 conversations");\r
+        assert_true(conversations[0].timestamp <= conversations[1].timestamp, "correct order");\r
+        t.done();\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCount++;\r
+        if (addDraftSuccessCount === 2) {\r
+            filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);\r
+            sortMode = new tizen.SortMode("timestamp", "ASC");\r
+            limit = 10;\r
+            offset = 2;\r
+            service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError, sortMode, limit, offset);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message1 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message2 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message1, addDraftSuccess, addDraftError);\r
+        service.messageStorage.addDraftMessage(message2, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_sort.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_sort.html
new file mode 100755 (executable)
index 0000000..65c09bc
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_with_sort</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_findConversations_with_sort\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with sort (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, serviceSuccess, serviceError, message1, message2,\r
+    filter, sortMode, addDraftSuccess, addDraftError, addDraftSuccessCount = 0,\r
+    findConversationsSuccess, findConversationsError;\r
+\r
+t.step(function () {\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than_equal(conversations.length, 2, "Need at least 2 conversations");\r
+        assert_true(conversations[0].timestamp <= conversations[1].timestamp, "correct order");\r
+        t.done();\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCount++;\r
+        if (addDraftSuccessCount === 2) {\r
+            filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);\r
+            sortMode = new tizen.SortMode("timestamp", "ASC");\r
+            service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError, sortMode);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message1 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message2 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message1, addDraftSuccess, addDraftError);\r
+        service.messageStorage.addDraftMessage(message2, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_sort_time_desc.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_sort_time_desc.html
new file mode 100755 (executable)
index 0000000..8dd38e1
--- /dev/null
@@ -0,0 +1,105 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_with_sort_time_desc</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageStorage_email_findConversations_with_sort_time_desc\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with sort by time descending (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message1, message2,\r
+    addDraftSuccess, addDraftError, addDraftSuccessCount=0,\r
+    filter, sortMode, findConversationsSuccess, findConversationsError;\r
+\r
+t.step(function () {\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than_equal(conversations.length, 2, "Need at least 2 conversations");\r
+        assert_true(conversations[0].timestamp >= conversations[1].timestamp, "correct order");\r
+        t.done();\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCount++;\r
+        if (addDraftSuccessCount === 2) {\r
+            filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);\r
+            sortMode = new tizen.SortMode("timestamp", "DESC");\r
+            service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError, sortMode);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message1 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message2 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message1, addDraftSuccess, addDraftError);\r
+        service.messageStorage.addDraftMessage(message2, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_without_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..d09dd01
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_without_errorCallback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_findConversations_without_errorCallback\r
+//==== LABEL Check if MessageStorage.findConversations method works properly without errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceSuccess, serviceError, service, message, filter, addDraftError, findConversationsSuccess;\r
+\r
+t.step(function () {\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "Not an array");\r
+        assert_greater_than(conversations.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < conversations.length; i++) {\r
+            assert_equals(conversations[i].type, service.type, "Incorrect service type");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.addDraftMessage(message, null, addDraftError);\r
+\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);\r
+        service.messageStorage.findConversations(filter, findConversationsSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findFolders_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findFolders_exist.html
new file mode 100755 (executable)
index 0000000..bc38eb8
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findFolders_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findFolders_exist\r
+//==== LABEL Check if method findFolders of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("findFolders" in service.messageStorage, "No findFolders method in messageStorage");\r
+        check_method_exists(service.messageStorage, "findFolders");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages.html
new file mode 100755 (executable)
index 0000000..fb162a9
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages\r
+//==== LABEL Check if MessageStorage.findMessages method works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, message,\r
+    addDraftSuccess, addDraftError, filter, findSuccess;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        t.done();\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findSuccess);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_and_loadMessageBody.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_and_loadMessageBody.html
new file mode 100755 (executable)
index 0000000..b4d494a
--- /dev/null
@@ -0,0 +1,154 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_and_loadMessageBody</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageStorage_email_findMessages_and_loadMessageBody\r
+//==== LABEL Check if MessageStorage.findMessages and MessageStorage.loadMessageBody methods work properly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    filter, findSuccess, i, loadMessageSuccess, loadMessageError;\r
+\r
+t.step(function () {\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");\r
+        assert_equals(msg.conversationId, message.conversationId, "conversationId is not equal");\r
+        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");\r
+        assert_equals(msg.folderId, message.folderId, "folderId is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, message.type, "type is not equal");\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");\r
+        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");\r
+        assert_equals(msg.from, message.from, "from is not equal");\r
+        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");\r
+        assert_array_equals(msg.to, message.to, "to is not equal");\r
+        assert_array_equals(msg.cc, message.cc, "to is not equal");\r
+        assert_array_equals(msg.bcc, message.bcc, "to is not equal");\r
+        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");\r
+        assert_equals(msg.body.messageId, message.body.messageId, "body.messageId is not equal");\r
+        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");\r
+        assert_equals(msg.body.loaded, message.body.loaded, "loaded is not equal");\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");\r
+        assert_own_property(msg.body, "htmlBody", "Name htmlBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.htmlBody, message.body.htmlBody, "htmlBody is not equal");\r
+        assert_own_property(msg.body, "inlineAttachments", "Name inlineAttachments doesn't exist in provided object.");\r
+        for (i = 0; i < msg.body.inlineAttachments.length; i++) {\r
+            assert_true(msg.body.inlineAttachments[i] instanceof tizen.MessageAttachment, "wrong attachment object");\r
+            assert_equals(msg.body.inlineAttachments[i].id, message.body.inlineAttachments[i].id, "attachments.id is not equal");\r
+            assert_equals(msg.body.inlineAttachments[i].messageId, message.body.inlineAttachments[i].messageId, "attachments.messageId is not equal");\r
+            assert_equals(msg.body.inlineAttachments[i].mimeType, message.body.inlineAttachments[i].mimeType, "attachments.mimeType is not equal");\r
+        }\r
+        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");\r
+        assert_equals(msg.isRead, message.isRead, "isRead is not equal");\r
+        assert_own_property(msg, "hasAttachment", "Name hasAttachment doesn't exist in provided object.");\r
+        assert_equals(msg.hasAttachment, message.hasAttachment, "hasAttachment is not equal");\r
+        assert_own_property(msg, "isHighPriority", "Name isHighPriority doesn't exist in provided object.");\r
+        assert_equals(msg.isHighPriority, message.isHighPriority, "isHighPriority is not equal");\r
+        assert_own_property(msg, "subject", "Name subject doesn't exist in provided object.");\r
+        assert_equals(msg.subject, message.subject, "subject is not equal");\r
+        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");\r
+        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");\r
+        assert_own_property(msg, "messageStatus", "Name messageStatus doesn't exist in provided object.");\r
+        assert_equals(msg.messageStatus, message.messageStatus, "messageStatus is not equal");\r
+        for(i = 0; i < msg.attachments.length; i++){\r
+            assert_true(msg.attachments[i] instanceof tizen.MessageAttachment, "wrong attachment object");\r
+            assert_equals(msg.attachments[i].id, message.attachments[i].id, "attachments.id is not equal");\r
+            assert_equals(msg.attachments[i].messageId, message.attachments[i].messageId, "attachments.messageId is not equal");\r
+            assert_equals(msg.attachments[i].mimeType, message.attachments[i].mimeType, "attachments.mimeType is not equal");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        service.loadMessageBody(messages[0], loadMessageSuccess, loadMessageError);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findSuccess);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            cc: [TEST_EMAIL_RECIPIENT_1],\r
+            bcc: [TEST_EMAIL_RECIPIENT_1],\r
+            plainBody: MESSAGE_BODY_PLAIN,\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+        message.attachments = [\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)\r
+        ];\r
+\r
+        message.body.inlineAttachments = [\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE)\r
+        ];\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+}, "MessageStorage_email_findMessages");\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_bcc_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_bcc_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..a85f62f
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_bcc_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageStorage_email_findMessages_bcc_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by bcc (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_in_array(TEST_EMAIL_RECIPIENT_1, messages[i].bcc, "bcc not found");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("bcc", "EXACTLY", TEST_EMAIL_RECIPIENT_1);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.bcc = [TEST_EMAIL_RECIPIENT_1];\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_cc_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_cc_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..93eeec1
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_cc_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageStorage_email_findMessages_cc_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by cc (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_in_array(TEST_EMAIL_RECIPIENT_1, messages[i].cc, "cc not found");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("cc", "EXACTLY", TEST_EMAIL_RECIPIENT_1);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.cc = [TEST_EMAIL_RECIPIENT_1];\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..ebe010c
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage::findMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,\r
+    incorrectCallback, findSuccessCB;\r
+\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(filter, findSuccessCB, incorrectCallback);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..1655963
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage::findMessages method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB, filter,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, incorrectCallback, findSuccessCB;\r
+\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("unexpeted addDraftMessage() error callback invoked.");\r
+        })\r
+    };\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            messageStorage.findMessages(filter, findSuccessCB, incorrectCallback);\r
+        });\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_exist.html
new file mode 100755 (executable)
index 0000000..3b4060d
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_exist\r
+//==== LABEL Check if method findMessages of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("findMessages" in service.messageStorage, "No findMessages method in messageStorage");\r
+        check_method_exists(service.messageStorage, "findMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_filter_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..9eef881
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_filter_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage::findMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, incorrectFilter, conversionTable,\r
+    i, exceptionName, findSuccessCB, findErrorCB;\r
+\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectFilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(incorrectFilter, findSuccessCB, findErrorCB);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectFilter);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_filter_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_filter_invalid_obj.html
new file mode 100755 (executable)
index 0000000..978a5b3
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_filter_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_filter_invalid_obj\r
+//==== LABEL Check if MessageStorage::findMessages method throws exception when filter is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, invalidFilter, findSuccessCB, findErrorCB;\r
+\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            messageStorage.findMessages(invalidFilter, findSuccessCB, findErrorCB);\r
+        });\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        invalidFilter = {\r
+            attributeName: "type",\r
+            matchFlag: "EXACTLY",\r
+            matchValue: services[0].type\r
+        };\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_folderId_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_folderId_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..6bf01d7
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_folderId_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_folderId_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by folderId (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_equals(messages[i].folderId, message.folderId, "returned folderId is not equal");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("folderId", "EXACTLY", message.folderId);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_from_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_from_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..2c96e4a
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_from_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_from_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by from (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, sendSuccess, sendError, syncSuccess, syncError,\r
+    filter, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_type(messages, "array", "Not an array");\r
+            for (i = 0; i < messages.length; i++) {\r
+                assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+                assert_equals(messages[i].from, TEST_EMAIL_RECIPIENT_1, "returned from is not equal");\r
+            }\r
+\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("from", "EXACTLY", TEST_EMAIL_RECIPIENT_1);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..5267291
--- /dev/null
@@ -0,0 +1,98 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_hasAttachment_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_hasAttachment_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by hasAttachment (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_equals(messages[i].hasAttachment, true, "returned hasAttachment is not equal to true");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("hasAttachment", "EXACTLY", true);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)];\r
+\r
+        assert_true(message.hasAttachment, "Attachment not found");\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_id_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_id_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..1ee7af2
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_id_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_id_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by id (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter,\r
+    addDraftSuccess, addDraftError, findSuccess, findError;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..5122e81
--- /dev/null
@@ -0,0 +1,96 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_isHighPriority_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_isHighPriority_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by isHighPriority (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_equals(messages[i].isHighPriority, true, "returned isHighPriority is not equal to true");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("isHighPriority", "EXACTLY", true);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.isHighPriority = true;\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_isRead_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_isRead_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..0781e71
--- /dev/null
@@ -0,0 +1,141 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_isRead_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_isRead_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by isRead (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false, inboxMessageId,\r
+    sendSuccess, sendError, syncSuccess, syncError, findFoldersSuccess, findFoldersError,\r
+    findInboxMessageSuccess, findInboxMessageError, updateSuccess, updateError,\r
+    findUpdatedMessagesSuccess, findUpdatedMessagesError, inboxFolder, i;\r
+\r
+t.step(function () {\r
+    findUpdatedMessagesSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_equals(messages[i].isRead, true, "returned isRead is not equal to true");\r
+\r
+            if (messages[i].id === inboxMessageId) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findUpdatedMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("isRead", "EXACTLY", true);\r
+        service.messageStorage.findMessages(filter, findUpdatedMessagesSuccess, findUpdatedMessagesError);\r
+    });\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findInboxMessageSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_equals(messages.length, 1, "Found incorrect number of messages");\r
+            assert_equals(messages[0].subject, message.subject, "Incorrect subject.");\r
+            assert_equals(messages[0].folderId, inboxFolder.id, "Incorrect folderId.");\r
+\r
+            messages[0].isRead = true;\r
+            inboxMessageId = messages[0].id;\r
+\r
+            service.messageStorage.updateMessages(messages, updateSuccess, updateError);\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findInboxMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findInboxMessageSuccess, findInboxMessageError);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_missarg.html
new file mode 100755 (executable)
index 0000000..6731510
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_missarg\r
+//==== LABEL Check without arguments - MessageStorage::findMessages\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB;\r
+\r
+t.step(function () {\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            messageStorage.findMessages();\r
+        }, "TypeMismatchError should be thrown - no argument given");\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_plainBody_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_plainBody_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..42dfa0a
--- /dev/null
@@ -0,0 +1,102 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_plainBody_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_plainBody_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by plainBody (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, service, message, addDraftSuccess,\r
+    addDraftError, filter, findSuccess, findError, loadMessageBodySuccess, loadMessageBodyError, i;\r
+\r
+t.step(function () {\r
+\r
+    loadMessageBodySuccess = t.step_func(function (loadedMessage) {\r
+        assert_true(loadedMessage instanceof tizen.Message, "Not a Message");\r
+        assert_equals(loadedMessage.body.plainBody, message.body.plainBody, "plainBody is not equal to the expected");\r
+        t.done();\r
+    });\r
+\r
+    loadMessageBodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            if (messages[i].id === message.id) {\r
+                service.loadMessageBody(messages[i], loadMessageBodySuccess, loadMessageBodyError);\r
+                break;\r
+            }\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("body.plainBody", "EXACTLY", message.body.plainBody);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_serviceId_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_serviceId_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..9ecaa05
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_serviceId_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_serviceId_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by serviceId (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_equals(messages[i].type, service.type, "Invalid service type");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_sort_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_sort_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..f91028f
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_sort_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_sort_TypeMismatch\r
+//==== LABEL Check type conversions for sort argument of MessageStorage::findMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,\r
+    incorrect, findSuccessCB, findErrorCB;\r
+\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrect = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(filter, findSuccessCB, findErrorCB, incorrect);\r
+                }, exceptionName + " should be thrown - given incorrect sort mode: " + incorrect);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_sort_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_sort_invalid_obj.html
new file mode 100755 (executable)
index 0000000..a03fbd3
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_sort_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_sort_invalid_obj\r
+//==== LABEL Check if MessageStorage::findMessages method throws exception when sort is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTO\r
+//==== ONLOAD_DELAY 90\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB, incorrectMode,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB;\r
+\r
+t.step(function () {\r
+\r
+    incorrectMode = {\r
+        attributeName: "id",\r
+        order: "ASC"\r
+    };\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            messageStorage.findMessages(filter, findSuccessCB, findErrorCB, incorrectMode);\r
+        });\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..7381999
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage::findMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,\r
+    incorrectCallback, findErrorCB;\r
+\r
+t.step(function () {\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(filter, incorrectCallback, findErrorCB);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..ff2fa9a
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage::findMessages method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB, filter,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, incorrectCallback, findErrorCB;\r
+\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            messageStorage.findMessages(filter, incorrectCallback, findErrorCB);\r
+        });\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_timestamp_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_timestamp_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..002c84a
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_timestamp_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_timestamp_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by timestamp (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, timeRange = 300000;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+\r
+            if (messages[i].id === message.id) {\r
+                assert_equals(messages[i].timestamp.getTime(), message.timestamp.getTime(), "returned timestamp is not equal to the expected");\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeRangeFilter("timestamp",\r
+            new Date(message.timestamp.getTime()-timeRange), new Date(message.timestamp.getTime()+timeRange));\r
+\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_to_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_to_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..db80ebe
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_to_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_to_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by to (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_in_array(TEST_EMAIL_RECIPIENT_2, messages[i].to, "to not found");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "EXACTLY", TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_type_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_type_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..ff2d995
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_type_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_type_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by type (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_equals(messages[i].type, message.type, "returned type is not equal");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", message.type);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_with_offset.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_with_offset.html
new file mode 100755 (executable)
index 0000000..e1c1090
--- /dev/null
@@ -0,0 +1,98 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_with_offset</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_with_offset\r
+//==== LABEL Check if MessageStorage::findMessages method works properly with all optional argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i, sortMode, limit, offset;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_in_array(TEST_EMAIL_RECIPIENT_1, messages[i].cc, "cc not found");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message was not found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("cc", "EXACTLY", TEST_EMAIL_RECIPIENT_1);\r
+        sortMode = new tizen.SortMode("timestamp", "ASC");\r
+        limit = 0;\r
+        offset = 0;\r
+        service.messageStorage.findMessages(filter, findSuccess, findError, sortMode, limit, offset);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.cc = [TEST_EMAIL_RECIPIENT_1];\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeChangeListener_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..432d019
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_removeChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_removeChangeListener_exist\r
+//==== LABEL Check if method removeChangeListener of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("removeChangeListener" in service.messageStorage, "No removeChangeListener method in messageStorage");\r
+        check_method_exists(service.messageStorage, "removeChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeConversations_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeConversations_exist.html
new file mode 100755 (executable)
index 0000000..ed604cf
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_removeConversations_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_removeConversations_exist\r
+//==== LABEL Check if method removeConversations of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("removeConversations" in service.messageStorage, "No removeConversations method in messageStorage");\r
+        check_method_exists(service.messageStorage, "removeConversations");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeMessages_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeMessages_exist.html
new file mode 100755 (executable)
index 0000000..291fcaa
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_removeMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_removeMessages_exist\r
+//==== LABEL Check if method removeMessages of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("removeMessages" in service.messageStorage, "No removeMessages method in messageStorage");\r
+        check_method_exists(service.messageStorage, "removeMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages.html
new file mode 100755 (executable)
index 0000000..9f72ba9
--- /dev/null
@@ -0,0 +1,272 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service,\r
+    mutableMessage, constMessage,\r
+    plainBodyToSetForMutableMessage = MESSAGE_BODY_PLAIN + "_mutable",\r
+    plainBodyToSetForConstMessage = MESSAGE_BODY_PLAIN + "_const",\r
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null,\r
+    updateSuccess, updateError, mutableMessagefilter, constMessagefilter,\r
+    findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE",\r
+    findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST",\r
+    loadMutableSuccess, loadMutableError,\r
+    loadConstSuccess, loadConstError,\r
+    loadMutableAttachmentSuccess, loadMutableAttachmentError,\r
+    loadConstAttachmentSuccess, loadConstAttachmentError,\r
+    testMessage, testAttachment, testAttachmentCounter = 0;\r
+\r
+t.step(function () {\r
+    testAttachment = t.step_func(function (attachment, type) {\r
+        var j, foundAttachmenentCounter = 0;\r
+        if (type === mutable) {\r
+            for (j = 0; j < mutableMessage.attachments.length; j++) {\r
+                if (attachment.id === mutableMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, mutableMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, mutableMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, mutableMessage.id, type + " attachment.messageId (with message.id)");\r
+                    assert_equals(attachment.mimeType, mutableMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else if (type === consts) {\r
+            for (j = 0; j < constMessage.attachments.length; j++) {\r
+                if (attachment.id === constMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, constMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, constMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, constMessage.id, type + " attachment.messageId - (with message.id)");\r
+                    assert_equals(attachment.mimeType, constMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else {\r
+            assert_unreached("FIX your test - unknown type = " + type);\r
+        }\r
+\r
+        testAttachmentCounter++;\r
+        if (testAttachmentCounter === mutableMessage.attachments.length + constMessage.attachments.length) {\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    loadMutableAttachmentSuccess = t.step_func(function (attachment) {\r
+        testAttachment(attachment, mutable);\r
+    });\r
+\r
+    loadMutableAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstAttachmentSuccess = t.step_func(function (attachment) {\r
+        testAttachment(attachment, consts);\r
+    });\r
+\r
+    loadConstAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    testMessage = t.step_func(function (messageToTest, originalMessage, type) {\r
+        var i;\r
+        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");\r
+        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");\r
+        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");\r
+\r
+        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");\r
+        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");\r
+        assert_array_equals(messageToTest.cc, originalMessage.cc, type + " cc attribute.");\r
+        assert_array_equals(messageToTest.bcc, originalMessage.bcc, type + " bcc attribute.");\r
+\r
+        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");\r
+        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");\r
+        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");\r
+        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");\r
+        assert_equals(messageToTest.body.htmlBody, originalMessage.body.htmlBody, type + " body.htmlBody attribute.");\r
+\r
+        assert_equals(messageToTest.body.inlineAttachments.length, originalMessage.body.inlineAttachments.length,\r
+            type + " incorrect length of inlineAttachments");\r
+        for (i = 0; i < originalMessage.body.inlineAttachments.length; i++) {\r
+            assert_equals(messageToTest.body.inlineAttachments[i].id, originalMessage.body.inlineAttachments[i].id,\r
+                type + " message.body.inlineAttachments[" + i + "].id");\r
+            assert_equals(messageToTest.body.inlineAttachments[i].messageId, originalMessage.body.inlineAttachments[i].messageId,\r
+                type + " message.body.inlineAttachments[" + i + "].messageId");\r
+            assert_equals(messageToTest.body.inlineAttachments[i].messageId, originalMessage.id,\r
+                type + " message.body.inlineAttachments[" + i + "].messageId - (with message.id)");\r
+            assert_equals(messageToTest.body.inlineAttachments[i].mimeType, originalMessage.body.inlineAttachments[i].mimeType,\r
+                type + " message.body.inlineAttachments[" + i + "].mimeType");\r
+            assert_type(messageToTest.body.inlineAttachments[i].filePath, "string",  type + " attachment.filePath is not a string");\r
+            assert_not_equals(messageToTest.body.inlineAttachments[i].filePath, "", type + " attachment.filePath is empty");\r
+        }\r
+\r
+        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");\r
+        assert_equals(messageToTest.hasAttachment, originalMessage.hasAttachment, type + " hasAttachment attribute.");\r
+        assert_equals(messageToTest.isHighPriority, originalMessage.isHighPriority, type + " isHighPriority attribute.");\r
+        assert_equals(messageToTest.subject, originalMessage.subject, type + " subject attribute.");\r
+        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");\r
+        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");\r
+        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {\r
+            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");\r
+        } else {\r
+            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");\r
+        }\r
+        assert_equals(messageToTest.conversationId, originalMessage.conversationId, type + "  conversationId attribute.");\r
+        assert_equals(messageToTest.attachments.length, originalMessage.attachments.length, type + " incorrect length of attachments");\r
+        for (i = 0; i < messageToTest.attachments.length; i++) {\r
+            if (type === mutable) {\r
+                service.loadMessageAttachment(messageToTest.attachments[i], loadMutableAttachmentSuccess, loadMutableAttachmentError);\r
+            } else if (type === consts) {\r
+                service.loadMessageAttachment(messageToTest.attachments[i], loadConstAttachmentSuccess, loadConstAttachmentError);\r
+            } else {\r
+                assert_unreached("FIX your test - unknown type = " + type);\r
+            }\r
+        }\r
+    });\r
+\r
+    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {\r
+        testMessage(loadedMutableMessage, mutableMessage, mutable);\r
+    });\r
+\r
+    loadMutableError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstSuccess = t.step_func(function (loadedConstMessage) {\r
+        testMessage(loadedConstMessage, constMessage, consts);\r
+    });\r
+\r
+    loadConstError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {\r
+        assert_draft_message_equals(t, mutableMessages, mutableMessage);\r
+        foundMutableMessage = mutableMessages[0];\r
+        service.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);\r
+    });\r
+\r
+    findMutableMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConstMessagesSuccess = t.step_func(function (constMessages) {\r
+        assert_draft_message_equals(t, constMessages, constMessage);\r
+        foundConstMessage = constMessages[0];\r
+        service.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);\r
+    });\r
+\r
+    findConstMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);\r
+        service.messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);\r
+\r
+        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);\r
+        service.messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);\r
+    });\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.isRead = true;\r
+            mutableMessage.isHighPriority = true;\r
+            mutableMessage.subject = generateSubject();\r
+            returnedValue = service.messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess, updateError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        mutableMessage = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: plainBodyToSetForMutableMessage,\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+        service.messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+\r
+        constMessage = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: plainBodyToSetForConstMessage,\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+        constMessage.attachments = [\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE),\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)\r
+        ];\r
+\r
+        service.messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..622e862
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.updateMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message,\r
+    addDraftSuccess, addDraftError, exceptionName,\r
+    updateSuccess, incorrectCallback, conversionTable, i;\r
+\r
+t.step(function () {\r
+    updateSuccess = t.step_func(function () {\r
+        assert_unreached("updateMessages() success callback invoked.");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.updateMessages([message], updateSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..a2a699c
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message,\r
+    addDraftSuccess, addDraftError,\r
+    updateSuccess, incorrectCallback;\r
+\r
+t.step(function () {\r
+    updateSuccess = t.step_func(function () {\r
+        assert_unreached("updateMessages() success callback invoked.");\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.updateMessages([message], updateSuccess, incorrectCallback);\r
+        }, "Given invalid error callback");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_exist.html
new file mode 100755 (executable)
index 0000000..e5e05a6
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_exist\r
+//==== LABEL Check if method updateMessages of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("updateMessages" in service.messageStorage, "No updateMessages method in messageStorage");\r
+        check_method_exists(service.messageStorage, "updateMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_messages_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_messages_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..cec156b
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_messages_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_messages_TypeMismatch\r
+//==== LABEL Check type conversions for messages argument of MessageStorage.updateMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, exceptionName, updateSuccess, updateError,\r
+    conversionTable, incorrectMessages, i;\r
+\r
+t.step(function () {\r
+    updateSuccess = t.step_func(function () {\r
+        assert_unreached("updateMessages() success callback invoked.");\r
+    });\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("array", false);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectMessages = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.updateMessages(incorrectMessages, updateSuccess, updateError);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessages);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_missarg.html
new file mode 100755 (executable)
index 0000000..93cbc1a
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_missarg\r
+//==== LABEL Check with missing message argument -  MessageStorage.updateMessages (email)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            service.messageStorage.updateMessages();\r
+        }, exceptionName + " should be thrown - missing argument.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..142c91f
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.updateMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    exceptionName, updateError, incorrectCallback, conversionTable, i;\r
+\r
+t.step(function () {\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.updateMessages([message], incorrectCallback, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..e05c729
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message,\r
+    addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError",\r
+    updateError, incorrectCallback;\r
+\r
+t.step(function () {\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() incorrect success callback invoked");\r
+        })\r
+    };\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.updateMessages([message], incorrectCallback, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_without_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..825516b
--- /dev/null
@@ -0,0 +1,277 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_without_errorCallback\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly without errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000});\r
+t.step(function () {\r
+    var serviceSuccess, serviceError, service,\r
+        mutableMessage, constMessage,\r
+        plainBodyToSetForMutableMessage = MESSAGE_BODY_PLAIN + "_mutable",\r
+        plainBodyToSetForConstMessage = MESSAGE_BODY_PLAIN + "_const",\r
+        addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null,\r
+        updateSuccess, mutableMessagefilter, constMessagefilter,\r
+        findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE",\r
+        findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST",\r
+        loadMutableSuccess, loadMutableError,\r
+        loadConstSuccess, loadConstError,\r
+        loadMutableAttachmentSuccess, loadMutableAttachmentError,\r
+        loadConstAttachmentSuccess, loadConstAttachmentError,\r
+        testMessage, testAttachment, testAttachmentCounter = 0;\r
+\r
+    testAttachment = t.step_func(function (attachment, type) {\r
+        var j, foundAttachmenentCounter = 0;\r
+        if (type === mutable) {\r
+            for (j = 0; j < mutableMessage.attachments.length; j++) {\r
+                if (attachment.id === mutableMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, mutableMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, mutableMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, mutableMessage.id, type + " attachment.messageId (with message.id)");\r
+                    assert_equals(attachment.mimeType, mutableMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else if (type === consts) {\r
+            for (j = 0; j < constMessage.attachments.length; j++) {\r
+                if (attachment.id === constMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, constMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, constMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, constMessage.id, type + " attachment.messageId - (with message.id)");\r
+                    assert_equals(attachment.mimeType, constMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else {\r
+            assert_unreached("FIX your test - unknown type = " + type);\r
+        }\r
+\r
+        testAttachmentCounter++;\r
+        if (testAttachmentCounter === mutableMessage.attachments.length + constMessage.attachments.length) {\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    loadMutableAttachmentSuccess = t.step_func(function (attachment) {\r
+        testAttachment(attachment, mutable);\r
+    });\r
+\r
+    loadMutableAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstAttachmentSuccess = t.step_func(function (attachment) {\r
+        testAttachment(attachment, consts);\r
+    });\r
+\r
+    loadConstAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    testMessage = t.step_func(function (messageToTest, originalMessage, type) {\r
+        var i;\r
+        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");\r
+        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");\r
+        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");\r
+\r
+        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");\r
+        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");\r
+        assert_array_equals(messageToTest.cc, originalMessage.cc, type + " cc attribute.");\r
+        assert_array_equals(messageToTest.bcc, originalMessage.bcc, type + " bcc attribute.");\r
+\r
+        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");\r
+        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");\r
+        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");\r
+        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");\r
+        assert_equals(messageToTest.body.htmlBody, originalMessage.body.htmlBody, type + " body.htmlBody attribute.");\r
+\r
+        assert_equals(messageToTest.body.inlineAttachments.length, originalMessage.body.inlineAttachments.length,\r
+            type + " incorrect length of inlineAttachments");\r
+        for (i = 0; i < originalMessage.body.inlineAttachments.length; i++) {\r
+            assert_equals(messageToTest.body.inlineAttachments[i].id, originalMessage.body.inlineAttachments[i].id,\r
+                type + " message.body.inlineAttachments[" + i + "].id");\r
+            assert_equals(messageToTest.body.inlineAttachments[i].messageId, originalMessage.body.inlineAttachments[i].messageId,\r
+                type + " message.body.inlineAttachments[" + i + "].messageId");\r
+            assert_equals(messageToTest.body.inlineAttachments[i].messageId, originalMessage.id,\r
+                type + " message.body.inlineAttachments[" + i + "].messageId - (with message.id)");\r
+            assert_equals(messageToTest.body.inlineAttachments[i].mimeType, originalMessage.body.inlineAttachments[i].mimeType,\r
+                type + " message.body.inlineAttachments[" + i + "].mimeType");\r
+            assert_type(messageToTest.body.inlineAttachments[i].filePath, "string",  type + " attachment.filePath is not a string");\r
+            assert_not_equals(messageToTest.body.inlineAttachments[i].filePath, "", type + " attachment.filePath is empty");\r
+        }\r
+\r
+        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");\r
+        assert_equals(messageToTest.hasAttachment, originalMessage.hasAttachment, type + " hasAttachment attribute.");\r
+        assert_equals(messageToTest.isHighPriority, originalMessage.isHighPriority, type + " isHighPriority attribute.");\r
+        assert_equals(messageToTest.subject, originalMessage.subject, type + " subject attribute.");\r
+        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");\r
+        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");\r
+        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {\r
+            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");\r
+        } else {\r
+            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");\r
+        }\r
+        assert_equals(messageToTest.conversationId, originalMessage.conversationId, type + "  conversationId attribute.");\r
+\r
+        assert_equals(messageToTest.attachments.length, originalMessage.attachments.length, type + " incorrect length of attachments");\r
+        for (i = 0; i < messageToTest.attachments.length; i++) {\r
+            if (type === mutable) {\r
+                service.loadMessageAttachment(messageToTest.attachments[i], loadMutableAttachmentSuccess, loadMutableAttachmentError);\r
+            } else if (type === consts) {\r
+                service.loadMessageAttachment(messageToTest.attachments[i], loadConstAttachmentSuccess, loadConstAttachmentError);\r
+            } else {\r
+                assert_unreached("FIX your test - unknown type = " + type);\r
+            }\r
+        }\r
+    });\r
+\r
+    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {\r
+        testMessage(loadedMutableMessage, mutableMessage, mutable);\r
+    });\r
+\r
+    loadMutableError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstSuccess = t.step_func(function (loadedConstMessage) {\r
+        testMessage(loadedConstMessage, constMessage, consts);\r
+    });\r
+\r
+    loadConstError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {\r
+        assert_draft_message_equals(t, mutableMessages, mutableMessage);\r
+        foundMutableMessage = mutableMessages[0];\r
+        if (foundMutableMessage.body.loaded) {\r
+            testMessage(foundMutableMessage, mutableMessage, mutable);\r
+        } else {\r
+            service.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);\r
+        }\r
+    });\r
+\r
+    findMutableMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConstMessagesSuccess = t.step_func(function (constMessages) {\r
+        assert_draft_message_equals(t, constMessages, constMessage);\r
+\r
+        foundConstMessage = constMessages[0];\r
+        if (foundConstMessage.body.loaded) {\r
+            testMessage(foundConstMessage, constMessage, consts);\r
+        } else {\r
+            service.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);\r
+        }\r
+    });\r
+\r
+    findConstMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);\r
+        service.messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);\r
+\r
+        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);\r
+        service.messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.isRead = true;\r
+            mutableMessage.isHighPriority = true;\r
+            mutableMessage.subject = "new mutableMessage.subject";\r
+            returnedValue = service.messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        mutableMessage = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: plainBodyToSetForMutableMessage,\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+        service.messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        constMessage = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: plainBodyToSetForConstMessage,\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+        constMessage.attachments = [\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE),\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)\r
+        ];\r
+\r
+        service.messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_without_successCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_without_successCallback.html
new file mode 100755 (executable)
index 0000000..2e1cccf
--- /dev/null
@@ -0,0 +1,115 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_without_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_without_successCallback\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly without successCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, service, mutableMessage,\r
+    constMessage, plainBodyToSetForMutableMessage = MESSAGE_BODY_PLAIN + "_mutable", plainBodyToSetForConstMessage = MESSAGE_BODY_PLAIN + "_const",\r
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.to = ["tomutableMessage1@something.com", "tomutableMessage2@something.com"];\r
+            mutableMessage.cc = ["ccmutableMessage1@something.com", "ccmutableMessage2@something.com"];\r
+            mutableMessage.bcc = ["bccmutableMessage1@something.com", "bccmutableMessage2@something.com"];\r
+            mutableMessage.body.plainBody = "new mutableMessage.plainBody";\r
+            mutableMessage.body.htmlBody = MESSAGE_BODY_HTML + "<img src='webapi-tizen-messaging-test_image.jpg'>";\r
+            mutableMessage.body.inlineAttachments = [\r
+                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE),\r
+                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE)\r
+            ];\r
+            mutableMessage.isRead = true;\r
+            mutableMessage.isHighPriority = true;\r
+            mutableMessage.subject = "new mutableMessage.subject";\r
+            mutableMessage.attachments = [\r
+                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE),\r
+                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)\r
+            ];\r
+            returnedValue = service.messageStorage.updateMessages([mutableMessage, constMessage]);\r
+            assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        mutableMessage = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: plainBodyToSetForMutableMessage,\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+        service.messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        constMessage = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: plainBodyToSetForConstMessage,\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+        constMessage.attachments = [\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE),\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)\r
+        ];\r
+\r
+        service.messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders.html
new file mode 100755 (executable)
index 0000000..3cd2fee
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders\r
+//==== PRIORITY P1\r
+//==== LABEL Check if MessageStorage.findFolders method works properly\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, filter, foldersSuccess, returnedValue = null;\r
+\r
+t.step(function () {\r
+    foldersSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        returnedValue = service.messageStorage.findFolders(filter, foldersSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..27151bf
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders_errorCallback_TypeMismatch\r
+//==== PRIORITY P2\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.findFolders method\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersSuccess, foldersError,\r
+    exceptionName, conversionTable, filter, i;\r
+\r
+t.step(function () {\r
+    foldersSuccess = t.step_func(function () {\r
+        assert_unreached("findFolders success callback should not be called.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            foldersError = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                {name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.findFolders(filter, foldersSuccess, foldersError);\r
+                },\r
+                exceptionName + "should be thrown when incorrect error callback given."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..097d6ef
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders_errorCallback_invalid_cb\r
+//==== PRIORITY P2\r
+//==== LABEL Check if MessageStorage.findFolders method throws exception when errorCallback is invalid\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, findSuccess, filter, incorrectCallback;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function () {\r
+        assert_unreached("findFolders success callback should not be called.");\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("findFolders() incorrect error callback invoked");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.findFolders(filter, findSuccess, incorrectCallback);\r
+        }, "Given invalid error callback");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_filter_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..5ecbc23
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders_filter_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders_filter_TypeMismatch\r
+//==== PRIORITY P2\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.findFolders method\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceSuccess, serviceError, foldersSuccess, exceptionName, conversionTable, filter;\r
+\r
+t.step(function () {\r
+    foldersSuccess = t.step_func(function () {\r
+        assert_unreached("findFolders success callback should not be called.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            filter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws(\r
+                {name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.findFolders(filter, foldersSuccess);\r
+                },\r
+                exceptionName + "should be thrown when incorrect filter given."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_filter_serviceId.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_filter_serviceId.html
new file mode 100755 (executable)
index 0000000..155b6a7
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findFolders_filter_serviceId</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findFolders_filter_serviceId\r
+//==== LABEL Check if MessageStorage.findFolders works properly for filter by serviceId\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, serviceIdFilter, returnedValue = null, findFoldersError, findFoldersSuccess;\r
+\r
+t.step(function () {\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        serviceIdFilter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        returnedValue = service.messageStorage.findFolders(serviceIdFilter, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_missarg.html
new file mode 100755 (executable)
index 0000000..d769859
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders_missarg\r
+//==== PRIORITY P2\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.findFolders\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, filter;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION,\r
+            function () {\r
+                service.messageStorage.findFolders();\r
+            },\r
+            "TypeMismatch expected when no argument given."\r
+        );\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION,\r
+            function () {\r
+                service.messageStorage.findFolders(filter);\r
+            },\r
+            "TypeMismatch expected when no success callback given."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..5656dc1
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders_successCallback_TypeMismatch\r
+//==== PRIORITY P2\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.findFolders method\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, msgService, foldersSuccess,\r
+    exceptionName, conversionTable, filter, i;\r
+\r
+t.step(function () {\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("Failed to get MessageServices: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "No message service received.");\r
+        msgService = services[0];\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", msgService.id);\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            foldersSuccess = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                {name: exceptionName},\r
+                function () {\r
+                    msgService.messageStorage.findFolders(filter, foldersSuccess);\r
+                },\r
+                exceptionName + "should be thrown when incorrect success callback given."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..c3024fb
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders_successCallback_invalid_cb\r
+//==== PRIORITY P2\r
+//==== LABEL Check if MessageStorage.findFolders method throws exception when successCallback is invalid (email)\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, filter, incorrectCallback;\r
+\r
+t.step(function () {\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("findFolders() incorrect error callback invoked");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.findFolders(filter, incorrectCallback);\r
+        }, "Given invalid success callback");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..64bd822
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders_with_errorCallback\r
+//==== PRIORITY P1\r
+//==== LABEL Check if MessageStorage.findFolders method works properly with errorCallback argument\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, filter, foldersError, foldersSuccess,\r
+    returnedValue = null;\r
+\r
+t.step(function () {\r
+    foldersSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    foldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        returnedValue = service.messageStorage.findFolders(filter, foldersSuccess, foldersError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessage_emailFilterWithoutErrorCb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessage_emailFilterWithoutErrorCb.html
new file mode 100755 (executable)
index 0000000..56618ac
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_findMessage_emailFilterWithoutErrorCb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_findMessage_emailFilterWithoutErrorCb\r
+//==== LABEL Check if MessageStorage.findMessages method works properly without errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, message, returnedValue = null,\r
+    addDraftSuccess, addDraftError, filter, findSuccess;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        returnedValue = service.messageStorage.findMessages(filter, findSuccess);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages.html
new file mode 100755 (executable)
index 0000000..1151fed
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_findMessages</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_findMessages\r
+//==== LABEL Check if MessageStorage.findMessages method works properly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    smsService, findSuccess, findError, filter,\r
+    serviceSuccess, addSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        smsService.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        smsService = services[0];\r
+\r
+        addSMSDraft(t, smsService, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html
new file mode 100755 (executable)
index 0000000..9fe9a81
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_errorCallback_TypeMismatch_1</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_errorCallback_TypeMismatch_1\r
+//==== LABEL Check MessageStorage.findMessages method when errorCallback is a number (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, findSuccess, filter;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function () {\r
+        assert_unreached("findMessages() success callback invoked");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findMessages(filter, findSuccess, 1);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_null.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_null.html
new file mode 100755 (executable)
index 0000000..c321b0e
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_errorCallback_null</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_errorCallback_null\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, typeFilter, findSuccess,\r
+    i, addSuccess, service, foundMessage = 0, addedMessage;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_equals(messages[i].type, "messaging.sms", "Incorrect type");\r
+            if (messages[i].id === addedMessage.id) {\r
+                foundMessage++;\r
+            }\r
+        }\r
+        assert_equals(foundMessage, 1, "Incorrect number of found messages");\r
+        t.done();\r
+    });\r
+\r
+    addSuccess = t.step_func(function (msg) {\r
+        addedMessage = msg;\r
+        typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        service.messageStorage.findMessages(typeFilter, findSuccess, null);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        service = services[0];\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_exist.html
new file mode 100755 (executable)
index 0000000..0c70708
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_findMessages_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_findMessages_exist\r
+//==== LABEL Check if method findMessages in MessageStorage\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        assert_true("findMessages" in services[0].messageStorage, "Messaging.MessageStorage.findMessages method does not exist");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_body_valid.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_body_valid.html
new file mode 100755 (executable)
index 0000000..359c27f
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_body_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_filter_body_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by plainBody\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    bodyFilter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", "mms text"),\r
+    mmsService, findSuccess, findError, addSuccess, serviceSuccess,\r
+    serviceError, i, initDict;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_true(messages.length > 0, "No messages found");\r
+        for(i = 0; i < messages.length; i++) {\r
+            assert_regexp_match(messages[i].body.plainBody, /mms text/i, "Incorrect body.plainBody.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function (msg) {\r
+        mmsService.messageStorage.findMessages(bodyFilter, findSuccess, findError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        mmsService = services[0];\r
+\r
+        initDict = {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "This is a mms text."\r
+        };\r
+\r
+        addMMSDraft(t, mmsService, initDict, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_folderId_valid.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_folderId_valid.html
new file mode 100755 (executable)
index 0000000..422b03c
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_folderId_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_filter_folderId_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by folderId equal to 3\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, addSuccess, findSuccess,\r
+    findError, filter, mmsService;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (err) {\r
+        assert_unreached("Could not find message: " + err.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        // The folderId of DRAFTS folder is 3\r
+        filter = new tizen.AttributeFilter("folderId", "EXACTLY", "3");\r
+        mmsService.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(services.length, 1, "One service should be received");\r
+        assert_equals(services[0].type, "messaging.mms", "Service type is incorrect");\r
+\r
+        mmsService = services[0];\r
+        addMMSDraft(t, mmsService, {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("Service error: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_from_valid.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_from_valid.html
new file mode 100755 (executable)
index 0000000..3bf4dd3
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_from_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_filter_from_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by from (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), msg, sendSuccess, sendError, filter, findSuccess, findError,\r
+    serviceSuccess, serviceError, mmsService;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function (messages) {\r
+        mmsService.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(services.length, 1, "One service should be received");\r
+        assert_equals(services[0].type, "messaging.mms", "Service type is incorrect");\r
+\r
+        mmsService = services[0];\r
+\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+        msg = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, mmsService, msg, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_hasAttachment_valid.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_hasAttachment_valid.html
new file mode 100755 (executable)
index 0000000..5485941
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_hasAttachment_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findMessages_filter_hasAttachment_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by hasAttachment equal to false\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    mmsService, serviceError, serviceSuccess, addError, addSuccess, findError, findSuccess,\r
+    hasAttachmentFilter = new tizen.AttributeFilter("hasAttachment", "EXACTLY", false);\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        mmsService.messageStorage.findMessages(hasAttachmentFilter, findSuccess, findError);\r
+    });\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        mmsService = services[0];\r
+        addMMSDraft(t, mmsService, {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_isRead_valid.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_isRead_valid.html
new file mode 100755 (executable)
index 0000000..fb1c833
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_isRead_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findMessages_filter_isRead_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by isRead equal to true\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    mmsService, readFilter = new tizen.AttributeFilter("isRead", "EXACTLY", true),\r
+    serviceError, serviceSuccess, addError, addSuccess, findError, findSuccess,\r
+    msg;\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        mmsService.messageStorage.findMessages(readFilter, findSuccess, findError);\r
+    });\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        mmsService = services[0];\r
+\r
+        msg = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        msg.isRead = true;\r
+\r
+        mmsService.messageStorage.addDraftMessage(msg, addSuccess, addError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_mms_valid.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_mms_valid.html
new file mode 100755 (executable)
index 0000000..62b64a0
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_mms_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_filter_mms_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by type\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), findSuccess, findError,\r
+    serviceSuccess, serviceError, service, addSuccess;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        service.messageStorage.findMessages(MMStypeFilter, findSuccess, findError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        addMMSDraft(t, service, {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_sms_valid.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_sms_valid.html
new file mode 100755 (executable)
index 0000000..7ad7187
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_sms_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_filter_sms_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by type (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), smsService, findSuccess, findError, typeFilter, serviceSuccess,\r
+    addSuccess, addedMessage, foundMessage = 0, returnedValue = null, i, serviceError;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_equals(messages[i].type, "messaging.sms", "Incorrect type");\r
+            if (messages[i].id === addedMessage.id) {\r
+                foundMessage++;\r
+            }\r
+        }\r
+        assert_equals(foundMessage, 1, "Incorrect number of found messages");\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function (message) {\r
+        addedMessage = message;\r
+        typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        returnedValue = smsService.messageStorage.findMessages(typeFilter, findSuccess, findError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        smsService = services[0];\r
+\r
+        addSMSDraft(t, smsService, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_subject_valid.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_subject_valid.html
new file mode 100755 (executable)
index 0000000..4bd2074
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_subject_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findMessages_filter_subject_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by subject (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), mmsService,\r
+    subject, subjectFilter, addedMessage, findSuccess, findError,\r
+    serviceSuccess, serviceError, returnedValue = null, addSuccess;\r
+\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Incorrect number of messages");\r
+        assert_equals(messages[0].id, addedMessage.id, "Incorrect message.id");\r
+        assert_equals(messages[0].subject, subject, "Incorrect message.subject");\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function (message) {\r
+        addedMessage = message;\r
+        subjectFilter = new tizen.AttributeFilter("subject", "EXACTLY", subject);\r
+        returnedValue = mmsService.messageStorage.findMessages(subjectFilter, findSuccess, findError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        mmsService = services[0];\r
+\r
+        subject = generateSubject();\r
+\r
+        addMMSDraft(t, mmsService, {\r
+            subject: subject,\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_timestamp_valid.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_timestamp_valid.html
new file mode 100755 (executable)
index 0000000..a0911a6
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_timestamp_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_filter_timestamp_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by timestamp\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), findSuccess, findError, serviceSuccess, serviceError,\r
+    returnedValue = null, i, msg, dateTime, before, after, filter, mmsService, sendSuccess, sendError;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_greater_than_equal(messages[i].timestamp.getFullYear(), dateTime.getFullYear(), "Incorrect year");\r
+            assert_less_than_equal(messages[i].timestamp.getFullYear(), dateTime.getFullYear() + 1, "Incorrect year");\r
+        }\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        dateTime = tizen.time.getCurrentDateTime();\r
+        before = new Date(dateTime.getFullYear(), dateTime.getMonth(), dateTime.getDate());\r
+        after = new Date(dateTime.getFullYear() + 1, dateTime.getMonth(), dateTime.getDate());\r
+        filter = new tizen.AttributeRangeFilter("timestamp", before, after);\r
+\r
+        returnedValue = mmsService.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(services.length, 1, "One service should be received");\r
+        assert_equals(services[0].type, "messaging.mms", "Service type is incorrect");\r
+\r
+        mmsService = services[0];\r
+\r
+        msg = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, mmsService, msg, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_to_valid.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_to_valid.html
new file mode 100755 (executable)
index 0000000..d473c74
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_to_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_filter_to_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by to\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceError, serviceSuccess, addSuccess, findSuccess,\r
+    findError, foundAddedMessage = 0, addedMessage, mmsService, toFilter, i;\r
+t.step(function () {\r
+\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        for(i = 0; i < messages.length; i++) {\r
+            assert_in_array(TEST_SMS_RECIPIENT, messages[i].to, "Recipient is not present.");\r
+            if (messages[i].id === addedMessage.id) {\r
+                foundAddedMessage++;\r
+            }\r
+        }\r
+        assert_equals(foundAddedMessage, 1, "Found invalid number of message");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function (message) {\r
+        addedMessage = message;\r
+        toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        mmsService.messageStorage.findMessages(toFilter, findSuccess, findError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        mmsService = services[0];\r
+\r
+        addMMSDraft(t, mmsService, {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_limit_valid.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_limit_valid.html
new file mode 100755 (executable)
index 0000000..5488001
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_limit_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_limit_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with limit\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), smsService, typeFilter, sortMode, limit = 5, serviceError,\r
+    serviceSuccess, addSuccess, findError, findSuccess, addSuccessCounter = 0, i;\r
+\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        assert_less_than_equal(messages.length, limit, "Received too many messages");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        addSuccessCounter++;\r
+        if (addSuccessCounter === limit + 1) {\r
+            typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+            sortMode = new tizen.SortMode("type", "ASC");\r
+\r
+            smsService.messageStorage.findMessages(typeFilter, findSuccess, findError, sortMode, limit);\r
+        }\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        smsService = services[0];\r
+\r
+        for (i = 0; i <= limit; i++) {\r
+            addSMSDraft(t, smsService, {\r
+                to: [TEST_SMS_RECIPIENT],\r
+                plainBody: generatePlainBody()\r
+            }, addSuccess);\r
+        }\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_missarg.html
new file mode 100755 (executable)
index 0000000..03c8881
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findMessages_missarg</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findMessages_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.findMessages (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, filter, serviceError, serviceSuccess, onSuccess;\r
+t.step(function () {\r
+\r
+    onSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.findMessages(filter);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, onSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_noarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_noarg.html
new file mode 100755 (executable)
index 0000000..3777c21
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findMessages_noarg</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_noarg\r
+//==== LABEL Check without arguments - MessageStorage.findMessages (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), onSuccess;\r
+t.step(function () {\r
+    onSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "type of services is not Array");\r
+        if (services.length > 0) {\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                services[0].messageStorage.findMessages();\r
+            });\r
+        } else {\r
+            assert_unreached("list of services is empty");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", onSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_offset_valid.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_offset_valid.html
new file mode 100755 (executable)
index 0000000..d1a62c5
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_offset_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_offset_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with valid offset\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), smsService, typeFilter, sortMode, limit = 10, offset = 2,\r
+    serviceSuccess, serviceError, addSuccess, findSuccess, findError, addSuccessCounter = 0, i;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        addSuccessCounter++;\r
+        if (addSuccessCounter === offset + 1) {\r
+            typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+            sortMode = new tizen.SortMode("type", "ASC");\r
+            smsService.messageStorage.findMessages(typeFilter, findSuccess, findError, sortMode, limit, offset);\r
+        }\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        smsService = services[0];\r
+\r
+        for (i = 0; i <= offset; i++) {\r
+            addSMSDraft(t, smsService, {\r
+                to: [TEST_SMS_RECIPIENT],\r
+                plainBody: generatePlainBody()\r
+            }, addSuccess);\r
+        }\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_sort_valid.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_sort_valid.html
new file mode 100755 (executable)
index 0000000..63d23d0
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_sort_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findMessages_sort_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with sort\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, findSuccess, findError, addSuccess, typeFilter,\r
+    sortMode, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        sortMode = new tizen.SortMode("type", "ASC");\r
+        service.messageStorage.findMessages(typeFilter, findSuccess, findError, sortMode);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..17d19a7
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch\r
+//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectChangeListener, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectChangeListener  = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addConversationsChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..0c12dc2
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addConversationChangeListener method throws exception when conversationsChangeCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTL\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectListeners, i, exceptionName, incorrectChangeListener;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        incorrectListeners = getListenerConversionExceptions(["conversationsadded", "conversationsupdated", "conversationsremoved"]);\r
+        for(i = 0; i < incorrectListeners.length; i++) {\r
+            incorrectChangeListener = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addConversationsChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..bd600a2
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addConversationsChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addConversationsChangeListener_exist\r
+//==== LABEL Check if method addConversationsChangeListener of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addConversationsChangeListener" in messageStorage, "No addConversationsChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "addConversationsChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage.html
new file mode 100755 (executable)
index 0000000..e8b9c1c
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",\r
+    returnedValue = null, addDraftSuccess, addDraftError, filter, findMessagesSuccess, findMessagesError;\r
+t.step(function () {\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Received incorrect number of messages");\r
+        assert_equals(messages[0].subject, subjectToSet, "subject attribute is incorrect.");\r
+        assert_equals(messages[0].body.plainBody, plainBodyToSet, "plainBody attribute is incorrect.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+        filter = new tizen.AttributeFilter("subject", "EXACTLY", subjectToSet);\r
+        messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});\r
+        returnedValue = messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..de20bc6
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",\r
+    addDraftSuccess, conversionTable, i, exceptionName, incorrectCallback;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage() success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet});\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..17902b1
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",\r
+    addDraftSuccess, incorrectCallback, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage() success callback invoked.");\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet});\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_exist.html
new file mode 100755 (executable)
index 0000000..fcf5045
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_exist\r
+//==== LABEL Check if method addDraftMessage of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addDraftMessage" in messageStorage, "No addDraftMessage method in messageStorage");\r
+        check_method_exists(messageStorage, "addDraftMessage");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..9ecb889
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_message_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_message_TypeMismatch\r
+//==== LABEL Check type conversions for message argument of MessageStorage.addDraftMessage method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectMessage, conversionTable, i, exceptionName, addDraftSuccess, addDraftError;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage success callback invoked.");\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectMessage = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addDraftMessage(incorrectMessage, addDraftSuccess, addDraftError);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessage);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_message_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..33d3b40
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_message_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_message_invalid_obj\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when message is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    fakeMessage, exceptionName = "TypeMismatchError", addDraftSuccess, addDraftError;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage success callback invoked.");\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        fakeMessage = {\r
+            id: "123456",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.mms",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [ TEST_SMS_RECIPIENT ],\r
+            body: {\r
+                messageId: "123456",\r
+                loaded: true,\r
+                plainBody: "Sample content"\r
+            },\r
+            isRead: false,\r
+            hasAttachment: false,\r
+            subject: "",\r
+            inResponseTo: null,\r
+            messageStatus: "",\r
+            attachments: []\r
+        };\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            messageStorage.addDraftMessage(fakeMessage, addDraftSuccess, addDraftError);\r
+        }, exceptionName + " should be thrown - given incorrect Message");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_missarg.html
new file mode 100755 (executable)
index 0000000..3f080e2
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addDraftMessage (mms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_throws({name: exceptionName}, function () {\r
+            messageStorage.addDraftMessage();\r
+        }, exceptionName + " should be thrown - missing argument");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..c60112c
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",\r
+    incorrectCallback, addDraftError, conversionTable, exceptionName, i;\r
+t.step(function () {\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet});\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);\r
+            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..ac109cd
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",\r
+    incorrectCallback, addDraftError, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet});\r
+        assert_throws({name: exceptionName}, function () {\r
+            messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_without_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..bcd365f
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_without_errorCallback\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",\r
+    returnedValue = null, addDraftSuccess, filter, findMessagesSuccess, findMessagesError;\r
+t.step(function () {\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Received incorrect number of messages");\r
+        assert_equals(messages[0].subject, subjectToSet, "subject attribute is incorrect.");\r
+        assert_equals(messages[0].body.plainBody, plainBodyToSet, "plainBody attribute is incorrect.");\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("subject", "EXACTLY", subjectToSet);\r
+        messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});\r
+        returnedValue = messageStorage.addDraftMessage(message, addDraftSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_without_successCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_without_successCallback.html
new file mode 100755 (executable)
index 0000000..08a4e16
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_without_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_without_successCallback\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly without successCallback argument (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",\r
+    returnedValue = null, removeAllSuccess;\r
+t.step(function () {\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});\r
+        setTimeout(\r
+            t.step_func(function () {\r
+                returnedValue = messageStorage.addDraftMessage(message);\r
+                assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+                removeAllMessages(t, messageService, removeAllSuccess);\r
+            }), 10000);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addFoldersChangeListener_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addFoldersChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..a35e453
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addFoldersChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addFoldersChangeListener_exist\r
+//==== LABEL Check if method addFoldersChangeListener of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addFoldersChangeListener" in messageStorage, "No addFoldersChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "addFoldersChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..6014562
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTL\r
+\r
+setup({timeout: 300000});\r
+\r
+var t = async_test(document.title, {timeout: 300000}),\r
+    serviceSuccess, serviceError, incorrectListeners, folderChangeListener, i, exceptionName, filter;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services.id);\r
+\r
+        incorrectListeners = getListenerConversionExceptions(["foldersadded", "foldersupdated", "foldersremoved"]);\r
+\r
+        for (i = 0; i < incorrectListeners.length; i++) {\r
+            folderChangeListener  = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                services[0].messageStorage.addFoldersChangeListener(folderChangeListener, filter);\r
+            }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMmsService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..d000e90
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addMessagesChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addMessagesChangeListener_exist\r
+//==== LABEL Check if method addMessagesChangeListener of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addMessagesChangeListener" in messageStorage, "No addMessagesChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "addMessagesChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..899ab91
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    changeCallback, conversionTable, incorrectFilter, exceptionName, i;\r
+t.step(function () {\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("memssagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectFilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName}, function () {\r
+                messageStorage.addMessagesChangeListener(changeCallback, incorrectFilter);\r
+            }, exceptionName + " should be thrown - given incorrect filter: " + incorrectFilter);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..5629312
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch\r
+//==== LABEL Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectChangeListener, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectChangeListener  = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addMessagesChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..978fb66
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTL\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectListeners, incorrectChangeListener, exceptionName, i;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        incorrectListeners = getListenerConversionExceptions(["messagesadded", "messagesupdated", "messagesremoved"]);\r
+        for(i = 0; i < incorrectListeners.length; i++) {\r
+            incorrectChangeListener = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addMessagesChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_missarg.html
new file mode 100755 (executable)
index 0000000..53efdae
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addMessagesChangeListener_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addMessagesChangeListener_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (mms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addMessagesChangeListener();\r
+            }, exceptionName + " should be thrown - missing argument.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_with_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_with_filter.html
new file mode 100755 (executable)
index 0000000..50f5f18
--- /dev/null
@@ -0,0 +1,115 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addMessagesChangeListener_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addMessagesChangeListener_with_filter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly with filter (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MAST MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),\r
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),\r
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),\r
+    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },\r
+    matchInitDict = initDict, mismatchInitDict = initDict,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, loadSuccess, loadError;\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);\r
+            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+        assert_type(subscriptionIdentifier, "long", "Incorrect returned value.");\r
+\r
+        mismatchInitDict.plainBody = mismatchPlainBodyToSet;\r
+        mismatchMessage = new tizen.Message("messaging.mms", mismatchInitDict);\r
+        messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);\r
+\r
+        matchInitDict.plainBody = matchPlainBodyToSet;\r
+        matchMessage = new tizen.Message("messaging.mms", matchInitDict);\r
+        messageStorage.addDraftMessage(matchMessage, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_without_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_without_filter.html
new file mode 100755 (executable)
index 0000000..802f805
--- /dev/null
@@ -0,0 +1,111 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addMessagesChangeListener_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addMessagesChangeListener_without_filter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly without filter (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MMINA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, message, changeCallback, addDraftError, loadSuccess, loadError, i, plainBody = "sample plainBody";\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            if (subscriptionIdentifier) {\r
+                messageStorage.removeChangeListener(subscriptionIdentifier);\r
+            }\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, plainBody, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, message.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_greater_than(addedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < addedMessages.length; i++) {\r
+                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (addedMessages[i].id === message.id) {\r
+                    messageStorage.removeChangeListener(subscriptionIdentifier);\r
+                    messageService.loadMessageBody(addedMessages[i], loadSuccess, loadError);\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+        assert_type(subscriptionIdentifier, "long", "Incorrect returned value.");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: plainBody\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_extend.html
new file mode 100755 (executable)
index 0000000..7ec231b
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageStorage (MMS) can be extended with new property\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        check_extensibility(messageStorage);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_exist.html
new file mode 100755 (executable)
index 0000000..dd51c75
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findConversations_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findConversations_exist\r
+//==== LABEL Check if method findConversations of MessageStorage (MMS) exists\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("findConversations" in messageStorage, "No findConversations method in messageStorage");\r
+        check_method_exists(messageStorage, "findConversations");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (e) {\r
+        assert_unreached("getMessageServices() error callback: name:" + e.name + ", msg:" + e.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_from.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_from.html
new file mode 100755 (executable)
index 0000000..02e7376
--- /dev/null
@@ -0,0 +1,96 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_from</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_mms_findConversations_filter_from\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by from (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    returnedValue = null, findSuccess, fromFound, findError, addSuccess, addError,\r
+    serviceSuccess, service, datetime, message, messageStorage, serviceError, i;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        for (i = 0; i < conversations.length; i++) {\r
+            assert_not_equals(conversations[i].from, null, "from is null");\r
+            fromFound = conversations[i].from.indexOf(TEST_SMS_RECIPIENT);\r
+            assert_greater_than_equal(fromFound, 0, "Recipient not found");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        returnedValue = service.messageStorage.findConversations(fromFilter, findSuccess, findError);\r
+    });\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        datetime = new Date().getTime().toString();\r
+        message = new tizen.Message("messaging.mms", {\r
+            plainBody: datetime,\r
+            to: [ TEST_SMS_RECIPIENT ]\r
+        });\r
+\r
+        messageStorage = service.messageStorage;\r
+        service.messageStorage.addDraftMessage(message, addSuccess, addError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_id.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_id.html
new file mode 100755 (executable)
index 0000000..f7b20c8
--- /dev/null
@@ -0,0 +1,98 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_id</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_mms_findConversations_filter_id\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by id (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, message, addError, addSuccess,\r
+    idFilter, returnedValue = null, findError, findSuccess;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        assert_type(conversations, "array", "conversation is not an array");\r
+        assert_equals(conversations.length, 1, "Found many conversation for given id");\r
+\r
+        assert_equals(conversations[0].id, message.conversationId, "Incorrect conversation id");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        assert_type(message.conversationId, "string", "Message.conversationId is not a string");\r
+        assert_not_equals(message.conversationId, "", "Message.conversationId is empty");\r
+\r
+        idFilter = new tizen.AttributeFilter("id", "EXACTLY", message.conversationId);\r
+        returnedValue = service.messageStorage.findConversations(idFilter, findSuccess, findError);\r
+    });\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        service.messageStorage.addDraftMessage(message, addSuccess, addError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_messageCount.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_messageCount.html
new file mode 100755 (executable)
index 0000000..44d5f93
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_messageCount</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_mms_findConversations_filter_messageCount\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by messageCount (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, message, sendError, sendSuccess, messageCountFilter,\r
+    returnedValue = null, findError, findSuccess, i;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        assert_type(conversations, "array", "Not an array");\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        for(i = 0; i < conversations.length; i++) {\r
+            assert_type(conversations[i].messageCount, "unsigned long", "messageCount is not unsigned long");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        messageCountFilter = new tizen.AttributeFilter("messageCount", "EXISTS");\r
+        returnedValue = service.messageStorage.findConversations(messageCountFilter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_preview.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_preview.html
new file mode 100755 (executable)
index 0000000..40f873c
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_preview</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_mms_findConversations_filter_preview\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by preview (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, message, sendError, sendSuccess, previewFilter,\r
+    findError, findSuccess, i, returnedValue = null;\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        assert_type(conversations, "array", "Not an array");\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        for(i = 0; i < conversations.length; i++) {\r
+            assert_type(conversations[i].preview, "string", "preview is not a string");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        previewFilter = new tizen.AttributeFilter("preview", "EXISTS");\r
+        returnedValue = service.messageStorage.findConversations(previewFilter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_timestamp.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_timestamp.html
new file mode 100755 (executable)
index 0000000..910a961
--- /dev/null
@@ -0,0 +1,101 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_timestamp</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_mms_findConversations_filter_timestamp\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by timestamp (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, message, sendError, sendSuccess,\r
+    startDate, endDate, findError, findSuccess, i, timestampFilter, returnedValue = null;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        assert_type(conversations, "array", "Not an array");\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        for(i = 0; i < conversations.length; i++) {\r
+            assert_greater_than_equal(conversations[i].timestamp.getTime(), startDate.getTime(), "Incorrect date - too early");\r
+            assert_less_than_equal(conversations[i].timestamp.getTime(), endDate.getTime(), "Incorrect date - too late");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        timestampFilter = new tizen.AttributeRangeFilter("timestamp", startDate, endDate);\r
+        returnedValue = service.messageStorage.findConversations(timestampFilter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        startDate = new Date();\r
+        startDate.setHours(startDate.getHours() - 1);\r
+        endDate = new Date();\r
+        endDate.setHours(endDate.getHours() + 1);\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_to.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_to.html
new file mode 100755 (executable)
index 0000000..a857d4d
--- /dev/null
@@ -0,0 +1,108 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_to</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_mms_findConversations_filter_to\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by to (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    findSuccess, findError, serviceSuccess, messageService, sendSuccess, sendError, newMessage,\r
+    filter, serviceError, i, j, found = false;\r
+\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        for(i = 0; i < conversations.length; i++) {\r
+            for(j = 0; j < conversations[i].to.length; j++) {\r
+                if (conversations[i].to[j].indexOf(TEST_SMS_RECIPIENT) > -1) {\r
+                    found = true;\r
+                }\r
+            }\r
+            assert_true(found, "Recipient not found");\r
+            found = false;\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        messageService.messageStorage.findConversations(filter, findSuccess, findError);\r
+    });\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        newMessage = new tizen.Message(messageService.type, {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        sendMessage(t, messageService, newMessage, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_type.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_type.html
new file mode 100755 (executable)
index 0000000..170c132
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_type</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_mms_findConversations_filter_type\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by type (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceError, serviceSuccess, message, service, messageStorage, addDraftError, addDraftSuccess,\r
+    findError, findSuccess;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+        for(i = 0; i <conversations.length; i++) {\r
+            assert_equals(conversations[i].type, "messaging.mms", "Found incorrect type");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        messageStorage.findConversations(MMStypeFilter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_unreadMessages.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_unreadMessages.html
new file mode 100755 (executable)
index 0000000..27807a1
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_unreadMessages</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_mms_findConversations_filter_unreadMessages\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by unreadMessages (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    unreadMessagesFilter, serviceSuccess, serviceError, findError, findSuccess;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "Not an array");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        unreadMessagesFilter = new tizen.AttributeFilter("unreadMessages", "EXACTLY", 0);\r
+        services[0].messageStorage.findConversations(unreadMessagesFilter, findSuccess, findError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findFolders_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findFolders_exist.html
new file mode 100755 (executable)
index 0000000..5abe152
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findFolders_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findFolders_exist\r
+//==== LABEL Check if method findFolders of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("findFolders" in messageStorage, "No findFolders method in messageStorage");\r
+        check_method_exists(messageStorage, "findFolders");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages.html
new file mode 100755 (executable)
index 0000000..c34e2a9
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages\r
+//==== LABEL Check if MessageStorage.findMessages method works properly (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, j;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_true(msg.length === 1, "Received incorrect number of messages: " + msg.length);\r
+        assert_own_property(msg[0], "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg[0].id, message.id, "Id is not equal");\r
+        assert_own_property(msg[0], "to", "Name to doesn't exist in provided object.");\r
+        for(j = 0; j < msg[0].to.length; j++){\r
+            assert_equals(msg[0].to[j], message.to[j], "to is not equal");\r
+        }\r
+        assert_own_property(msg[0], "subject", "Name subject doesn't exist in provided object.");\r
+        assert_equals(msg[0].subject, message.subject, "subject is not equal");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        messageStorage.findMessages(filter, findSuccessCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_exist.html
new file mode 100755 (executable)
index 0000000..dea71bb
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_exist\r
+//==== LABEL Check if method findMessages of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("findMessages" in messageStorage, "No findMessages method in messageStorage");\r
+        check_method_exists(messageStorage, "findMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_folderId_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_folderId_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..95c75d5
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_folderId_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_folderId_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by folderId (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++){\r
+            assert_equals(msg[i].folderId, message.folderId, "returned folderId is not equal");\r
+            assert_own_property(msg[i], "folderId", "Name folderId doesn't exist in provided object.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("folderId", "EXACTLY", message.folderId);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_from_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_from_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..56296d4
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_from_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_from_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by from\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    returnedValue = null, findSuccess, findError, addSuccess, addError, serviceSuccess,\r
+    serviceError, datetime, message, i, fromFound, service, messageStorage;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (msg) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        for (i = 0; i < msg.length; i++) {\r
+            assert_not_equals(msg[i].from, null, "from is null");\r
+            fromFound = msg[i].from.indexOf(TEST_SMS_RECIPIENT);\r
+            assert_greater_than_equal(fromFound, 0, "Recipient not found");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        returnedValue = messageStorage.findMessages(fromFilter, findSuccess, findError);\r
+\r
+    });\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        datetime = tizen.time.getCurrentDateTime().toString();\r
+        message = new tizen.Message("messaging.mms", {\r
+            plainBody: datetime,\r
+            to: [ TEST_SMS_RECIPIENT ]\r
+        });\r
+\r
+        messageStorage = service.messageStorage;\r
+        service.messageStorage.addDraftMessage(message, addSuccess, addError);\r
+\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..0bebf3c
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_hasAttachment_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_hasAttachment_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by hasAttachment (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,\r
+    message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB, i;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++){\r
+            assert_own_property(msg[i], "hasAttachment", "Name hasAttachment doesn't exist in provided object.");\r
+            assert_equals(msg[i].hasAttachment, message.hasAttachment, "returned hasAttachment is not equal");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("hasAttachment", "EXACTLY", message.hasAttachment);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_id_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_id_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..5ade059
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_id_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_id_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by id (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_true(msg.length === 1, "Received incorrect number of messages: " + msg.length);\r
+        assert_own_property(msg[0], "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg[0].id, message.id, "Id is not equal");\r
+        t.done();\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_isRead_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_isRead_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..cfd5bfc
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_isRead_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_isRead_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by isRead (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++){\r
+            assert_own_property(msg[i], "isRead", "Name isRead doesn't exist in provided object.");\r
+            assert_equals(msg[i].isRead, message.isRead, "isRead is not equal");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("isRead", "EXACTLY", message.isRead);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..ead1a5a
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_plainBody_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_plainBody_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by plainBody (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, loadMessageSuccess, loadMessageError;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");\r
+\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++){\r
+            assert_equals(msg[i].body.plainBody, message.body.plainBody, "returned plainBody is not equal");\r
+            messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);\r
+        }\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", message.body.plainBody);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..a2f2934
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_timestamp_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_timestamp_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by timestamp (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, found = false;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++){\r
+            if(msg[i].id === message.id){\r
+                assert_own_property(msg[i], "timestamp", "Name timestamp doesn't exist in provided object.");\r
+                assert_equals(msg[i].timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");\r
+                found = true;\r
+            }\r
+        }\r
+        assert_true(found, "Message not found");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeRangeFilter("timestamp", new Date(message.timestamp.getTime()-2000), new Date(message.timestamp.getTime()+2000));\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_to_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_to_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..ea15966
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_to_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_to_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by to (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+//==== ONLOAD_DELAY 90\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, j, removeAllSuccess, foundRecipient = false;\r
+t.step(function () {\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++) {\r
+            assert_own_property(msg[i], "to", "Name to doesn't exist in provided object.");\r
+            assert_greater_than(msg[i].to.length, 0, "Recipient empty array");\r
+            for(j = 0; j < msg[i].to.length; j++) {\r
+                if (msg[i].to[j].indexOf(TEST_SMS_RECIPIENT) >= 0) {\r
+                    foundRecipient = true;\r
+                }\r
+            }\r
+        }\r
+        assert_true(foundRecipient, "Recipient not found");\r
+        removeAllMessages(t, messageService, removeAllSuccess);\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", message.to);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_type_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_type_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..00302b9
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_type_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_type_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by type (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,\r
+    message, addDraftSuccessCB, addDraftErrorCB, findSuccessCB, findErrorCB, i, removeAllSuccess,\r
+    addedMessageFound = 0;\r
+t.step(function () {\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_greater_than(msg.length, 0, "Received empty msg array");\r
+        for(i = 0; i < msg.length; i++){\r
+            assert_equals(msg[i].type, "messaging.mms", "returned type is not equal");\r
+            if (msg[i].id === message.id) {\r
+                addedMessageFound++;\r
+            }\r
+        }\r
+        assert_equals(addedMessageFound, 1, "Id of message added to draft was not found or found multiple times.");\r
+        removeAllMessages(t, messageService, removeAllSuccess);\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        messageStorage.findMessages(MMStypeFilter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeChangeListener_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..2cbe035
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_removeChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_removeChangeListener_exist\r
+//==== LABEL Check if method removeChangeListener of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("removeChangeListener" in messageStorage, "No removeChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "removeChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeConversations_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeConversations_exist.html
new file mode 100755 (executable)
index 0000000..546954c
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_removeConversations_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_removeConversations_exist\r
+//==== LABEL Check if method removeConversations of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("removeConversations" in messageStorage, "No removeConversations method in messageStorage");\r
+        check_method_exists(messageStorage, "removeConversations");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeMessages_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeMessages_exist.html
new file mode 100755 (executable)
index 0000000..e303b49
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_removeMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_removeMessages_exist\r
+//==== LABEL Check if method removeMessages of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("removeMessages" in messageStorage, "No removeMessages method in messageStorage");\r
+        check_method_exists(messageStorage, "removeMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages.html
new file mode 100755 (executable)
index 0000000..0197269
--- /dev/null
@@ -0,0 +1,236 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MAST MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, messageService, messageStorage,\r
+    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(),\r
+    mutableMessage, constMessage,\r
+    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },\r
+    initDictForMutableMessage = initDict, initDictForConstMessage = initDict,\r
+    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable", plainBodyToSetForConstMessage = plainBodyToSet + "_const",\r
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null,\r
+    updateSuccess, updateError, mutableMessagefilter, constMessagefilter,\r
+    findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE",\r
+    findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST",\r
+    loadMutableSuccess, loadMutableError,\r
+    loadConstSuccess, loadConstError,\r
+    testMessage, testAttachment, testAttachmentCounter = 0;\r
+t.step(function () {\r
+\r
+    testAttachment = t.step_func(function (attachment, type) {\r
+        var j, foundAttachmenentCounter = 0;\r
+        if (type === mutable) {\r
+            for (j = 0; j < mutableMessage.attachments.length; j++) {\r
+                if (attachment.id === mutableMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, mutableMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, mutableMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, mutableMessage.id, type + " attachment.messageId (with message.id)");\r
+                    assert_equals(attachment.mimeType, mutableMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else if (type === consts) {\r
+            for (j = 0; j < constMessage.attachments.length; j++) {\r
+                if (attachment.id === constMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, constMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, constMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, constMessage.id, type + " attachment.messageId - (with message.id)");\r
+                    assert_equals(attachment.mimeType, constMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else {\r
+            assert_unreached("FIX your test - unknown type = " + type);\r
+        }\r
+\r
+        testAttachmentCounter++;\r
+        if (testAttachmentCounter === mutableMessage.attachments.length + constMessage.attachments.length) {\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    testMessage = t.step_func(function (messageToTest, originalMessage, type) {\r
+        var i;\r
+        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");\r
+        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");\r
+        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");\r
+\r
+        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");\r
+        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");\r
+\r
+        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");\r
+        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");\r
+        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");\r
+        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");\r
+\r
+        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");\r
+        assert_equals(messageToTest.hasAttachment, originalMessage.hasAttachment, type + " hasAttachment attribute.");\r
+        assert_equals(messageToTest.subject, originalMessage.subject, type + " subject attribute.");\r
+        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");\r
+        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");\r
+        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {\r
+            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");\r
+        } else {\r
+            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");\r
+        }\r
+\r
+        assert_equals(messageToTest.attachments.length, originalMessage.attachments.length, type + " incorrect length of attachments");\r
+        for (i = 0; i < messageToTest.attachments.length; i++) {\r
+            if (type === mutable) {\r
+                testAttachment(messageToTest.attachments[i], mutable);\r
+            } else if (type === consts) {\r
+                testAttachment(messageToTest.attachments[i], consts);\r
+            } else {\r
+                assert_unreached("FIX your test - unknown type = " + type);\r
+            }\r
+        }\r
+    });\r
+\r
+    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {\r
+        testMessage(loadedMutableMessage, mutableMessage, mutable);\r
+    });\r
+\r
+    loadMutableError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstSuccess = t.step_func(function (loadedConstMessage) {\r
+        testMessage(loadedConstMessage, constMessage, consts);\r
+    });\r
+\r
+    loadConstError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {\r
+        assert_equals(mutableMessages.length, 1, "incorrect number of messages.");\r
+        foundMutableMessage = mutableMessages[0];\r
+        if (foundMutableMessage.body.loaded) {\r
+            testMessage(foundMutableMessage, mutableMessage, mutable);\r
+        } else {\r
+            messageService.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);\r
+        }\r
+    });\r
+\r
+    findMutableMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConstMessagesSuccess = t.step_func(function (constMessages) {\r
+        assert_equals(constMessages.length, 1, "incorrect number of messages.");\r
+        foundConstMessage = constMessages[0];\r
+        if (foundConstMessage.body.loaded) {\r
+            testMessage(foundConstMessage, constMessage, consts);\r
+        } else {\r
+            messageService.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);\r
+        }\r
+    });\r
+\r
+    findConstMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+\r
+        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);\r
+        messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);\r
+\r
+        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);\r
+        messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);\r
+    });\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.to = [TEST_SMS_RECIPIENT_2];\r
+            mutableMessage.body.plainBody = "new mutableMessage.plainBody";\r
+            mutableMessage.isRead = true;\r
+            mutableMessage.subject = "new mutableMessage.subject";\r
+            mutableMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),\r
+                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess, updateError);\r
+        }\r
+\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;\r
+        mutableMessage = new tizen.Message("messaging.mms", initDictForMutableMessage);\r
+        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;\r
+        constMessage = new tizen.Message("messaging.mms", initDictForConstMessage);\r
+        constMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"), new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..01706f3
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.updateMessages method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, addDraftSuccess, addDraftError, exceptionName, updateSuccess, incorrectCallback, conversionTable, i;\r
+t.step(function () {\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_unreached("updateMessages() success callback invoked.");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], updateSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..a18403e
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", updateSuccess, incorrectCallback;\r
+t.step(function () {\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_unreached("updateMessages() success callback invoked.");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        incorrectCallback = {\r
+            onerror: t.step_func(function (error) {\r
+                assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);\r
+            })\r
+        };\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], updateSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_exist.html
new file mode 100755 (executable)
index 0000000..9bc64e8
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_exist\r
+//==== LABEL Check if method updateMessages of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("updateMessages" in messageStorage, "No updateMessages method in messageStorage");\r
+        check_method_exists(messageStorage, "updateMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_messages_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_messages_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..6b4ff9e
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_messages_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_messages_TypeMismatch\r
+//==== LABEL Check type conversions for messages argument of MessageStorage.updateMessages method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName, updateSuccess, updateError, conversionTable, incorrectMessages, i;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        updateSuccess = t.step_func(function () {\r
+            assert_unreached("updateMessages() success callback invoked.");\r
+        });\r
+\r
+        updateError = t.step_func(function (error) {\r
+            assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+        });\r
+\r
+        conversionTable = getTypeConversionExceptions("array", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectMessages = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName}, function () {\r
+                messageStorage.updateMessages(incorrectMessages, updateSuccess, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessages);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_missarg.html
new file mode 100755 (executable)
index 0000000..25ad058
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.updateMessages (mms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            messageStorage.updateMessages();\r
+        }, exceptionName + " should be thrown - missing argument.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..ff0503d
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.updateMessages method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, addDraftSuccess, addDraftError, exceptionName, updateError, incorrectCallback, conversionTable, i;\r
+t.step(function () {\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], incorrectCallback, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..a93992f
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", updateError, incorrectCallback;\r
+t.step(function () {\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        incorrectCallback = {\r
+            onsuccess: t.step_func(function () {\r
+                assert_unreached("addDraftMessage() incorrect success callback invoked");\r
+            })\r
+        };\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], incorrectCallback, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_without_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..f1aa1e7
--- /dev/null
@@ -0,0 +1,230 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_without_errorCallback\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly without errorCallback argument (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, messageService, messageStorage,\r
+    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(),\r
+    mutableMessage, constMessage,\r
+    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },\r
+    initDictForMutableMessage = initDict, initDictForConstMessage = initDict,\r
+    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable", plainBodyToSetForConstMessage = plainBodyToSet + "_const",\r
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null,\r
+    updateSuccess, mutableMessagefilter, constMessagefilter,\r
+    findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE",\r
+    findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST",\r
+    loadMutableSuccess, loadMutableError,\r
+    loadConstSuccess, loadConstError,\r
+    testMessage, testAttachment, testAttachmentCounter = 0;\r
+t.step(function () {\r
+\r
+    testAttachment = t.step_func(function (attachment, type) {\r
+        var j, foundAttachmenentCounter = 0;\r
+        if (type === mutable) {\r
+            for (j = 0; j < mutableMessage.attachments.length; j++) {\r
+                if (attachment.id === mutableMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, mutableMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, mutableMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, mutableMessage.id, type + " attachment.messageId (with message.id)");\r
+                    assert_equals(attachment.mimeType, mutableMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else if (type === consts) {\r
+            for (j = 0; j < constMessage.attachments.length; j++) {\r
+                if (attachment.id === constMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, constMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, constMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, constMessage.id, type + " attachment.messageId - (with message.id)");\r
+                    assert_equals(attachment.mimeType, constMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else {\r
+            assert_unreached("FIX your test - unknown type = " + type);\r
+        }\r
+\r
+        testAttachmentCounter++;\r
+        if (testAttachmentCounter === mutableMessage.attachments.length + constMessage.attachments.length) {\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    testMessage = t.step_func(function (messageToTest, originalMessage, type) {\r
+        var i;\r
+        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");\r
+        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");\r
+        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");\r
+\r
+        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");\r
+        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");\r
+\r
+        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");\r
+        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");\r
+        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");\r
+        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");\r
+\r
+        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");\r
+        assert_equals(messageToTest.hasAttachment, originalMessage.hasAttachment, type + " hasAttachment attribute.");\r
+        assert_equals(messageToTest.subject, originalMessage.subject, type + " subject attribute.");\r
+        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");\r
+        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");\r
+        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {\r
+            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");\r
+        } else {\r
+            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");\r
+        }\r
+\r
+        assert_equals(messageToTest.attachments.length, originalMessage.attachments.length, type + " incorrect length of attachments");\r
+        for (i = 0; i < messageToTest.attachments.length; i++) {\r
+            if (type === mutable) {\r
+                testAttachment(messageToTest.attachments[i], mutable);\r
+            } else if (type === consts) {\r
+                testAttachment(messageToTest.attachments[i], consts);\r
+            } else {\r
+                assert_unreached("FIX your test - unknown type = " + type);\r
+            }\r
+        }\r
+    });\r
+\r
+    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {\r
+        testMessage(loadedMutableMessage, mutableMessage, mutable);\r
+    });\r
+\r
+    loadMutableError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstSuccess = t.step_func(function (loadedConstMessage) {\r
+        testMessage(loadedConstMessage, constMessage, consts);\r
+    });\r
+\r
+    loadConstError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {\r
+        assert_equals(mutableMessages.length, 1, "incorrect number of messages.");\r
+        foundMutableMessage = mutableMessages[0];\r
+        if (foundMutableMessage.body.loaded) {\r
+            testMessage(foundMutableMessage, mutableMessage, mutable);\r
+        } else {\r
+            messageService.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);\r
+        }\r
+    });\r
+\r
+    findMutableMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConstMessagesSuccess = t.step_func(function (constMessages) {\r
+        assert_equals(constMessages.length, 1, "incorrect number of messages.");\r
+        foundConstMessage = constMessages[0];\r
+        if (foundConstMessage.body.loaded) {\r
+            testMessage(foundConstMessage, constMessage, consts);\r
+        } else {\r
+            messageService.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);\r
+        }\r
+    });\r
+\r
+    findConstMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+\r
+        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);\r
+        messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);\r
+\r
+        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);\r
+        messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.to = [TEST_SMS_RECIPIENT_2];\r
+            mutableMessage.body.plainBody = "new mutableMessage.plainBody";\r
+            mutableMessage.isRead = true;\r
+            mutableMessage.subject = "new mutableMessage.subject";\r
+            mutableMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),\r
+                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;\r
+        mutableMessage = new tizen.Message("messaging.mms", initDictForMutableMessage);\r
+        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;\r
+        constMessage = new tizen.Message("messaging.mms", initDictForConstMessage);\r
+        constMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"), new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_without_successCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_without_successCallback.html
new file mode 100755 (executable)
index 0000000..4ccf916
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_without_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_without_successCallback\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly without successCallback argument (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), mutableMessage, constMessage,\r
+    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },\r
+    initDictForMutableMessage = initDict, initDictForConstMessage = initDict,\r
+    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable",\r
+    plainBodyToSetForConstMessage = plainBodyToSet + "_const",\r
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,\r
+    returnedValue = null;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.to = [TEST_SMS_RECIPIENT_2];\r
+            mutableMessage.body.plainBody = "new mutableMessage.plainBody";\r
+            mutableMessage.isRead = true;\r
+            mutableMessage.subject = "new mutableMessage.subject";\r
+            mutableMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),\r
+                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg")];\r
+            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage]);\r
+            assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty messaging array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;\r
+        mutableMessage = new tizen.Message("messaging.mms", initDictForMutableMessage);\r
+        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;\r
+        constMessage = new tizen.Message("messaging.mms", initDictForConstMessage);\r
+        constMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"), new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg")];\r
+        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_notexist.html
new file mode 100755 (executable)
index 0000000..c0b9399
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageStorage exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA NIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageStorage");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener.html
new file mode 100755 (executable)
index 0000000..aaad9ad
--- /dev/null
@@ -0,0 +1,105 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageStorage_removeChangeListener\r
+//==== LABEL Check if MessageStorage.removeChangeListener method works properly\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message1, message2, listenerId, i,\r
+    addDraftSuccess, addDraftError, messageChangeCallback, returnedValue = null;\r
+\r
+t.step(function () {\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            if (listenerId !== null){\r
+                service.messageStorage.removeChangeListener(listenerId);\r
+            }\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    messageChangeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array");\r
+            assert_greater_than(addedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < addedMessages.length; i++) {\r
+                if (addedMessages[i].id === message1.id) {\r
+                    returnedValue = service.messageStorage.removeChangeListener(listenerId);\r
+                    assert_equals(returnedValue, undefined, "Incorrect value returned.");\r
+                    listenerId = null;\r
+\r
+                    service.messageStorage.addDraftMessage(message2, addDraftSuccess, addDraftError);\r
+                }\r
+                assert_not_equals(addedMessages[i].id, message2.id, "second message is added");\r
+            }\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        listenerId = service.messageStorage.addMessagesChangeListener(messageChangeCallback);\r
+\r
+        message1 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        message2 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message1, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..b2707c8
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeChangeListener_exist\r
+//==== LABEL Check if method removeChangeListener in MessageStorage\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        assert_true("removeChangeListener" in services[0].messageStorage, "Messaging.MessageStorage.removeChangeListener method does not exist");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forconversations.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forconversations.html
new file mode 100755 (executable)
index 0000000..8fbfdec
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_forconversations</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeChangeListener_forconversations\r
+//==== LABEL Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+      listenerId, listener, serviceSuccess, serviceError, service;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        conversationsupdated: t.step_func(function (conversations) {\r
+        }),\r
+        conversationsadded: t.step_func(function (conversations) {\r
+        }),\r
+        conversationsremoved: t.step_func(function (conversations) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);\r
+        service.messageStorage.removeChangeListener(listenerId);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forconversations_email.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forconversations_email.html
new file mode 100755 (executable)
index 0000000..e0d39f1
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_forconversations_email</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeChangeListener_forconversations_email\r
+//==== LABEL Check if MessageStorage::removeChangeListener method works properly - for conversation listener (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+      listenerId, listener, serviceSuccess, serviceError, service, returnValue;\r
+\r
+t.step(function () {\r
+\r
+    listener = {\r
+        conversationsupdated: t.step_func(function (conversations) {\r
+        }),\r
+        conversationsadded: t.step_func(function (conversations) {\r
+        }),\r
+        conversationsremoved: t.step_func(function (conversations) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);\r
+        returnValue = service.messageStorage.removeChangeListener(listenerId);\r
+        assert_equals(returnValue, undefined, "Incorrect returned value.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forfolder.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forfolder.html
new file mode 100755 (executable)
index 0000000..ff0c0ea
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!---->\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_forfolder</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeChangeListener_forfolder\r
+//==== LABEL Check if removeChangeListener method removes listener added by addFoldersChangeListener method\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    listener, serviceSuccess, serviceError, listenerId, service;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        foldersupdated: t.step_func(function (folders) {\r
+        }),\r
+        foldersadded: t.step_func(function (folders) {\r
+        }),\r
+        foldersremoved: t.step_func(function (folders) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addFoldersChangeListener(listener);\r
+        service.messageStorage.removeChangeListener(listenerId);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forfolder_email.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forfolder_email.html
new file mode 100755 (executable)
index 0000000..e908102
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_forfolder_email</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeChangeListener_forfolder_email\r
+//==== LABEL Check if removeChangeListener method removes listener added by addFoldersChangeListener method(email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    listener, serviceSuccess, serviceError, listenerId, service, returnValue;\r
+\r
+t.step(function () {\r
+\r
+    listener = {\r
+        foldersupdated: t.step_func(function (folders) {\r
+        }),\r
+        foldersadded: t.step_func(function (folders) {\r
+        }),\r
+        foldersremoved: t.step_func(function (folders) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addFoldersChangeListener(listener);\r
+        returnValue = service.messageStorage.removeChangeListener(listenerId);\r
+        assert_equals(returnValue, undefined, "Incorrect returned value.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_formessages.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_formessages.html
new file mode 100755 (executable)
index 0000000..2f5ac2b
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_formessages</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeChangeListener_formessages\r
+//==== LABEL Check if removeChangeListener method removes listener added by addMessagesChangeListener method\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    listenerId, listener, serviceSuccess, serviceError, service;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesupdated: t.step_func(function (messages) {\r
+        }),\r
+        messagesadded: t.step_func(function (messages) {\r
+        }),\r
+        messagesremoved: t.step_func(function (messages) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addMessagesChangeListener(listener);\r
+        service.messageStorage.removeChangeListener(listenerId);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_valid_argument.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_valid_argument.html
new file mode 100755 (executable)
index 0000000..9310fe0
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_valid_argument</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeChangeListener_valid_argument\r
+//==== LABEL Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    listenerId, service, serviceSuccess, serviceError, listener;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        foldersadded: function (folders) {\r
+        },\r
+        foldersupdated: function (folders) {\r
+        },\r
+        foldersremoved: function (folders) {\r
+        }\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addFoldersChangeListener(listener);\r
+        service.messageStorage.removeChangeListener(listenerId);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_with_watchId.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_with_watchId.html
new file mode 100755 (executable)
index 0000000..7fc0b43
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_with_watchId</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_removeChangeListener_with_watchId\r
+//==== LABEL Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess, foldersChangeCallback, watchId;\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(),\r
+        foldersadded: t.step_func(),\r
+        foldersremoved: t.step_func()\r
+    };\r
+\r
+    onSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "type of services is not Array");\r
+        if (services.length > 0) {\r
+            service = services[0];\r
+            watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback);\r
+            service.messageStorage.removeChangeListener(watchId);\r
+        } else {\r
+            assert_unreached("list of services is empty");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", onSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations.html
new file mode 100755 (executable)
index 0000000..8a5af81
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations\r
+//==== LABEL Check if MessageStorage.removeConversations method works properly\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), returnedValue = null;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    returnedValue = service.messageStorage.removeConversations([conversation]);\r
+    assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_null.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_null.html
new file mode 100755 (executable)
index 0000000..8ddefee
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_removeConversations_arg_null</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_removeConversations_arg_null\r
+//==== LABEL Check MessageStorage.removeConversations method when conversations argument is null (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, removeError, removeSuccess, service;\r
+t.step(function () {\r
+\r
+    removeSuccess = t.step_func(function () {\r
+        assert_unreached("removeConversations() success callback invoked.");\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.removeConversations(null, removeSuccess, removeError);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_undefined.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_undefined.html
new file mode 100755 (executable)
index 0000000..af7d2cd
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_removeConversations_arg_undefined</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_removeConversations_arg_undefined\r
+//==== LABEL Check MessageStorage.removeConversations method when conversations argument is undefined (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, removeError, removeSuccess, service;\r
+t.step(function () {\r
+\r
+    removeSuccess = t.step_func(function () {\r
+        assert_unreached("removeConversations() success callback invoked");\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.removeConversations(undefined, removeSuccess, removeError);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_conversations_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_conversations_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..c71bbc3
--- /dev/null
@@ -0,0 +1,60 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_conversations_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_conversations_TypeMismatch\r
+//==== LABEL Check type conversions for conversations argument of MessageStorage.removeConversations method\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), conversionTable, i,\r
+    exceptionName, conversations;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    conversionTable = getTypeConversionExceptions("array", false);\r
+    for (i = 0; i < conversionTable.length; i++) {\r
+        conversations = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName}, function () {\r
+            service.messageStorage.removeConversations(conversations);\r
+        }, "Given incorrect conversations");\r
+    }\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_conversations_number.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_conversations_number.html
new file mode 100755 (executable)
index 0000000..275ac09
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_removeConversations_conversations_number</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_removeConversations_conversations_number\r
+//==== LABEL Check MessageStorage.removeConversations method when conversations argument is a number (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, removeError, removeSuccess, service;\r
+t.step(function () {\r
+    removeSuccess = t.step_func(function () {\r
+        assert_unreached("removeConversations() success callback invoked");\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.removeConversations(1, removeSuccess, removeError);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..1cc5ae3
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_errorCallback_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.removeConversations method\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    conversionTable, successCallback, incorrectErrorCallback, exceptionName;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+\r
+    successCallback = t.step_func(function () {\r
+        assert_unreached("removeConversations() success callback invoked.");\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("functionObject", true);\r
+    for (i = 0; i < conversionTable.length; i++) {\r
+        incorrectErrorCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName}, function () {\r
+            service.messageStorage.removeConversations([conversation], successCallback, incorrectErrorCallback);\r
+        }, exceptionName + " should be thrown - given incorrect error callback.");\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..b56c493
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_errorCallback_invalid_cb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.removeConversations method throws exception when errorCallback is invalid\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    successCallback, errorCallback;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+\r
+    successCallback = t.step_func(function () {\r
+        assert_unreached("removeConversations() success callback invoked.");\r
+    });\r
+\r
+    errorCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("removeConversations() error callback invoked.");\r
+        })\r
+    };\r
+\r
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+        service.messageStorage.removeConversations([conversation], successCallback, errorCallback);\r
+    }, "TypeMismatchError should be thrown - given incorrect error callback.");\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_foremail.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_foremail.html
new file mode 100755 (executable)
index 0000000..afbd89c
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_foremail</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageStorage_removeConversations_foremail\r
+//==== PRIORITY P1\r
+//==== LABEL Check if MessageStorage.removeConversations method works properly (email)\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t =async_test(document.title, {timeout: 90000}), returnedValue;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    returnedValue = service.messageStorage.removeConversations([conversation]);\r
+    assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_formms.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_formms.html
new file mode 100755 (executable)
index 0000000..a96b453
--- /dev/null
@@ -0,0 +1,108 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_formms</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageStorage_removeConversations_formms\r
+//==== PRIORITY P1\r
+//==== LABEL Check if MessageStorage.removeConversations works properly for mms\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, message, removeConversationsSuccess, removeConversationsError,\r
+    findConversationsSuccess, findConversationsError, messageSentSuccess, messageSentError,\r
+    serviceSuccess, serviceError, removeAllSuccess, returnedValue = null;\r
+\r
+t.step(function () {\r
+    removeConversationsSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    removeConversationsError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        returnedValue = service.messageStorage.removeConversations(conversations, removeConversationsSuccess, removeConversationsError);\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    messageSentSuccess = t.step_func(function (recipients) {\r
+        service.messageStorage.findConversations(MMStypeFilter, findConversationsSuccess, findConversationsError);\r
+    });\r
+\r
+    messageSentError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, service, message, messageSentSuccess, messageSentError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_forsms.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_forsms.html
new file mode 100755 (executable)
index 0000000..6d2a9fc
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_forsms</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_forsms\r
+//==== LABEL Check if MessageStorage.removeConversations method works properly with all callbacks (sms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, serviceError, serviceSuccess, filter, findError, findSuccess, removeError, removeSuccess,\r
+    onSuccess;\r
+\r
+t.step(function () {\r
+    removeSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        service.messageStorage.removeConversations(conversations, removeSuccess, removeError);\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    onSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        service.messageStorage.findConversations(filter, findSuccess, findError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, onSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_invalid_arg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_invalid_arg.html
new file mode 100755 (executable)
index 0000000..2079e11
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_invalid_arg</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_removeConversations_invalid_arg\r
+//==== LABEL Check MessageStorage.removeConversations method when conversations argument is invalid (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess;\r
+t.step(function () {\r
+\r
+    onSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "type of services is not Array");\r
+        if (services.length > 0) {\r
+            service = services[0];\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                service.messageStorage.removeConversations("sth");\r
+            });\r
+        } else {\r
+            assert_unreached("list of services is empty");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", onSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_missarg.html
new file mode 100755 (executable)
index 0000000..fa76c9b
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_missarg</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.removeConversations\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+        service.messageStorage.removeConversations();\r
+    });\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_missarg_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_missarg_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..334ad6d
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_missarg_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_removeConversations_missarg_TypeMismatch\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.removeConversations (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess;\r
+t.step(function () {\r
+\r
+    onSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "type of services is not Array");\r
+        if (services.length > 0) {\r
+            service = services[0];\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                service.messageStorage.removeConversations();\r
+            });\r
+        } else {\r
+            assert_unreached("list of services is empty");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", onSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_sms.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_sms.html
new file mode 100755 (executable)
index 0000000..e886311
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_sms</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_sms\r
+//==== PRIORITY P1\r
+//==== LABEL Check if MessageStorage.removeConversations method works properly (sms)\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, msg, filter, removeSuccess, removeError, findSuccess, findError,\r
+    sendSuccess, serviceSuccess, serviceError, sendError;\r
+\r
+t.step(function () {\r
+    removeSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        service.messageStorage.removeConversations(conversations, removeSuccess, removeError);\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        service.messageStorage.findConversations(filter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        msg = new tizen.Message("messaging.sms", {plainBody: "test.", to: [TEST_SMS_RECIPIENT]});\r
+        sendMessage(t, service, msg, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..fe02791
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_successCallback_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.removeConversations method\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    conversionTable, incorrectCallback, exceptionName, i;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    conversionTable = getTypeConversionExceptions("functionObject", true);\r
+    for (i = 0; i < conversionTable.length; i++) {\r
+        incorrectCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName}, function () {\r
+            service.messageStorage.removeConversations([conversation], incorrectCallback);\r
+        }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..de0a211
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_successCallback_invalid_cb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.removeConversations method throws exception when successCallback is invalid\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    incorrectSuccessCallback, exceptionName = "TypeMismatchError";\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+\r
+    incorrectSuccessCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("removeConversations() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    assert_throws({name: exceptionName}, function () {\r
+        service.messageStorage.removeConversations([conversation], incorrectSuccessCallback);\r
+    }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_number.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_number.html
new file mode 100755 (executable)
index 0000000..d6de148
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_removeConversations_successCallback_number</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_removeConversations_successCallback_number\r
+//==== LABEL Check MessageStorage.removeConversations method when successCallback is a number (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, toFilter, sortMode, limit,\r
+    findConversationsSuccess, findConversationsError, foundConversation, sendSuccess, sendError, newMessage,\r
+    removeError, service;\r
+t.step(function () {\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "no conversations found");\r
+        foundConversation = conversations[0];\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.removeConversations(foundConversation, 1, removeError);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        sortMode = new tizen.SortMode("to", "ASC");\r
+        limit = 10;\r
+        service.messageStorage.findConversations(toFilter, findConversationsSuccess, findConversationsError, sortMode, limit);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        newMessage = new tizen.Message(service.type, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "[Test][findConversations] " + (new Date()).toString()\r
+        });\r
+\r
+        sendMessage(t, service, newMessage, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..3b6464a
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_with_errorCallback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_with_errorCallback\r
+//==== LABEL Check if MessageStorage.removeConversations method works properly with errorCallback argument\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    removeSuccess, removeError, returnedValue = null, findFilter, findSuccessAfterRemove, findErrorAfterRemove;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+\r
+    findSuccessAfterRemove = t.step_func(function (conversations) {\r
+        assert_equals(conversations.length, 0, "Conversations not removed");\r
+        t.done();\r
+    });\r
+\r
+    findErrorAfterRemove = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+\r
+        findFilter = new tizen.AttributeFilter("id", "EXACTLY", message.conversationId);\r
+        service.messageStorage.findConversations(findFilter, findSuccessAfterRemove, findErrorAfterRemove);\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    returnedValue = service.messageStorage.removeConversations([conversation], removeSuccess, removeError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_with_successCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_with_successCallback.html
new file mode 100755 (executable)
index 0000000..ccbfee5
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_with_successCallback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_with_successCallback\r
+//==== LABEL Check if MessageStorage.removeConversations method works properly with successCallback argument\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    removeSuccess, returnedValue = null;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+\r
+    removeSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    returnedValue = service.messageStorage.removeConversations([conversation], removeSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessage_emailwithouterrcb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessage_emailwithouterrcb.html
new file mode 100755 (executable)
index 0000000..dc2ce74
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessage_emailwithouterrcb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeMessage_emailwithouterrcb\r
+//==== LABEL Check if MessageStorage.removeMessages method works properly without errorCallback\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError, filter,\r
+    findSuccess, findError, removeSuccess;\r
+\r
+t.step(function () {\r
+    removeSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+\r
+        service.messageStorage.removeMessages(messages, removeSuccess);\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email.html
new file mode 100755 (executable)
index 0000000..a44cd8f
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email\r
+//==== LABEL Check if MessageStorage.removeMessages method works properly without non-optional arguments (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, returnedValue = null,\r
+    addDraftSuccess, addDraftError;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        returnedValue = service.messageStorage.removeMessages([message]);\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..ce61ffb
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.removeMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    successCallback, conversionTable, param, exceptionName, i;\r
+\r
+t.step(function () {\r
+    successCallback = t.step_func(function () {\r
+        assert_unreached("Invalid errorCallback invoked");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            param = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.removeMessages([message], successCallback, param);\r
+            }, exceptionName + " should be thrown - given incorrect.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..9bd34f3
--- /dev/null
@@ -0,0 +1,87 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.removeMessages method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    successCallback, incorrectCallback;\r
+\r
+t.step(function () {\r
+    successCallback = t.step_func(function () {\r
+        assert_unreached("Invalid errorCallback invoked");\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("Invalid errorCallback invoked");\r
+        })\r
+    };\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.removeMessages([message], successCallback, incorrectCallback);\r
+        }, "Incorrect error callback.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_messages_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_messages_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..f7f3e56
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_messages_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_messages_TypeMismatch\r
+//==== LABEL Check type conversions for messages argument of MessageStorage.removeMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    conversionTable, param, exceptionName, i;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("array", false);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            param = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.removeMessages(param);\r
+            }, exceptionName + " should be thrown - given incorrect.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_missarg.html
new file mode 100755 (executable)
index 0000000..7f57cea
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.removeMessages (email)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.removeMessages();\r
+        }, "Missing argument.");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..7fb0114
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.removeMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    conversionTable, param, exceptionName, i;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            param = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.removeMessages([message], param);\r
+            }, exceptionName + " should be thrown - given incorrect.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..686556b
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.removeMessages method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    incorrectCallback;\r
+\r
+t.step(function () {\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("Invalid errorCallback invoked");\r
+        })\r
+    };\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.removeMessages([message], incorrectCallback);\r
+        }, "Given incorrect success callback.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..3b1fc32
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_with_errorCallback\r
+//==== LABEL Check if MessageStorage.removeMessages method works properly with errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, returnedValue = null,\r
+    addDraftSuccess, addDraftError, removeError, removeSuccess,\r
+    filter, findSuccess, findError, addedMessageId;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 0, "Message not removed");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", addedMessageId);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addedMessageId = message.id;\r
+        returnedValue = service.messageStorage.removeMessages([message], removeSuccess, removeError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_with_successCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_with_successCallback.html
new file mode 100755 (executable)
index 0000000..739932e
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_with_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_with_successCallback\r
+//==== LABEL Check if MessageStorage.removeMessages method works properly with successCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, returnedValue = null,\r
+    addDraftSuccess, addDraftError, removeSuccess, filter, findSuccess, findError, addedMessageId;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 0, "Message not removed");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", addedMessageId);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addedMessageId = message.id;\r
+        returnedValue = service.messageStorage.removeMessages([message], removeSuccess);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..946a071
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch\r
+//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectChangeListener, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectChangeListener  = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addConversationsChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..334997f
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTL\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectListeners, i, exceptionName, incorrectChangeListener;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        incorrectListeners = getListenerConversionExceptions(["conversationsadded", "conversationsupdated", "conversationsremoved"]);\r
+        for(i = 0; i < incorrectListeners.length; i++) {\r
+            incorrectChangeListener = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addConversationsChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..a7de2e9
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addConversationsChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addConversationsChangeListener_exist\r
+//==== LABEL Check if method addConversationsChangeListener of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addConversationsChangeListener" in messageStorage, "No addConversationsChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "addConversationsChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage.html
new file mode 100755 (executable)
index 0000000..4ce191d
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), returnedValue = null,\r
+    addDraftSuccess, addDraftError, filter, findMessagesSuccess, findMessagesError;\r
+t.step(function () {\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Received incorrect number of messages");\r
+        assert_equals(messages[0].body.plainBody, plainBodyToSet, "plainBody attribute is incorrect.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+        filter = new tizen.AttributeFilter("body.plainBody", "EXACTLY", plainBodyToSet);\r
+        messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});\r
+        returnedValue = messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..4d1f950
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, plainBodyToSet = "plainBody", addDraftSuccess, conversionTable, i, exceptionName, incorrectCallback;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage() success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet});\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..96958f2
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, plainBodyToSet = "plainBody", addDraftSuccess, incorrectCallback, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage() success callback invoked.");\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet});\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_exist.html
new file mode 100755 (executable)
index 0000000..e22163a
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_exist\r
+//==== LABEL Check if method addDraftMessage of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addDraftMessage" in messageStorage, "No addDraftMessage method in messageStorage");\r
+        check_method_exists(messageStorage, "addDraftMessage");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..048a6ec
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_message_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_message_TypeMismatch\r
+//==== LABEL Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectMessage, conversionTable, i, exceptionName, addDraftSuccess, addDraftError;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage success callback invoked.");\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectMessage = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addDraftMessage(incorrectMessage, addDraftSuccess, addDraftError);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessage);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..9a4619f
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_message_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_message_invalid_obj\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    fakeMessage, exceptionName = "TypeMismatchError", addDraftSuccess, addDraftError;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage success callback invoked.");\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        fakeMessage = {\r
+            id: "123456",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.sms",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [ TEST_SMS_RECIPIENT ],\r
+            body: {\r
+                messageId: "123456",\r
+                loaded: true,\r
+                plainBody: "Sample content"\r
+            },\r
+            isRead: false,\r
+            inResponseTo: null,\r
+            messageStatus: ""\r
+        };\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            messageStorage.addDraftMessage(fakeMessage, addDraftSuccess, addDraftError);\r
+        }, exceptionName + " should be thrown - given incorrect Message");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_missarg.html
new file mode 100755 (executable)
index 0000000..f3891ee
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage();\r
+            }, exceptionName + " should be thrown - missing argument");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..d1fcfed
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, plainBodyToSet = "plainBody", incorrectCallback, addDraftError, conversionTable, exceptionName, i;\r
+t.step(function () {\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet});\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);\r
+            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..eb0331c
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, plainBodyToSet = "plainBody", incorrectCallback, addDraftError, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet});\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);\r
+            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..0c06546
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_without_errorCallback\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), returnedValue = null,\r
+    addDraftSuccess, filter, findMessagesSuccess, findMessagesError;\r
+t.step(function () {\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Received incorrect number of messages");\r
+        assert_equals(messages[0].body.plainBody, plainBodyToSet, "plainBody attribute is incorrect.");\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("body.plainBody", "EXACTLY", plainBodyToSet);\r
+        messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});\r
+        returnedValue = messageStorage.addDraftMessage(message, addDraftSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_successCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_successCallback.html
new file mode 100755 (executable)
index 0000000..a80d943
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_without_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_without_successCallback\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, returnedValue = null;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        returnedValue = messageStorage.addDraftMessage(message);\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..66c6bf0
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addFoldersChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addFoldersChangeListener_exist\r
+//==== LABEL Check if method addFoldersChangeListener of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addFoldersChangeListener" in messageStorage, "No addFoldersChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "addFoldersChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..6089b85
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTL\r
+\r
+setup({timeout: 300000});\r
+\r
+var t = async_test(document.title, {timeout: 300000}), serviceSuccess, serviceError, messageService, messageStorage, \r
+    incorrectListeners, i, incorrectChangeListener, exceptionName;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        incorrectListeners = getListenerConversionExceptions(["conversationsadded", "conversationsupdated", "conversationsremoved"]);\r
+        for(i = 0; i < incorrectListeners.length; i++) {\r
+            incorrectChangeListener = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addConversationsChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+       assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..d7814ab
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addMessagesChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addMessagesChangeListener_exist\r
+//==== LABEL Check if method addMessagesChangeListener of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addMessagesChangeListener" in messageStorage, "No addMessagesChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "addMessagesChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..028b02c
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    changeCallback, conversionTable, incorrectFilter, exceptionName, i;\r
+t.step(function () {\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("memssagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectFilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName}, function () {\r
+                messageStorage.addMessagesChangeListener(changeCallback, incorrectFilter);\r
+            }, exceptionName + " should be thrown - given incorrect filter: " + incorrectFilter);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..e4930b3
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch\r
+//==== LABEL Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectChangeListener, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectChangeListener  = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addMessagesChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..7bdc83a
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTL\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectListeners, incorrectChangeListener, exceptionName, i;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        incorrectListeners = getListenerConversionExceptions(["messagesadded", "messagesupdated", "messagesremoved"]);\r
+        for(i = 0; i < incorrectListeners.length; i++) {\r
+            incorrectChangeListener = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addMessagesChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_missarg.html
new file mode 100755 (executable)
index 0000000..9e0dce1
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addMessagesChangeListener_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addMessagesChangeListener_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addMessagesChangeListener();\r
+            }, exceptionName + " should be thrown - missing argument.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_with_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_with_filter.html
new file mode 100755 (executable)
index 0000000..01174b3
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addMessagesChangeListener_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addMessagesChangeListener_with_filter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),\r
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),\r
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),\r
+    smsMessageInitDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },\r
+    matchInitDict = smsMessageInitDict, mismatchInitDict = smsMessageInitDict,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, loadSuccess, loadError;\r
+t.step(function () {\r
+\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);\r
+            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+        assert_type(subscriptionIdentifier, "long", "Incorrect returned value.");\r
+\r
+        mismatchInitDict.plainBody = mismatchPlainBodyToSet;\r
+        mismatchMessage = new tizen.Message("messaging.sms", mismatchInitDict);\r
+        messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);\r
+\r
+        matchInitDict.plainBody = matchPlainBodyToSet;\r
+        matchMessage = new tizen.Message("messaging.sms", matchInitDict);\r
+        messageStorage.addDraftMessage(matchMessage, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_without_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_without_filter.html
new file mode 100755 (executable)
index 0000000..34f85b2
--- /dev/null
@@ -0,0 +1,111 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addMessagesChangeListener_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addMessagesChangeListener_without_filter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MMINA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, message, changeCallback, addDraftError, loadSuccess, loadError, plainBody;\r
+t.step(function () {\r
+\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, plainBody, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, message.id, "Incorrect id.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);\r
+            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+        assert_type(subscriptionIdentifier, "long", "Incorrect returned value.");\r
+\r
+        plainBody = generatePlainBody();\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: plainBody\r
+        });\r
+        messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_extend.html
new file mode 100755 (executable)
index 0000000..e170a47
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageStorage (SMS) can be extended with new property\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        check_extensibility(messageStorage);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations.html
new file mode 100755 (executable)
index 0000000..57ca491
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations\r
+//==== LABEL Check if MessageStorage.findConversations method works properly (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError,\r
+    addSuccess, addError,\r
+    conversationSuccess, conversationError,\r
+    service, newMessage, filter, returnedValue = null, removeAllSuccess;\r
+t.step(function () {\r
+\r
+    conversationSuccess = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "conversations");\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+        assert_equals(returnedValue, undefined, "findConversations should return undefined");\r
+        t.done();\r
+    });\r
+\r
+    conversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", newMessage.conversationId);\r
+\r
+        returnedValue = service.messageStorage.findConversations(filter, conversationSuccess, conversationError);\r
+    });\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        newMessage = new tizen.Message(service.type, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "[Test][findConversations] " + (new Date()).toString()\r
+        });\r
+\r
+        service.messageStorage.addDraftMessage(newMessage, addSuccess, addError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..4ce60b2
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectCallback, conversionTable, exceptionName;\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({\r
+                name: exceptionName\r
+            }, function () {\r
+                services[0].messageStorage.findConversations(toFilter, findConversationsCallback, incorrectCallback);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..4fa03d0
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, getMessagingServicesCallback,\r
+    onError, invalidCallback, conversionTable;\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    invalidCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("Unexpected onerror");\r
+        })\r
+    };\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(toFilter, findConversationsCallback, invalidCallback);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_exist.html
new file mode 100755 (executable)
index 0000000..8888226
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findConversations_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findConversations_exist\r
+//==== LABEL Check if method findConversations of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("findConversations" in messageStorage, "No findConversations method in messageStorage");\r
+        check_method_exists(messageStorage, "findConversations");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (e) {\r
+        assert_unreached("getMessageServices() error callback: name:" + e.name + ", msg:" + e.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..909778f
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.findConversations method (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectFilter, conversionTable, exceptionName;\r
+t.step(function () {\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_not_equals(services.length, 0, "getMessageServices services.length");\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectFilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                services[0].messageStorage.findConversations(incorrectFilter, findConversationsCallback, errorCallback);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_id.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_id.html
new file mode 100755 (executable)
index 0000000..b680099
--- /dev/null
@@ -0,0 +1,114 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_id</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_filter_id\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by id (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, returnedValue = null,\r
+    addDraftSuccess, addDraftError,\r
+    findMessageSuccess, findMessageError,\r
+    conversationSuccess, conversationError,\r
+    service, newMessage, convId, filter,\r
+    recipient = TEST_SMS_RECIPIENT;\r
+t.step(function () {\r
+\r
+    conversationSuccess = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "conversations is not an array");\r
+        assert_equals(conversations.length, 1, "should find exactly one conversation");\r
+        assert_equals(conversations[0].id, convId, "conversationId should match");\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    conversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Should find exactly one message");\r
+        convId = messages[0].conversationId;\r
+\r
+        filter = new tizen.AttributeFilter(\r
+            "id", "EXACTLY", convId);\r
+        returnedValue = service.messageStorage.findConversations(filter, conversationSuccess, conversationError);\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        service.messageStorage.findMessages(\r
+            new tizen.AttributeFilter("id", "EXACTLY", newMessage.id),\r
+            findMessageSuccess,\r
+            findMessageError\r
+        );\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        newMessage = new tizen.Message(service.type, {\r
+            to: [recipient],\r
+            plainBody: "[Test][findConversations] " + (new Date()).toString()\r
+        });\r
+\r
+        service.messageStorage.addDraftMessage(newMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_invalid_obj.html
new file mode 100755 (executable)
index 0000000..8d04d78
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_invalid_obj</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_filter_invalid_obj\r
+//==== LABEL Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, invalidFilter;\r
+t.step(function () {\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_not_equals(services.length, 0, "getMessageServices services.length");\r
+\r
+        invalidFilter = {\r
+            attributeName: "type",\r
+            matchFlag: "EXACTLY",\r
+            matchValue: services[0].type\r
+        };\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(invalidFilter, findConversationsCallback, errorCallback);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to.html
new file mode 100755 (executable)
index 0000000..94fe837
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_to</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_filter_to\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by to (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, returnedValue = null, sendSuccess,\r
+    sendError, conversationSuccess, conversationError, service, newMessage, filter, recipient = TEST_SMS_RECIPIENT;\r
+t.step(function () {\r
+\r
+    conversationSuccess = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "conversations");\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        assert_not_equals(conversations[0].to[0].indexOf(TEST_SMS_RECIPIENT), -1,\r
+            "conversation.to should contain the value we were looking for");\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    conversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", recipient);\r
+\r
+        returnedValue = service.messageStorage.findConversations(filter, conversationSuccess, conversationError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        newMessage = new tizen.Message(service.type, {\r
+            to: [recipient],\r
+            plainBody: "[Test][findConversations] " + (new Date()).toString()\r
+        });\r
+\r
+        service.sendMessage(newMessage, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_endswith.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_endswith.html
new file mode 100755 (executable)
index 0000000..ceb79a4
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_to_endswith</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findConversations_filter_to_endswith\r
+//==== LABEL Check if MessageStorage::findConversations method works properly with filter: to endswith.\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError,\r
+    addDraftSuccess, addDraftError,\r
+    conversationSuccess, conversationError,\r
+    service, newMessage, filter, sortMode, removeAllSuccess;\r
+\r
+t.step(function () {\r
+\r
+    conversationSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        t.done();\r
+    });\r
+\r
+    conversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "ENDSWITH", "0086");\r
+        sortMode = new tizen.SortMode("to", "ASC");\r
+        try {\r
+            service.messageStorage.findConversations(filter, conversationSuccess, conversationError, sortMode);\r
+        } catch (e) {\r
+            assert_unreached("findConversations() error callback: name:" + e.name + ", msg:" + e.message);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        newMessage = new tizen.Message(service.type, {\r
+            plainBody: "I will arrive in 10 minutes.",\r
+            to: [ "+18606666666", "+18608888888", "+10086"]\r
+        });\r
+        service.messageStorage.addDraftMessage(newMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_exist.html
new file mode 100755 (executable)
index 0000000..b4c5d53
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_to_exist</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findConversations_filter_to_exist\r
+//==== LABEL Check if MessageStorage::findConversations method works properly with filter: to exist.\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError,\r
+    addDraftSuccess, addDraftError,\r
+    conversationSuccess, conversationError,\r
+    service, newMessage, filter, sortMode, removeAllSuccess;\r
+\r
+t.step(function () {\r
+\r
+    conversationSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        t.done();\r
+    });\r
+\r
+    conversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "EXISTS", "008");\r
+        sortMode = new tizen.SortMode("to", "ASC");\r
+        service.messageStorage.findConversations(filter, conversationSuccess, conversationError, sortMode);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        newMessage = new tizen.Message(service.type, {\r
+            plainBody: "I will arrive in 10 minutes.",\r
+            to: [ "+18606666666", "+18608888888", "+10086"]\r
+        });\r
+        service.messageStorage.addDraftMessage(newMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_startswith.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_startswith.html
new file mode 100755 (executable)
index 0000000..b54cda2
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_to_startswith</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findConversations_filter_to_startswith\r
+//==== LABEL Check if MessageStorage::findConversations method works properly with filter: to startswith.\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError,\r
+    addDraftSuccess, addDraftError,\r
+    conversationSuccess, conversationError,\r
+    service, newMessage, filter, sortMode, removeAllSuccess;\r
+t.step(function () {\r
+\r
+    conversationSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        t.done();\r
+    });\r
+\r
+    conversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "STARTSWITH", "+1008");\r
+        sortMode = new tizen.SortMode("to", "ASC");\r
+        try {\r
+            service.messageStorage.findConversations(filter, conversationSuccess, conversationError, sortMode);\r
+        } catch (e) {\r
+            assert_unreached("findConversations() error callback: name:" + e.name + ", msg:" + e.message);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        newMessage = new tizen.Message(service.type, {\r
+            plainBody: "I will arrive in 10 minutes.",\r
+            to: [ "+18606666666", "+18608888888", "+10086"]\r
+        });\r
+        service.messageStorage.addDraftMessage(newMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_type.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_type.html
new file mode 100755 (executable)
index 0000000..637f5b5
--- /dev/null
@@ -0,0 +1,104 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_type</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_filter_type\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by type (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, returnedValue = null, sendSuccess,\r
+    sendError, resendError, conversationSuccess, conversationError, i, service, filter, newMessage;\r
+t.step(function () {\r
+\r
+    conversationSuccess = t.step_func(function (conversations) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        assert_type(conversations, "array", "conversations");\r
+        assert_not_equals(conversations.length, 0,\r
+            "Converation of type " + service.type + " not found. Please prepare it.");\r
+        for (i = 0; i < conversations.length; i++) {\r
+            assert_equals(conversations[i].type, service.type, "conversation.type should match");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    conversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    resendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);\r
+\r
+        returnedValue = service.messageStorage.findConversations(filter, conversationSuccess, conversationError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        setTimeout(\r
+            t.step_func(function () {\r
+                service.sendMessage(newMessage, sendSuccess, resendError);\r
+            }, 10000));\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        newMessage = new tizen.Message(service.type, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "[Test][findConversations] " + (new Date()).toString()\r
+        });\r
+\r
+        service.sendMessage(newMessage, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_missarg.html
new file mode 100755 (executable)
index 0000000..3ea23b9
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findConversations_missarg</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.findConversations (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess, filter;\r
+t.step(function () {\r
+\r
+    filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+\r
+    onSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "type of services is not Array");\r
+        if (services.length > 0) {\r
+            service = services[0];\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                service.messageStorage.findConversations(filter);\r
+            });\r
+        } else {\r
+            assert_unreached("list of services is empty");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", onSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..4d583cf
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_sort_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_sort_TypeMismatch\r
+//==== LABEL Check type conversions for sort argument of MessageStorage.findConversations method (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectSort, conversionTable, exceptionName;\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectSort = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                services[0].messageStorage.findConversations(toFilter, findConversationsCallback, errorCallback, incorrectSort);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_invalid_obj.html
new file mode 100755 (executable)
index 0000000..68c4b0f
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_sort_invalid_obj</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_sort_invalid_obj\r
+//==== LABEL Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, invalidSort;\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    invalidSort = {\r
+        attributeName: "id",\r
+        order: "ASC"\r
+    };\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(toFilter, findConversationsCallback, errorCallback, invalidSort);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..51603a6
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, errorCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectCallback, conversionTable, exceptionName;\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                services[0].messageStorage.findConversations(toFilter, incorrectCallback, errorCallback);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..c9f0dd1
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_successCallback_invalid_cb</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, errorCallback, getMessagingServicesCallback,\r
+    onError, invalidCallback;\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    invalidCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("Unexpected onsuccess");\r
+        })\r
+    };\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(toFilter, invalidCallback, errorCallback);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_limit.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_limit.html
new file mode 100755 (executable)
index 0000000..bb52680
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_with_limit</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_with_limit\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with limit (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, onSuccess, filter, limit = 1, findError, findSuccess;\r
+\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_equals(conversations.length, 1, "conversations.length should be 1 when using limit");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    onSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        service.messageStorage.findConversations(filter, findSuccess, findError, null, limit);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, onSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_offset.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_offset.html
new file mode 100755 (executable)
index 0000000..cc5a4a6
--- /dev/null
@@ -0,0 +1,114 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_with_offset</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findConversations_with_offset\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with offset (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), service, typeFilter, sortById = new tizen.SortMode("id",\r
+    "DESC"), i, conversationIDs = [], offsetIDs = [], serviceSuccess, serviceError, addSuccess, addSuccessCounter = 0,\r
+    findAllConversationsSuccess, findAllConversationsError, findConversationsSuccess, findConversationsError;\r
+t.step(function () {\r
+\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        for (i = 0; i < conversations.length; i++) {\r
+            offsetIDs.push(conversations[i].id);\r
+        }\r
+\r
+        assert_array_equals(offsetIDs, conversationIDs,\r
+            "offset=1 should give one less than all conversations;");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("Second findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findAllConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_true(conversations.length > 1,\r
+            "Please prepare at least two conversations (found " + conversations.length + ")");\r
+\r
+        // create an array of IDs, first one is skipped\r
+        for (i = 1; i < conversations.length; i++) {\r
+            conversationIDs.push(conversations[i].id);\r
+        }\r
+\r
+        service.messageStorage.findConversations(\r
+            typeFilter, findConversationsSuccess, findConversationsError, sortById, null, 1);\r
+    });\r
+\r
+    findAllConversationsError = t.step_func(function (error) {\r
+        assert_unreached("First findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        addSuccessCounter++;\r
+        if (addSuccessCounter === 2) {\r
+            typeFilter = new tizen.AttributeFilter("type", "EXACTLY", service.type);\r
+\r
+            service.messageStorage.findConversations(\r
+                typeFilter, findAllConversationsSuccess, findAllConversationsError, sortById);\r
+        }\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT_2],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_sort_to.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_sort_to.html
new file mode 100755 (executable)
index 0000000..6ea6a4a
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_with_sort_to</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_with_sort_to\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, onError, toFilter, sortMode,\r
+    getMessagingServicesCallback;\r
+t.step(function () {\r
+\r
+    findConversationsCallback = t.step_func(function (conversations) {\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback arrived: " + err.message);\r
+    });\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+    sortMode = new tizen.SortMode("to", "ASC");\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_not_equals(services.length, 0, "Can't find MessageService");\r
+\r
+        services[0].messageStorage.findConversations(toFilter, findConversationsCallback, onError, sortMode);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders.html
new file mode 100755 (executable)
index 0000000..c8dfbf1
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findFolders</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findFolders\r
+//==== PRIORITY P1\r
+//==== LABEL Check if MessageStorage::findFolders method works properly with successCallback\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR\r
+\r
+setup({timeout: 300000});\r
+\r
+var t = async_test(document.title, {timeout: 300000}), service, onSuccess,\r
+    serviceError, serviceSuccess, filter, foldersSuccess, foldersError;\r
+\r
+t.step(function () {\r
+    foldersSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    foldersError = t.step_func(function(error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    onSuccess = t.step_func(function() {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        try {\r
+            service.messageStorage.findFolders(filter, foldersSuccess, foldersError);\r
+        } catch (e) {\r
+            assert_unreached("find Folders fail, blocked" + e.message);\r
+        }\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, onSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    try {\r
+        tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+    } catch (e) {\r
+        assert_unreached("get message service fail, blocked" + e.message);\r
+    }\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders_exist.html
new file mode 100755 (executable)
index 0000000..a66c05b
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findFolders_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findFolders_exist\r
+//==== LABEL Check if method findFolders of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("findFolders" in messageStorage, "No findFolders method in messageStorage");\r
+        check_method_exists(messageStorage, "findFolders");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages.html
new file mode 100755 (executable)
index 0000000..abd5d92
--- /dev/null
@@ -0,0 +1,117 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages\r
+//==== LABEL Check if MessageStorage.findMessages method works properly (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, i, loadMessageSuccess,\r
+    loadMessageError;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");\r
+        assert_equals(msg.conversationId, message.conversationId, "conversationId is not equal");\r
+        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");\r
+        assert_equals(msg.folderId, message.folderId, "folderId is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, message.type, "type is not equal");\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");\r
+        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");\r
+        assert_equals(msg.from, message.from, "from is not equal");\r
+        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");\r
+        for(i = 0; i < msg.to.length; i++) {\r
+            assert_equals(msg.to[i], message.to[i], "to is not equal");\r
+        }\r
+        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");\r
+        assert_equals(msg.body.messageId, message.body.messageId, "body.messageId is not equal");\r
+        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");\r
+        assert_equals(msg.body.loaded, message.body.loaded, "loaded is not equal");\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");\r
+        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");\r
+        assert_equals(msg.isRead, message.isRead, "isRead is not equal");\r
+        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");\r
+        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");\r
+\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_true(msg.length === 1, "Received incorrect number of messages: " + msg.length);\r
+        messageService.loadMessageBody(msg[0], loadMessageSuccess, loadMessageError);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        messageStorage.findMessages(filter, findSuccessCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..8d52a5d
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,\r
+    incorrectCallback, findSuccessCB;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(filter, findSuccessCB, incorrectCallback);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..5f6cef3
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError",\r
+    incorrectCallback, findSuccessCB;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.findMessages(filter, findSuccessCB, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_exist.html
new file mode 100755 (executable)
index 0000000..7849935
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_exist\r
+//==== LABEL Check if method findMessages of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("findMessages" in messageStorage, "No findMessages method in messageStorage");\r
+        check_method_exists(messageStorage, "findMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_filter_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..c9f7eaa
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_filter_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.findMessages method (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, incorrectFilter, conversionTable,\r
+    i, exceptionName, findSuccessCB, findErrorCB;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectFilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(incorrectFilter, findSuccessCB, findErrorCB);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectFilter);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_folderId_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_folderId_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..8a339dd
--- /dev/null
@@ -0,0 +1,125 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_folderId_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_folderId_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by folderId (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, j, loadMessageSuccess, loadMessageError;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");\r
+        assert_equals(msg.conversationId, message.conversationId, "conversationId is not equal");\r
+        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");\r
+        assert_equals(msg.folderId, message.folderId, "folderId is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, message.type, "type is not equal");\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");\r
+        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");\r
+        assert_equals(msg.from, message.from, "from is not equal");\r
+        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");\r
+        for(j = 0; j < msg.to.length; j++) {\r
+            assert_equals(msg.to[j], message.to[j], "to is not equal");\r
+        }\r
+        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");\r
+        assert_equals(msg.body.messageId, message.body.messageId, "body.messageId is not equal");\r
+        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");\r
+        assert_equals(msg.body.loaded, message.body.loaded, "loaded is not equal");\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");\r
+        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");\r
+        assert_equals(msg.isRead, message.isRead, "isRead is not equal");\r
+        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");\r
+        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++) {\r
+            assert_equals(msg[i].folderId, message.folderId, "returned folderId is not equal");\r
+            if(msg[i].id === message.id) {\r
+                messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);\r
+            }\r
+        }\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("folderId", "EXACTLY", message.folderId);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_from_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_from_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..59b996c
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_from_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_from_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by from (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, returnedValue = null, filter, findSuccessCB, findErrorCB,\r
+    fromFound, i;\r
+\r
+t.step(function () {\r
+    findSuccessCB = t.step_func(function (messages) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_not_equals(messages[i].from, null, "from is null");\r
+            fromFound = messages[i].from.indexOf(TEST_SMS_RECIPIENT);\r
+            assert_greater_than_equal(fromFound, 0, "Recipient not found");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        filter = new tizen.AttributeFilter("from", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        returnedValue = service.messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_id_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_id_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..92e55bb
--- /dev/null
@@ -0,0 +1,112 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_id_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_id_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by id (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    loadMessageSuccess, loadMessageError;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");\r
+        assert_equals(msg.folderId, message.folderId, "folderId is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, message.type, "type is not equal");\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");\r
+        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");\r
+        assert_equals(msg.from, message.from, "from is not equal");\r
+        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");\r
+        assert_array_equals(msg.to, message.to, "to is not equal");\r
+        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");\r
+        assert_equals(msg.isRead, message.isRead, "isRead is not equal");\r
+        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");\r
+        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");\r
+\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_true(msg.length === 1, "Received incorrect number of messages: " + msg.length);\r
+        messageService.loadMessageBody(msg[0], loadMessageSuccess, loadMessageError);\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_isRead_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_isRead_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..fb80c19
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_isRead_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_isRead_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by isRead (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_true(msg.length >= 1, "No messages found");\r
+        for(i = 0; i < msg.length; i++) {\r
+            assert_equals(msg[i].isRead, message.isRead, "isRead is not equal");\r
+            assert_equals(msg[i].type, message.type, "type is not equal");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("isRead", "EXACTLY", message.isRead);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_missarg.html
new file mode 100755 (executable)
index 0000000..792e8c6
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_missarg\r
+//==== LABEL Check without arguments - MessageStorage.findMessages\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        assert_throws({name: exceptionName}, function () {\r
+            messageStorage.findMessages();\r
+        }, exceptionName + " should be thrown - missing argument");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..c46e835
--- /dev/null
@@ -0,0 +1,133 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter1,\r
+    filter2, composite, findSuccessCB, findErrorCB, loadMessageSuccess, loadMessageError, commonPlainBody;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");\r
+        assert_equals(msg.folderId, message.folderId, "folderId is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, message.type, "type is not equal");\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");\r
+        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");\r
+        assert_equals(msg.from, message.from, "from is not equal");\r
+        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");\r
+        assert_array_equals(msg.to, message.to, "to is not equal");\r
+        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");\r
+        assert_equals(msg.body.messageId, message.body.messageId, "body.messageId is not equal");\r
+        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");\r
+        assert_equals(msg.body.loaded, message.body.loaded, "loaded is not equal");\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");\r
+        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");\r
+        assert_equals(msg.isRead, message.isRead, "isRead is not equal");\r
+        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");\r
+        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");\r
+\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_equals(msg.length, 1, "No messages found");\r
+        assert_equals(msg[0].id, message.id, "Id is not equal");\r
+        messageService.loadMessageBody(msg[0], loadMessageSuccess, loadMessageError);\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        count++;\r
+        if (count === 2) {\r
+            filter1 = new tizen.AttributeFilter("body.plainBody", "CONTAINS", message.body.plainBody);\r
+            filter2 = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+\r
+            composite = new tizen.CompositeFilter("INTERSECTION", [filter1, filter2]);\r
+            messageStorage.findMessages(composite, findSuccessCB, findErrorCB);\r
+        }\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        commonPlainBody = generatePlainBody();\r
+\r
+        messageOne = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+        messageOne.body.plainBody = "new plainBody";\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..34adbbe
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_plainBody_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_plainBody_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, loadMessageSuccess, loadMessageError;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++) {\r
+            assert_true(msg[i].body.plainBody.indexOf(message.body.plainBody) !== -1, "plainBody is not equal");\r
+            if(msg[i].id === message.id) {\r
+                messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);\r
+            }\r
+        }\r
+\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", message.body.plainBody);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..b1ecac7
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_sort_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_sort_TypeMismatch\r
+//==== LABEL Check type conversions for sort argument of MessageStorage.findMessages method (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,\r
+    incorrect, findSuccessCB, findErrorCB;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrect = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(filter, findSuccessCB, findErrorCB, incorrect);\r
+                }, exceptionName + " should be thrown - given incorrect sort mode: " + incorrect);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_invalid_obj.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_invalid_obj.html
new file mode 100755 (executable)
index 0000000..96b49c7
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_sort_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_sort_invalid_obj\r
+//==== LABEL Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTO\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError",\r
+    incorrectMode, findSuccessCB, findErrorCB;\r
+t.step(function () {\r
+\r
+    incorrectMode = {\r
+        attributeName: "id",\r
+        order: "ASC"\r
+    };\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.findMessages(filter, findSuccessCB, findErrorCB, incorrectMode);\r
+            }, exceptionName + " should be thrown - given incorrect mode - " + incorrectMode);\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..440a89d
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,\r
+    incorrectCallback, findErrorCB;\r
+t.step(function () {\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(filter, incorrectCallback, findErrorCB);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..2d91f06
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError",\r
+    incorrectCallback, findErrorCB;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.findMessages(filter, incorrectCallback, findErrorCB);\r
+            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..6c97b0b
--- /dev/null
@@ -0,0 +1,104 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_timestamp_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_timestamp_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, loadMessageSuccess, loadMessageError;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");\r
+\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++) {\r
+            if(msg[i].id === message.id) {\r
+                messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);\r
+            }\r
+        }\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeRangeFilter("timestamp", new Date(message.timestamp.getTime()-2000), new Date(message.timestamp.getTime()+2000));\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_to_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_to_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..f288b84
--- /dev/null
@@ -0,0 +1,109 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_to_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_to_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by to (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, j, loadMessageSuccess, loadMessageError, foundRecipient = false, addedMessage;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_true(foundRecipient, "Recipient not found");\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++) {\r
+            assert_greater_than(msg[i].to.length, 0, "Recipient empty array");\r
+            for(j = 0; j < msg[i].to.length; j++) {\r
+                if (msg[i].to[j].indexOf(TEST_SMS_RECIPIENT) >= 0) {\r
+                    foundRecipient = true;\r
+                }\r
+            }\r
+            if(msg[i].id === message.id) {\r
+                addedMessage = msg[i];\r
+            }\r
+        }\r
+        assert_true(addedMessage instanceof tizen.Message, "Not a message.");\r
+        messageService.loadMessageBody(addedMessage, loadMessageSuccess, loadMessageError);\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", message.to);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_type_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_type_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..b2b9818
--- /dev/null
@@ -0,0 +1,104 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_type_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_type_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by type\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, loadMessageSuccess, loadMessageError;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, message.type, "type is not equal");\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++) {\r
+            assert_equals(msg[i].type, message.type, "returned type is not equal");\r
+            if(msg[i].id === message.id) {\r
+                messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);\r
+            }\r
+        }\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", message.type);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_limit.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_limit.html
new file mode 100755 (executable)
index 0000000..198ad33
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_with_limit</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_with_limit\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with limit (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter,\r
+    sortMode, findSuccessCB, findErrorCB, removeAllSuccess, commonPlainBody;\r
+t.step(function () {\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_equals(msg.length, 1, "More then one message one");\r
+        removeAllMessages(t, messageService, removeAllSuccess);\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        count++;\r
+        if(count === 2) {\r
+            filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", message.body.plainBody);\r
+            sortMode = new tizen.SortMode("id", "DESC");\r
+            messageStorage.findMessages(filter, findSuccessCB, findErrorCB, sortMode, 1);\r
+        }\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+\r
+        commonPlainBody = generatePlainBody();\r
+\r
+        messageOne = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_offset.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_offset.html
new file mode 100755 (executable)
index 0000000..fbb5cfc
--- /dev/null
@@ -0,0 +1,122 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_with_offset</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_with_offset\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with offset (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter,\r
+    sortMode, findSuccessCB, findErrorCB, i, loadMessageSuccess, loadMessageError, findCounter = 0, loadCounter = 0,\r
+    removeAllSuccess, commonPlainBody;\r
+t.step(function () {\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        loadCounter++;\r
+\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, commonPlainBody, "plainBody is not equal");\r
+\r
+        if (findCounter === loadCounter) {\r
+            removeAllMessages(t, messageService, removeAllSuccess);\r
+        }\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        findCounter = msg.length;\r
+\r
+        for(i = 0; i < msg.length; i++) {\r
+            messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);\r
+        }\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        count++;\r
+        if(count === 2) {\r
+            filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", commonPlainBody);\r
+            sortMode = new tizen.SortMode("id", "DESC");\r
+            messageStorage.findMessages(filter, findSuccessCB, findErrorCB, sortMode, 2, 1);\r
+        }\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        commonPlainBody = generatePlainBody();\r
+\r
+        messageOne = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_sort.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_sort.html
new file mode 100755 (executable)
index 0000000..56a066f
--- /dev/null
@@ -0,0 +1,125 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_with_sort</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_with_sort\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with sort (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter,\r
+    sortMode, findSuccessCB, findErrorCB, i, loadMessageSuccess, loadMessageError, findCounter = 0, loadCounter = 0,\r
+    returnedValue = null, commonPlainBody;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        loadCounter++;\r
+\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_greater_than_equal(msg.body.plainBody.indexOf(commonPlainBody), 0, "plainBody not found");\r
+\r
+        if (findCounter === loadCounter) {\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+\r
+        assert_greater_than(msg.length, 1, "Received empty msg array");\r
+        findCounter = msg.length;\r
+\r
+        for(i = 0; i < msg.length; i++) {\r
+            // messages should be sorted in ascending order\r
+            if(i > 0) {\r
+                assert_true(msg[i-1].id < msg[i].id, "Messages are not sorted properly.");\r
+            }\r
+            messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);\r
+        }\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        count++;\r
+        if(count === 2) {\r
+            filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", commonPlainBody);\r
+            sortMode = new tizen.SortMode("id", "ASC");\r
+            returnedValue = messageStorage.findMessages(filter, findSuccessCB, findErrorCB, sortMode);\r
+        }\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        commonPlainBody = generatePlainBody();\r
+\r
+        messageOne = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeChangeListener_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..ebbc212
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_removeChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_removeChangeListener_exist\r
+//==== LABEL Check if method removeChangeListener of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("removeChangeListener" in messageStorage, "No removeChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "removeChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeConversations_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeConversations_exist.html
new file mode 100755 (executable)
index 0000000..29ba076
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_removeConversations_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_removeConversations_exist\r
+//==== LABEL Check if method removeConversations of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("removeConversations" in messageStorage, "No removeConversations method in messageStorage");\r
+        check_method_exists(messageStorage, "removeConversations");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeMessages_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeMessages_exist.html
new file mode 100755 (executable)
index 0000000..45bc189
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_removeMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_removeMessages_exist\r
+//==== LABEL Check if method removeMessages of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("removeMessages" in messageStorage, "No removeMessages method in messageStorage");\r
+        check_method_exists(messageStorage, "removeMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages.html
new file mode 100755 (executable)
index 0000000..fd2e655
--- /dev/null
@@ -0,0 +1,179 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), mutableMessage, constMessage,\r
+    smsMessageInitDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },\r
+    initDictForMutableMessage = smsMessageInitDict, initDictForConstMessage = smsMessageInitDict,\r
+    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable",\r
+    plainBodyToSetForConstMessage = plainBodyToSet + "_const",\r
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,\r
+    returnedValue = null, updateSuccess, updateError, mutableMessagefilter, constMessagefilter, findMutableMessagesSuccess,\r
+    findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE", findConstMessagesSuccess, findConstMessagesError,\r
+    foundConstMessage, consts = "CONST", loadMutableSuccess, loadMutableError, loadConstSuccess, loadConstError,\r
+    testMessage, testMessageCounter = 0;\r
+t.step(function () {\r
+\r
+    testMessage = t.step_func(function (messageToTest, originalMessage, type) {\r
+        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");\r
+        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");\r
+        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");\r
+\r
+        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");\r
+        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");\r
+\r
+        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");\r
+        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");\r
+        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");\r
+        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");\r
+\r
+        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");\r
+        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");\r
+        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");\r
+        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {\r
+            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");\r
+        } else {\r
+            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");\r
+        }\r
+\r
+        testMessageCounter++;\r
+        if (testMessageCounter === 2) {\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {\r
+        testMessage(loadedMutableMessage, mutableMessage, mutable);\r
+    });\r
+\r
+    loadMutableError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstSuccess = t.step_func(function (loadedConstMessage) {\r
+        testMessage(loadedConstMessage, constMessage, consts);\r
+    });\r
+\r
+    loadConstError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {\r
+        assert_equals(mutableMessages.length, 1, "incorrect number of messages.");\r
+        foundMutableMessage = mutableMessages[0];\r
+        if (foundMutableMessage.body.loaded) {\r
+            testMessage(foundMutableMessage, mutableMessage, mutable);\r
+        } else {\r
+            messageService.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);\r
+        }\r
+    });\r
+\r
+    findMutableMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConstMessagesSuccess = t.step_func(function (constMessages) {\r
+        assert_equals(constMessages.length, 1, "incorrect number of messages.");\r
+        foundConstMessage = constMessages[0];\r
+        if (foundConstMessage.body.loaded) {\r
+            testMessage(foundConstMessage, constMessage, consts);\r
+        } else {\r
+            messageService.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);\r
+        }\r
+    });\r
+\r
+    findConstMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);\r
+        messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);\r
+\r
+        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);\r
+        messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);\r
+    });\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.to = [TEST_SMS_RECIPIENT_2];\r
+            mutableMessage.body.plainBody = "new mutableMessage.plainBody";\r
+            mutableMessage.isRead = true;\r
+            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess, updateError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;\r
+        mutableMessage = new tizen.Message("messaging.sms", initDictForMutableMessage);\r
+        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;\r
+        constMessage = new tizen.Message("messaging.sms", initDictForConstMessage);\r
+        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..94db554
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, addDraftSuccess, addDraftError, exceptionName, updateSuccess, incorrectCallback, conversionTable, i;\r
+t.step(function () {\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_unreached("updateMessages() success callback invoked.");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], updateSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..1e73aad
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", updateSuccess, incorrectCallback;\r
+t.step(function () {\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_unreached("updateMessages() success callback invoked.");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        incorrectCallback = {\r
+            onerror: t.step_func(function (error) {\r
+                assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);\r
+            })\r
+        };\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], updateSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_exist.html
new file mode 100755 (executable)
index 0000000..9b724de
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_exist\r
+//==== LABEL Check if method updateMessages of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("updateMessages" in messageStorage, "No updateMessages method in messageStorage");\r
+        check_method_exists(messageStorage, "updateMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_messages_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_messages_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..831a7eb
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_messages_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_messages_TypeMismatch\r
+//==== LABEL Check type conversions for messages argument of MessageStorage.updateMessages method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName, updateSuccess, updateError, conversionTable, incorrectMessages, i;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        updateSuccess = t.step_func(function () {\r
+            assert_unreached("updateMessages() success callback invoked.");\r
+        });\r
+\r
+        updateError = t.step_func(function (error) {\r
+            assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+        });\r
+\r
+        conversionTable = getTypeConversionExceptions("array", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectMessages = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName}, function () {\r
+                messageStorage.updateMessages(incorrectMessages, updateSuccess, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessages);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_missarg.html
new file mode 100755 (executable)
index 0000000..d4b429b
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.updateMessages (sms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            messageStorage.updateMessages();\r
+        }, exceptionName + " should be thrown - missing argument.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..e2c4c77
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, messageService, messageStorage, message,\r
+    addDraftSuccess, addDraftError, exceptionName,\r
+    updateError, incorrectCallback, conversionTable, i;\r
+\r
+t.step(function () {\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], incorrectCallback, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..4aa0c2f
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", updateError, incorrectCallback;\r
+t.step(function () {\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        incorrectCallback = {\r
+            onsuccess: t.step_func(function () {\r
+                assert_unreached("addDraftMessage() incorrect success callback invoked");\r
+            })\r
+        };\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], incorrectCallback, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..a9bac38
--- /dev/null
@@ -0,0 +1,173 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_without_errorCallback\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), mutableMessage, constMessage,\r
+    smsMessageInitDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },\r
+    initDictForMutableMessage = smsMessageInitDict, initDictForConstMessage = smsMessageInitDict,\r
+    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable", plainBodyToSetForConstMessage = plainBodyToSet + "_const",\r
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,\r
+    returnedValue = null, updateSuccess, mutableMessagefilter, constMessagefilter, findMutableMessagesSuccess,\r
+    findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE", findConstMessagesSuccess, findConstMessagesError,\r
+    foundConstMessage, consts = "CONST", loadMutableSuccess, loadMutableError, loadConstSuccess, loadConstError,\r
+    testMessage, testMessageCounter = 0;\r
+t.step(function () {\r
+\r
+    testMessage = t.step_func(function (messageToTest, originalMessage, type) {\r
+        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");\r
+        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");\r
+        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");\r
+\r
+        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");\r
+        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");\r
+\r
+        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");\r
+        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");\r
+        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");\r
+        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");\r
+\r
+        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");\r
+        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");\r
+        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");\r
+        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {\r
+            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");\r
+        } else {\r
+            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");\r
+        }\r
+\r
+        testMessageCounter++;\r
+        if (testMessageCounter === 2) {\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {\r
+        testMessage(loadedMutableMessage, mutableMessage, mutable);\r
+    });\r
+\r
+    loadMutableError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstSuccess = t.step_func(function (loadedConstMessage) {\r
+        testMessage(loadedConstMessage, constMessage, consts);\r
+    });\r
+\r
+    loadConstError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {\r
+        assert_equals(mutableMessages.length, 1, "incorrect number of messages.");\r
+        foundMutableMessage = mutableMessages[0];\r
+        if (foundMutableMessage.body.loaded) {\r
+            testMessage(foundMutableMessage, mutableMessage, mutable);\r
+        } else {\r
+            messageService.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);\r
+        }\r
+    });\r
+\r
+    findMutableMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConstMessagesSuccess = t.step_func(function (constMessages) {\r
+        assert_equals(constMessages.length, 1, "incorrect number of messages.");\r
+        foundConstMessage = constMessages[0];\r
+        if (foundConstMessage.body.loaded) {\r
+            testMessage(foundConstMessage, constMessage, consts);\r
+        } else {\r
+            messageService.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);\r
+        }\r
+    });\r
+\r
+    findConstMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);\r
+        messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);\r
+\r
+        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);\r
+        messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.to = [TEST_SMS_RECIPIENT_2];\r
+            mutableMessage.body.plainBody = "new mutableMessage.plainBody";\r
+            mutableMessage.isRead = true;\r
+            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;\r
+        mutableMessage = new tizen.Message("messaging.sms", initDictForMutableMessage);\r
+        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;\r
+        constMessage = new tizen.Message("messaging.sms", initDictForConstMessage);\r
+        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_successCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_successCallback.html
new file mode 100755 (executable)
index 0000000..6d359b3
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_without_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_without_successCallback\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    mutableMessage, constMessage, addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,\r
+    returnedValue = null;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.to = [TEST_SMS_RECIPIENT_2];\r
+            mutableMessage.body.plainBody = "new mutableMessage.plainBody";\r
+            mutableMessage.isRead = true;\r
+            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage]);\r
+            assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        mutableMessage = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        constMessage = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_updateMessages.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_updateMessages.html
new file mode 100755 (executable)
index 0000000..3d5adca
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_updateMessages</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_updateMessages\r
+//==== LABEL Check if MessageStorage.updateMessages method works correctly wihtout error callback\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, messageSentSuccess, messageSentError, updateSuccess,\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    messageSentSuccess = t.step_func(function (recipients) {\r
+        message.isRead = !message.isRead;\r
+        service.messageStorage.updateMessages([message], updateSuccess);\r
+    });\r
+\r
+    messageSentError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        message = new tizen.Message("messaging.sms", {plainBody: "test.", to: [TEST_SMS_RECIPIENT_2]});\r
+        service.sendMessage(message, messageSentSuccess, messageSentError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_addUpdateRemove.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_addUpdateRemove.html
new file mode 100755 (executable)
index 0000000..a626b1c
--- /dev/null
@@ -0,0 +1,117 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+\r
+<head>\r
+<title>Message_addUpdateRemove</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_addUpdateRemove\r
+//==== LABEL Check: Add a draft message and update it, and then remove it\r
+//==== PRIORITY P3\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:Message U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, message, msgs,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError, filter,\r
+    findSuccess, findError, updateSuccess, updateError, removeSuccess, removeError;\r
+\r
+t.step(function () {\r
+\r
+    removeSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        service.messageStorage.removeMessages(msgs, removeSuccess, removeError);\r
+    });\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        msgs = messages;\r
+        messages[0].subject = generateSubject();\r
+        service.messageStorage.updateMessages(messages, updateSuccess, updateError);\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_attachments_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_attachments_exist.html
new file mode 100755 (executable)
index 0000000..feb36d8
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+\r
+<head>\r
+<title>Message_attachments_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_attachments_exist\r
+//==== LABEL Check if the attribute attachments in Message\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:attachments A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+        assert_true("attachments" in message, "attachments attribute not found");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_attachments_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_attachments_attribute.html
new file mode 100755 (executable)
index 0000000..e9227a7
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_attachments_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_attachments_attribute\r
+//==== LABEL Check if attribute attachments of Message (email) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:attachments A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ADV\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.email"), sampleVal;\r
+\r
+    assert_true("attachments" in message, "No 'attachments' attribute in message");\r
+    assert_type(message.attachments, "array", "'attachments' type should be array");\r
+    assert_array_equals(message.attachments, [], "'attachments' should be [] by default");\r
+\r
+    message.attachments = null;\r
+    assert_array_equals(message.attachments, [], "'attachments' should not accept null as value");\r
+\r
+    sampleVal = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+    message.attachments = [sampleVal];\r
+    assert_equals(message.attachments.length, 1, "'attachments' should accept a valid value (array length mismatch)");\r
+    assert_equals(message.attachments[0].filePath, TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "'attachments' should accept a valid value (file path mismatch)");\r
+\r
+    check_invalid_array_assignments(message, "attachments", false);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_bcc_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_bcc_attribute.html
new file mode 100755 (executable)
index 0000000..11d52b8
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_bcc_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_bcc_attribute\r
+//==== LABEL Check if attribute bcc of Message (email) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:bcc A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ASG\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("bcc" in message, "No 'bcc' attribute in message");\r
+        assert_type(message.bcc, "array", "'bcc' should be an array");\r
+        assert_array_equals(message.bcc, [], "'bcc' should be [] by default");\r
+\r
+        message.bcc = null;\r
+        assert_array_equals(message.bcc, [], "'bcc' should not accept null as value");\r
+\r
+        message.bcc = [TEST_EMAIL_RECIPIENT_1];\r
+        assert_array_equals(message.bcc, [TEST_EMAIL_RECIPIENT_1], "'bcc' should accept a valid value");\r
+\r
+        check_invalid_array_assignments(message, "bcc", false);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_body_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_body_attribute.html
new file mode 100755 (executable)
index 0000000..99a18a0
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_body_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_body_attribute\r
+//==== LABEL Check if attribute body of Message (email) exists, has type MessageBody\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:body A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ASG\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.email"),\r
+        invalidArgs, sampleBody, i;\r
+\r
+    assert_true("body" in message, "No 'body' attribute in message");\r
+\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_type(message.body.loaded, "boolean", "message.body.loaded type should be boolean");\r
+    assert_type(message.body.plainBody, "string", "message.body.plainBody type should be string");\r
+    assert_type(message.body.htmlBody, "string", "message.body.htmlBody type should be string");\r
+    assert_type(message.body.inlineAttachments, "array", "message.body.inlineAttachments type should be array");\r
+\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");\r
+    assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");\r
+    assert_equals(message.body.htmlBody, "", "'body.htmlBody' should be \"\" by default");\r
+    assert_array_equals(message.body.inlineAttachments, [], "'body.inlineAttachments' should be [] by default");\r
+\r
+    sampleBody = {\r
+        messageId: tizen.time.getCurrentDateTime().toString(),\r
+        loaded: false,\r
+        plainBody: MESSAGE_BODY_PLAIN,\r
+        htmlBody: MESSAGE_BODY_HTML,\r
+        inlineAttachments: []\r
+    };\r
+\r
+    // field messageId and loaded are readonly\r
+    message.body.plainBody = sampleBody.plainBody;\r
+    message.body.htmlBody = sampleBody.htmlBody;\r
+    message.body.inlineAttachments = sampleBody.inlineAttachments;\r
+\r
+    assert_equals(message.body.plainBody, sampleBody.plainBody, "'body.plainBody' should accept a valid value");\r
+    assert_equals(message.body.htmlBody, sampleBody.htmlBody, "'body.htmlBody' should accept a valid value");\r
+    assert_array_equals(message.body.inlineAttachments, sampleBody.inlineAttachments, "'body.inlineAttachments' should accept a valid value");\r
+\r
+    message.body = null;\r
+    assert_not_equals(message.body, null, "'body' should not accept null as value");\r
+\r
+    invalidArgs = [undefined, true, false, NaN, 0, "TIZEN", function () {}];\r
+    for (i = 0 ; i < invalidArgs.length ; i++) {\r
+        message.body = invalidArgs[i];\r
+\r
+        assert_true("plainBody" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+        assert_true("htmlBody" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+        assert_true("inlineAttachments" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+\r
+        assert_equals(message.body.plainBody, sampleBody.plainBody, "'plainBody' modified after setting the object to " + invalidArgs[i]);\r
+        assert_equals(message.body.htmlBody, sampleBody.htmlBody, "'htmlBody' modified after setting the object to " + invalidArgs[i]);\r
+        assert_type(message.body.inlineAttachments, "array", "'inlineAttachments' modified after setting the object to " + invalidArgs[i]);\r
+        assert_array_equals(message.body.inlineAttachments, sampleBody.inlineAttachments,\r
+            "'messageId' modified after setting the object to " + invalidArgs[i]);\r
+    }\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_cc_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_cc_attribute.html
new file mode 100755 (executable)
index 0000000..0b6681f
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_cc_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: Message_email_cc_attribute\r
+//==== LABEL Check if attribute cc of Message (email) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:cc A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ASG\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("cc" in message, "No 'cc' attribute in message");\r
+        assert_type(message.cc, "array", "'cc' should be an array");\r
+        assert_array_equals(message.cc, [], "'cc' should be [] by default");\r
+\r
+        message.cc = null;\r
+        assert_array_equals(message.cc, [], "'cc' should not accept null as value");\r
+\r
+        message.cc = [TEST_EMAIL_RECIPIENT_1];\r
+        assert_array_equals(message.cc, [TEST_EMAIL_RECIPIENT_1], "'cc' should accept a valid value");\r
+\r
+        check_invalid_array_assignments(message, "cc", false);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor.html
new file mode 100755 (executable)
index 0000000..6219c8a
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_constructor</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_constructor\r
+//==== LABEL Check if Message's constructor works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRA CONSTRM\r
+\r
+test(function () {\r
+    var message, messageInitDict;\r
+\r
+    messageInitDict = {\r
+        subject: generateSubject(),\r
+        to: [TEST_EMAIL_RECIPIENT_2],\r
+        cc: [TEST_EMAIL_RECIPIENT_1, TEST_EMAIL_RECIPIENT_2],\r
+        bcc: [TEST_EMAIL_RECIPIENT_1],\r
+        plainBody: MESSAGE_BODY_PLAIN,\r
+        htmlBody: MESSAGE_BODY_HTML,\r
+        isHighPriority: false\r
+    };\r
+\r
+    message = new tizen.Message("messaging.email", messageInitDict);\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+    assert_array_equals(message.attachments, [], "'attachments' should be []");\r
+    assert_array_equals(message.bcc, messageInitDict.bcc, "wrong 'bcc' value");\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false");\r
+    assert_equals(message.body.plainBody, messageInitDict.plainBody, "'body.plainBody' should be \""+messageInitDict.plainBody+"\"");\r
+    assert_equals(message.body.htmlBody, messageInitDict.htmlBody, "'body.htmlBody' should be \""+messageInitDict.htmlBody+"\"");\r
+    assert_array_equals(message.body.inlineAttachments, [], "'body.inlineAttachments' should be an empty array");\r
+    assert_array_equals(message.cc, messageInitDict.cc, "wrong 'cc' value");\r
+    assert_equals(message.conversationId, null, "message.conversationId value should be null");\r
+    assert_equals(message.folderId, null, "message.folderId value should be null");\r
+    assert_equals(message.from, null, "'from' should be null");\r
+    assert_equals(message.hasAttachment, false, "'hasAttachment' should be false");\r
+    assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null");\r
+    assert_equals(message.isHighPriority, false, "'isHighPriority' value should be false");\r
+    assert_equals(message.isRead, false, "'isRead' value should be false");\r
+    assert_equals(message.messageStatus, "", "value should be an empty value");\r
+    assert_equals(message.subject, messageInitDict.subject, "'subject' value should be \""+messageInitDict.subject+"\"");\r
+    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+    assert_array_equals(message.to, messageInitDict.to, "wrong 'to' value");\r
+    assert_equals(message.type, "messaging.email", "'type' should be 'messaging.email'");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_messageInitDict_function.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_messageInitDict_function.html
new file mode 100755 (executable)
index 0000000..5249772
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>Message_email_constructor_messageInitDict_function</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_constructor_messageInitDict_function\r
+//==== LABEL Check if Message's constructor works properly with function (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM\r
+\r
+test(function () {\r
+\r
+    var message = new tizen.Message("messaging.email", function () {});\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_messageInitDict_object.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_messageInitDict_object.html
new file mode 100755 (executable)
index 0000000..fd02b07
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_constructor_messageInitDict_object</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_constructor_messageInitDict_object\r
+//==== LABEL Check if Message's constructor works properly with empty object (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM\r
+\r
+test(function () {\r
+\r
+    var message = new tizen.Message("messaging.email", {});\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_minargs.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_minargs.html
new file mode 100755 (executable)
index 0000000..af85d09
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>Message_email_constructor_minargs</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_constructor_minargs\r
+//==== LABEL Check if Message's constructor works properly with minimum arguments (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM CONSTRA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+        assert_array_equals(message.attachments, [], "'attachments' should be [] by default");\r
+        assert_array_equals(message.bcc, [], "'bcc' should be [] by default");\r
+        assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+        assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");\r
+        assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");\r
+        assert_equals(message.body.htmlBody, "", "'body.htmlBody' should be \"\" by default");\r
+        assert_array_equals(message.body.inlineAttachments, [], "'body.inlineAttachments' should be [] by default");\r
+        assert_array_equals(message.cc, [], "'cc' should be [] by default");\r
+        assert_equals(message.conversationId, null, "message.conversationId default value should be null");\r
+        assert_equals(message.folderId, null, "message.folderId default value should be null");\r
+        assert_equals(message.from, null, "'from' should be null");\r
+        assert_equals(message.hasAttachment, false, "'hasAttachment' should be false by default");\r
+        assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+        assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");\r
+        assert_equals(message.isHighPriority, false, "'isHighPriority' default value should be false");\r
+        assert_equals(message.isRead, false, "'isRead' default value should be false");\r
+        assert_equals(message.messageStatus, "", "Default value should be \"\"");\r
+        assert_equals(message.subject, "", "'subject' default value should be \"\" by default");\r
+        assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+        assert_array_equals(message.to, [], "'to' should be [] by default");\r
+        assert_equals(message.type, "messaging.email", "'type' should be 'messaging.email'");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_conversationId_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_conversationId_attribute.html
new file mode 100755 (executable)
index 0000000..9407fb2
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_conversationId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: Message_email_conversationId_attribute\r
+//==== LABEL Check if attribute conversationId of Message (email) exists, has type MessageConvId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:conversationId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_type(message.conversationId, "string", "ConversationId is not a string");\r
+        assert_not_equals(message.conversationId, "", "ConversationId is empty");\r
+        check_readonly(message, "id", message.conversationId, "string", message.conversationId + "1");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("conversationId" in message, "No 'conversationId' attribute in message");\r
+        assert_equals(message.conversationId, null, "message.conversationId default value should be null");\r
+        check_readonly(message, "conversationId", null, "object", "12345");\r
+\r
+        message.subject = generateSubject();\r
+        message.to = [TEST_EMAIL_RECIPIENT_2];\r
+        message.plainBody = MESSAGE_BODY_PLAIN;\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_extend.html
new file mode 100755 (executable)
index 0000000..8c6e8bd
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: Message_email_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface Message (email) can be extended with new property\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:Message U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        check_extensibility(message);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_folderId_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_folderId_attribute.html
new file mode 100755 (executable)
index 0000000..4e5382e
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_folderId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_folderId_attribute\r
+//==== LABEL Check if attribute folderId of Message (email) exists, has type MessageFolderId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:folderId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceError, serviceSuccess, messageService, addDraftError, addDraftSuccess;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_type(message.folderId, "string", "folderId is not a string");\r
+        assert_not_equals(message.folderId, "", "folderId is empty");\r
+\r
+        check_readonly(message, "folderId", message.folderId, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        messageService = service;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        assert_true("folderId" in message, "No 'folderId' attribute in message");\r
+        check_readonly(message, "folderId", null, "object", "12345");\r
+\r
+        messageService.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_from_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_from_attribute.html
new file mode 100755 (executable)
index 0000000..e76f68c
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_from_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_from_attribute\r
+//==== LABEL Check if attribute from of Message (email) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:from A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, service, serviceSuccess, serviceError, sendSuccess, sendError,\r
+    syncSuccess, syncError, findFoldersError, findFoldersSuccess,\r
+    findMessageError, findMessageSuccess, foundMessage, inboxFolder;\r
+\r
+t.step(function () {\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+\r
+            foundMessage = messages[0];\r
+            assert_type(foundMessage.from, "string", "from is not a string");\r
+            check_readonly(foundMessage, "from", TEST_EMAIL_RECIPIENT_1, "string", foundMessage.from + ".kr");\r
+\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        assert_true("from" in message, "No 'from' attribute in message");\r
+        assert_equals(message.from, null, "'from' should be null by default");\r
+        check_readonly(message, "from", null, "object", message.from + "dummyValue");\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_hasAttachment_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_hasAttachment_attribute.html
new file mode 100755 (executable)
index 0000000..87bac5a
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_hasAttachment_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_hasAttachment_attribute\r
+//==== LABEL Check if attribute hasAttachment of Message (email) exists, has type Boolean and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:hasAttachment A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("hasAttachment" in message, "No 'hasAttachment' attribute in message");\r
+        assert_equals(message.hasAttachment, false, "'hasAttachment' should be false by default");\r
+        check_readonly(message, "hasAttachment", message.hasAttachment, "boolean", !message.hasAttachment);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_id_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_id_attribute.html
new file mode 100755 (executable)
index 0000000..1a26d1f
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_id_attribute\r
+//==== LABEL Check if attribute id of Message (email) exists, has type MessageId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, serviceError, serviceSuccess, addDraftSuccess, addDraftError;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_type(message.id, "string", "Id is not a string");\r
+        assert_not_equals(message.id, "", "Id is empty");\r
+        check_readonly(message, "id", message.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        assert_own_property(message, "id", "No 'id' attribute in message");\r
+        assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+        check_readonly(message, "id", null, "object", "12345");\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_inResponseTo_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_inResponseTo_attribute.html
new file mode 100755 (executable)
index 0000000..57c1fe2
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_inResponseTo_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_inResponseTo_attribute\r
+//==== LABEL Check if attribute inResponseTo of Message (email) exists, has type MessageId\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:inResponseTo A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ADV ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("inResponseTo" in message, "No 'inResponseTo' attribute in message");\r
+        assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");\r
+\r
+        check_readonly(message, "inResponseTo", message.inResponseTo, "string", message.inResponseTo + "dummyValue");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_isHighPriority_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_isHighPriority_attribute.html
new file mode 100755 (executable)
index 0000000..9e2822b
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_isHighPriority_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_isHighPriority_attribute\r
+//==== LABEL Check if attribute isHighPriority of Message (email) exists, has type Boolean\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:isHighPriority A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("isHighPriority" in message, "No 'isHighPriority' attribute in message");\r
+\r
+        assert_type(message.isHighPriority, "boolean", "'isHighPriority' type should be boolean");\r
+        assert_equals(message.isHighPriority, false, "'isHighPriority' default value should be false");\r
+\r
+        message.isHighPriority = true;\r
+        assert_equals(message.isHighPriority, true, "'isHighPriority' should accept a valid value");\r
+\r
+        message.isHighPriority = null;\r
+        assert_equals(message.isHighPriority, false, "null should be converted to false");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_isRead_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_isRead_attribute.html
new file mode 100755 (executable)
index 0000000..edfff80
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_isRead_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_isRead_attribute\r
+//==== LABEL Check if attribute isRead of Message (email) exists, has type Boolean\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:isRead A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("isRead" in message, "No 'isRead' attribute in message");\r
+        assert_type(message.isRead, "boolean", "'isRead' type should be boolean");\r
+        assert_equals(message.isRead, false, "'isRead' default value should be false");\r
+\r
+        message.isRead = true;\r
+        assert_equals(message.isRead, true, "'isRead' should accept a valid value");\r
+\r
+        message.isRead = null;\r
+        assert_equals(message.isRead, false, "null should be converted to false");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_messageStatus_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_messageStatus_attribute.html
new file mode 100755 (executable)
index 0000000..ab0ffe1
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_messageStatus_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_messageStatus_attribute\r
+//==== LABEL Check if attribute messageStatus of Message (email) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:messageStatus A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ARO ADV AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("messageStatus" in message, "No 'messageStatus' attribute in message");\r
+        check_readonly(message, "messageStatus", message.messageStatus, "string", message.messageStatus + "dummyValue");\r
+        assert_equals(message.messageStatus, "", "Default value should be \"\"");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_subject_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_subject_attribute.html
new file mode 100755 (executable)
index 0000000..a472914
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_subject_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_subject_attribute\r
+//==== LABEL Check if attribute subject of Message (email) exists, has type DOMString\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:subject A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("subject" in message, "No 'subject' attribute in message");\r
+        assert_type(message.subject, "string", "'subject' type should be string");\r
+        assert_equals(message.subject, "", "'subject' default value should be \"\"");\r
+\r
+        message.subject = null;\r
+        assert_equals(message.subject, "null", "null should be converted to string 'null'");\r
+\r
+        message.subject = "sampleValue";\r
+        assert_equals(message.subject, "sampleValue", "'subject' should accept a valid value");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_timestamp_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_timestamp_attribute.html
new file mode 100755 (executable)
index 0000000..9b8867d
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_timestamp_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_timestamp_attribute\r
+//==== LABEL Check if attribute timestamp of Message (email) exists, has type Date and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:timestamp A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, serviceError,\r
+    serviceSuccess, messageService, addDraftError, addDraftSuccess, oldDate;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_type(message.timestamp, "date", "timestamp is not a Date");\r
+\r
+        oldDate = message.timestamp;\r
+        message.timestamp = new Date();\r
+        assert_equals(message.timestamp.getTime(), oldDate.getTime(), "timestamp can be modified");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        messageService = service;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        assert_true("timestamp" in message, "No 'timestamp' attribute in message");\r
+        assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+        check_readonly(message, "timestamp", null, "object", new Date());\r
+\r
+        messageService.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_to_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_to_attribute.html
new file mode 100755 (executable)
index 0000000..6e2934c
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_to_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_to_attribute\r
+//==== LABEL Check if attribute to of Message (email) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:to A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("to" in message, "No 'to' attribute in message");\r
+        assert_type(message.to, "array", "'to' should be an array");\r
+        assert_array_equals(message.to, [], "'to' should be [] by default");\r
+\r
+        message.to = null;\r
+        assert_array_equals(message.to, [], "'to' should not accept null as value");\r
+\r
+        message.to = [TEST_EMAIL_RECIPIENT_1];\r
+        assert_type(message.to, "array", "'to' should be an array");\r
+        assert_array_equals(message.to, [TEST_EMAIL_RECIPIENT_1], "'to' should accept a valid value");\r
+\r
+        message.to = null;\r
+        assert_array_equals(message.to, [TEST_EMAIL_RECIPIENT_1], "'to' should not accept null as value");\r
+\r
+        check_invalid_array_assignments(message, "to", false);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_type_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_type_attribute.html
new file mode 100755 (executable)
index 0000000..d9d8a12
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_type_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_type_attribute\r
+//==== LABEL Check if attribute type of Message (email) exists, has type MessageServiceTag and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("type" in message, "No 'type' attribute in message");\r
+        assert_equals(message.type, "messaging.email", "'type' should be 'messaging.email'");\r
+        check_readonly(message, "type", message.type, "string", message.type + "dummyValue");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_exist.html
new file mode 100755 (executable)
index 0000000..ca414f8
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_exist\r
+//==== LABEL Check if Message exists\r
+//==== PRIORITY P0\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRF\r
+\r
+test(function () {\r
+    check_constructor("Message");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_hasAttachment_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_hasAttachment_exist.html
new file mode 100755 (executable)
index 0000000..35062a5
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>Message_hasAttachment_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: Message_hasAttachment_exist\r
+//==== LABEL Check if attribute hasAttachment in Message\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:hasAttachment A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.email");\r
+        assert_true("hasAttachment" in message, "hasAttachment attribute not found");\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_attachments_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_attachments_attribute.html
new file mode 100755 (executable)
index 0000000..db412aa
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_attachments_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_attachments_attribute\r
+//==== LABEL Check if attribute attachments of Message (MMS) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:attachments A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ADV AN ASG\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms"),\r
+        sampleVal;\r
+\r
+    assert_true("attachments" in message, "No 'attachments' attribute in message");\r
+    assert_type(message.attachments, "array", "'attachments' type should be array");\r
+    assert_array_equals(message.attachments, [], "'attachments' should be [] by default");\r
+\r
+    message.attachments = null;\r
+    assert_array_equals(message.attachments, [], "'attachments' should not accept null as value");\r
+\r
+    sampleVal = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+    message.attachments = [sampleVal];\r
+    assert_equals(message.attachments.length, 1, "'attachments' should accept a valid value (array length mismatch)");\r
+    assert_equals(message.attachments[0].filePath, TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "'attachments' should accept a valid value (file path mismatch)");\r
+\r
+    check_invalid_array_assignments(message, "attachments", false);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_body_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_body_attribute.html
new file mode 100755 (executable)
index 0000000..58c5a3b
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_body_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_body_attribute\r
+//==== LABEL Check if attribute body of Message (MMS) exists, has type MessageBody\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:body A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms"),\r
+        samplePlainBody = "sample plainBody",\r
+        invalidArgs, i;\r
+\r
+    assert_true("body" in message, "No 'body' attribute in message");\r
+\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_type(message.body.loaded, "boolean", "message.body.loaded type should be boolean");\r
+    assert_type(message.body.plainBody, "string", "message.body.plainBody type should be string");\r
+\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");\r
+    assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");\r
+\r
+    message.body.plainBody = samplePlainBody;\r
+\r
+    message.body = null;\r
+    assert_not_equals(message.body, null, "'body' should not accept null as value");\r
+\r
+    invalidArgs = [undefined, true, false, NaN, 0, "TIZEN", function () {}];\r
+    for (i = 0 ; i < invalidArgs.length ; i++) {\r
+        message.body = invalidArgs[i];\r
+\r
+        assert_true("messageId" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+        assert_true("loaded" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+        assert_true("plainBody" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+\r
+        assert_equals(message.body.messageId, null, "'messageId' modified after setting the object to " + invalidArgs[i]);\r
+        assert_equals(message.body.loaded, false, "'loaded' modified after setting the object to " + invalidArgs[i]);\r
+        assert_equals(message.body.plainBody, samplePlainBody, "'plainBody' modified after setting the object to " + invalidArgs[i]);\r
+    }\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor.html
new file mode 100755 (executable)
index 0000000..b7736c9
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_constructor</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_constructor\r
+//==== LABEL Check if Message's constructor works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRA CONSTRM\r
+\r
+test(function () {\r
+    var message, subject, plainBody;\r
+\r
+    subject = generateSubject();\r
+    plainBody = "sample plainBody";\r
+\r
+    message = new tizen.Message("messaging.mms", {\r
+        subject: subject,\r
+        to: [TEST_SMS_RECIPIENT],\r
+        plainBody: plainBody\r
+    });\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+    assert_array_equals(message.attachments, [], "'attachments' should be []");\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false");\r
+    assert_equals(message.body.plainBody, plainBody, "'body.plainBody' should be \""+plainBody+"\"");\r
+    assert_equals(message.conversationId, null, "message.conversationId value should be null");\r
+    assert_equals(message.folderId, null, "message.folderId value should be null");\r
+    assert_equals(message.from, null, "'from' should be null");\r
+    assert_equals(message.hasAttachment, false, "'hasAttachment' should be false");\r
+    assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null");\r
+    assert_equals(message.isRead, false, "'isRead' value should be false");\r
+    assert_equals(message.messageStatus, "", "value should be \"sample subject\"");\r
+    assert_equals(message.subject, subject, "'subject' value should be \""+subject+"\"");\r
+    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should be ["+TEST_SMS_RECIPIENT+"]");\r
+    assert_equals(message.type, "messaging.mms", "'type' should be 'messaging.mms'");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_messageInitDict_function.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_messageInitDict_function.html
new file mode 100755 (executable)
index 0000000..01cc221
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_constructor_messageInitDict_function</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_constructor_messageInitDict_function\r
+//==== LABEL Check if Message's constructor works properly with function (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM\r
+\r
+test(function () {\r
+\r
+    var message = new tizen.Message("messaging.mms", function () {});\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_messageInitDict_object.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_messageInitDict_object.html
new file mode 100755 (executable)
index 0000000..c9ad597
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_constructor_messageInitDict_object</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_constructor_messageInitDict_object\r
+//==== LABEL Check if Message's constructor works properly with empty object (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM\r
+\r
+test(function () {\r
+\r
+    var message = new tizen.Message("messaging.mms", {});\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_minargs.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_minargs.html
new file mode 100755 (executable)
index 0000000..45d7f1f
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>Message_mms_constructor_minargs</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_mms_constructor_minargs\r
+//==== LABEL Check if Message's constructor works properly with minimum arguments (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRA CONSTRF\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+    assert_array_equals(message.attachments, [], "'attachments' should be [] by default");\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");\r
+    assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");\r
+    assert_equals(message.conversationId, null, "message.conversationId default value should be null");\r
+    assert_equals(message.folderId, null, "message.folderId default value should be null");\r
+    assert_equals(message.from, null, "'from' should be null");\r
+    assert_equals(message.hasAttachment, false, "'hasAttachment' should be false by default");\r
+    assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");\r
+    assert_equals(message.isRead, false, "'isRead' default value should be false");\r
+    assert_equals(message.messageStatus, "", "Default value should be \"\"");\r
+    assert_equals(message.subject, "", "'subject' default value should be \"\" by default");\r
+    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+    assert_array_equals(message.to, [], "'to' should be [] by default");\r
+    assert_equals(message.type, "messaging.mms", "'type' should be 'messaging.mms'");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_conversationId_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_conversationId_attribute.html
new file mode 100755 (executable)
index 0000000..d7339aa
--- /dev/null
@@ -0,0 +1,101 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_conversationId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_conversationId_attribute\r
+//==== LABEL Check if attribute conversationId of Message (MMS) exists, has type MessageConvId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:conversationId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceError, serviceSuccess, service, sendError, sendSuccess, filterForMessage,\r
+    findMessagesError, findMessagesSuccess, foundMessage;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("conversationId" in message, "No 'conversationId' attribute in message");\r
+    assert_equals(message.conversationId, null, "message.conversationId default value should be null");\r
+    check_readonly(message, "conversationId", null, "object", "12345");\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Incorrect number of messages found");\r
+        assert_equals(messages[0].id, message.id, "Found incorrect message");\r
+        foundMessage = messages[0];\r
+\r
+        assert_type(foundMessage.conversationId, "string", "ConversationId is not a string");\r
+        assert_not_equals(foundMessage.conversationId, "", "ConversationId is empty");\r
+\r
+        check_readonly(foundMessage, "conversationId", foundMessage.conversationId, "string", foundMessage.conversationId + "1");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        filterForMessage = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filterForMessage, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_extend.html
new file mode 100755 (executable)
index 0000000..cc03bee
--- /dev/null
@@ -0,0 +1,47 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface Message (MMS) can be extended with new property\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:Message U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    check_extensibility(message);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_folderId_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_folderId_attribute.html
new file mode 100755 (executable)
index 0000000..9e39c02
--- /dev/null
@@ -0,0 +1,87 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_folderId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_folderId_attribute\r
+//==== LABEL Check if attribute folderId of Message (MMS) exists, has type MessageFolderId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:folderId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceError, serviceSuccess, messageService, sendError,\r
+    sendSuccess;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("folderId" in message, "No 'folderId' attribute in message");\r
+    check_readonly(message, "folderId", null, "object", "12345");\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_type(message.folderId, "string", "folderId is not a string");\r
+        assert_not_equals(message.folderId, "", "folderId is empty");\r
+\r
+        check_readonly(message, "folderId", message.folderId, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, messageService, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_from_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_from_attribute.html
new file mode 100755 (executable)
index 0000000..01e44a5
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_from_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_from_attribute\r
+//==== LABEL Check if attribute from of Message (MMS) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:from A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("from" in message, "No 'from' attribute in message");\r
+    assert_equals(message.from, null, "'from' should be null by default");\r
+    check_readonly(message, "from", null, "object", message.from + "dummyValue");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_hasAttachment_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_hasAttachment_attribute.html
new file mode 100755 (executable)
index 0000000..7885bef
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_hasAttachment_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_hasAttachment_attribute\r
+//==== LABEL Check if attribute hasAttachment of Message (MMS) exists, has type Boolean and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:hasAttachment A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("hasAttachment" in message, "No 'hasAttachment' attribute in message");\r
+    assert_equals(message.hasAttachment, false, "'hasAttachment' should be false by default");\r
+    check_readonly(message, "hasAttachment", message.hasAttachment, "boolean", !message.hasAttachment);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_id_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_id_attribute.html
new file mode 100755 (executable)
index 0000000..f323d67
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_id_attribute\r
+//==== LABEL Check if attribute id of Message (MMS) exists, has type MessageId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceError, serviceSuccess, messageService, sendError,\r
+    sendSuccess;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.mms");\r
+\r
+    assert_own_property(message, "id", "No 'id' attribute in message");\r
+    assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+    check_readonly(message, "id", null, "object", "12345");\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_type(message.id, "string", "Id is not a string");\r
+        assert_not_equals(message.id, "", "Id is empty");\r
+\r
+        check_readonly(message, "id", message.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        sendMessage(t, messageService, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_inResponseTo_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_inResponseTo_attribute.html
new file mode 100755 (executable)
index 0000000..f38993c
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_inResponseTo_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_inResponseTo_attribute\r
+//==== LABEL Check if attribute inResponseTo of Message (MMS) exists, has type MessageId\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:inResponseTo A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ADV ARO\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("inResponseTo" in message, "No 'inResponseTo' attribute in message");\r
+    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");\r
+\r
+    check_readonly(message, "inResponseTo", message.inResponseTo, "string", message.inResponseTo + "dummyValue");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_isRead_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_isRead_attribute.html
new file mode 100755 (executable)
index 0000000..bfdef58
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_isRead_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_isRead_attribute\r
+//==== LABEL Check if attribute isRead of Message (MMS) exists, has type Boolean\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:isRead A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("isRead" in message, "No 'isRead' attribute in message");\r
+    assert_type(message.isRead, "boolean", "'isRead' type should be boolean");\r
+    assert_equals(message.isRead, false, "'isRead' default value should be false");\r
+\r
+    message.isRead = true;\r
+    assert_equals(message.isRead, true, "'isRead' should accept a valid value");\r
+\r
+    message.isRead = null;\r
+    assert_equals(message.isRead, false, "'isRead' should not accept null as value");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_messageStatus_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_messageStatus_attribute.html
new file mode 100755 (executable)
index 0000000..c62357f
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_messageStatus_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_messageStatus_attribute\r
+//==== LABEL Check if attribute messageStatus of Message (MMS) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:messageStatus A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO ADV\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("messageStatus" in message, "No 'messageStatus' attribute in message");\r
+    check_readonly(message, "messageStatus", message.messageStatus, "string", message.messageStatus + "dummyValue");\r
+    assert_equals(message.messageStatus, "", "Default value should be \"\"");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_subject_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_subject_attribute.html
new file mode 100755 (executable)
index 0000000..824708c
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_subject_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_subject_attribute\r
+//==== LABEL Check if attribute subject of Message (MMS) exists, has type DOMString\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:subject A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ASG\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("subject" in message, "No 'subject' attribute in message");\r
+    assert_type(message.subject, "string", "'subject' type should be string");\r
+    assert_equals(message.subject, "", "'subject' default value should be \"\"");\r
+\r
+    message.subject = null;\r
+    assert_equals(message.subject, "null", "according to conversion tables 'subject' should be 'null'");\r
+\r
+    message.subject = "sampleValue";\r
+    assert_equals(message.subject, "sampleValue", "'subject' should accept a valid value");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_timestamp_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_timestamp_attribute.html
new file mode 100755 (executable)
index 0000000..a2f326f
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_timestamp_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_timestamp_attribute\r
+//==== LABEL Check if attribute timestamp of Message (MMS) exists, has type Date and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:timestamp A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, serviceError,\r
+    serviceSuccess, messageService, sendError, sendSuccess, oldDate;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("timestamp" in message, "No 'timestamp' attribute in message");\r
+    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+    check_readonly(message, "timestamp", null, "object", new Date());\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_type(message.timestamp, "date", "timestamp is not a Date");\r
+\r
+        oldDate = message.timestamp;\r
+        message.timestamp = new Date();\r
+        assert_equals(message.timestamp.getTime(), oldDate.getTime(), "timestamp can be modified");\r
+\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        sendMessage(t, messageService, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_to_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_to_attribute.html
new file mode 100755 (executable)
index 0000000..2415465
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_to_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_to_attribute\r
+//==== LABEL Check if attribute to of Message (MMS) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:to A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AN ASG AT\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("to" in message, "No 'to' attribute in message");\r
+    assert_array_equals(message.to, [], "'to' should be [] by default");\r
+    assert_type(message.to, "array", "'to' should be an array");\r
+\r
+    message.to = null;\r
+    assert_array_equals(message.to, [], "'to' should not accept null as value");\r
+\r
+    message.to = [TEST_SMS_RECIPIENT];\r
+    assert_type(message.to, "array", "'to' should be an array");\r
+    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should accept a valid value");\r
+\r
+    message.to = null;\r
+    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should not accept null as value");\r
+\r
+    check_invalid_array_assignments(message, "to", false);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_type_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_type_attribute.html
new file mode 100755 (executable)
index 0000000..6a321a5
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_type_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_type_attribute\r
+//==== LABEL Check if attribute type of Message (MMS) exists, has type MessageServiceTag and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("type" in message, "No 'type' attribute in message");\r
+    assert_equals(message.type, "messaging.mms", "'type' should be 'messaging.mms'");\r
+    check_readonly(message, "type", message.type, "string", message.type + "dummyValue");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_body_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_body_attribute.html
new file mode 100755 (executable)
index 0000000..62e0253
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_body_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_body_attribute\r
+//==== LABEL Check if attribute body of Message (SMS) exists, has type MessageBody\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:body A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms"), invalidArgs, samplePlainBody, i;\r
+\r
+    assert_true("body" in message, "No 'body' attribute in message");\r
+\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_type(message.body.loaded, "boolean", "message.body.loaded type should be boolean");\r
+    assert_type(message.body.plainBody, "string", "message.body.plainBody type should be string");\r
+\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");\r
+    assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");\r
+\r
+    samplePlainBody = "sample plainBody";\r
+    // body\r
+    message.body.plainBody = samplePlainBody;\r
+\r
+    message.body = null;\r
+    assert_not_equals(message.body, null, "'body' should not accept null as value");\r
+\r
+    invalidArgs = [undefined, true, false, NaN, 0, "TIZEN", function () {}];\r
+    for (i = 0; i < invalidArgs.length; i++) {\r
+        message.body = invalidArgs[i];\r
+\r
+        assert_true("messageId" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+        assert_true("loaded" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+        assert_true("plainBody" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+\r
+        assert_equals(message.body.messageId, null, "'messageId' modified after setting the object to " + invalidArgs[i]);\r
+        assert_equals(message.body.loaded, false, "'loaded' modified after setting the object to " + invalidArgs[i]);\r
+        assert_equals(message.body.plainBody, samplePlainBody, "'plainBody' modified after setting the object to " + invalidArgs[i]);\r
+    }\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor.html
new file mode 100755 (executable)
index 0000000..8214d34
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_constructor</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_constructor\r
+//==== LABEL Check if Message's constructor works properly (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRA CONSTRM\r
+\r
+test(function () {\r
+    var message, plainBody;\r
+\r
+    plainBody = generatePlainBody();\r
+\r
+    message = new tizen.Message("messaging.sms", {\r
+        to: [TEST_SMS_RECIPIENT],\r
+        plainBody: plainBody\r
+    });\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false by");\r
+    assert_equals(message.body.plainBody, plainBody, "'body.plainBody' should be \""+plainBody+"\"");\r
+    assert_equals(message.conversationId, null, "message.conversationId value should be null");\r
+    assert_equals(message.folderId, null, "message.folderId value should be null");\r
+    assert_equals(message.from, null, "'from' should be null");\r
+    assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null");\r
+    assert_equals(message.isRead, false, "'isRead' value should be false");\r
+    assert_equals(message.messageStatus, "", "value should be \"\"");\r
+    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should be ["+TEST_SMS_RECIPIENT+"] ");\r
+    assert_equals(message.type, "messaging.sms", "'type' should be 'messaging.sms'");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_function.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_function.html
new file mode 100755 (executable)
index 0000000..bf80059
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_constructor_messageInitDict_function</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_constructor_messageInitDict_function\r
+//==== LABEL Check if Message's constructor works properly with function (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM\r
+\r
+test(function () {\r
+\r
+    var message = new tizen.Message("messaging.sms", function () {});\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_object.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_object.html
new file mode 100755 (executable)
index 0000000..6d31999
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_constructor_messageInitDict_object</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_constructor_messageInitDict_object\r
+//==== LABEL Check if Message's constructor works properly with empty object (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM\r
+\r
+test(function () {\r
+\r
+    var message = new tizen.Message("messaging.sms", {});\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_minargs.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_minargs.html
new file mode 100755 (executable)
index 0000000..ff83b98
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>Message_sms_constructor_minargs</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_sms_constructor_minargs\r
+//==== LABEL Check if Message's constructor works properly with minimum arguments (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM CONSTRA\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+    assert_equals(message.type, "messaging.sms", "message.type should be: 'messaging.sms'");\r
+\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");\r
+    assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");\r
+    assert_equals(message.conversationId, null, "message.conversationId default value should be null");\r
+    assert_equals(message.folderId, null, "message.folderId default value should be null");\r
+    assert_equals(message.from, null, "'from' should be null");\r
+    assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");\r
+    assert_equals(message.isRead, false, "'isRead' default value should be false");\r
+    assert_equals(message.messageStatus, "", "Default value should be \"\"");\r
+    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+    assert_type(message.to, "array", "'to' should be an array");\r
+    assert_equals(message.type, "messaging.sms", "'type' should be 'messaging.sms'");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_conversationId_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_conversationId_attribute.html
new file mode 100755 (executable)
index 0000000..c2592d6
--- /dev/null
@@ -0,0 +1,104 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_conversationId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_conversationId_attribute\r
+//==== LABEL Check if attribute conversationId of Message (SMS) exists, has type MessageConvId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:conversationId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceError, serviceSuccess, service, sendError, sendSuccess, filterForMessage,\r
+    findMessagesError, findMessagesSuccess, foundMessage;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.sms", {\r
+        to: [TEST_SMS_RECIPIENT],\r
+        plainBody: generatePlainBody()\r
+    });\r
+\r
+    assert_true("conversationId" in message, "No 'conversationId' attribute in message");\r
+    assert_equals(message.conversationId, null, "message.conversationId default value should be null");\r
+    check_readonly(message, "conversationId", null, "object", "12345");\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Incorrect number of messages found");\r
+        assert_equals(messages[0].id, message.id, "Found incorrect message");\r
+        foundMessage = messages[0];\r
+\r
+        assert_type(foundMessage.conversationId, "string", "ConversationId is not a string");\r
+        assert_not_equals(foundMessage.conversationId, "", "ConversationId is empty");\r
+\r
+        check_readonly(foundMessage, "conversationId", foundMessage.conversationId, "string", foundMessage.conversationId + "1");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        filterForMessage = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filterForMessage, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        service.sendMessage(message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_extend.html
new file mode 100755 (executable)
index 0000000..8557eb9
--- /dev/null
@@ -0,0 +1,47 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface Message (SMS) can be extended with new property\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:Message U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    check_extensibility(message);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_folderId_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_folderId_attribute.html
new file mode 100755 (executable)
index 0000000..3593856
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_folderId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_folderId_attribute\r
+//==== LABEL Check if attribute folderId of Message (SMS) exists, has type MessageFolderId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:folderId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceError, serviceSuccess, messageService, sendError,\r
+    sendSuccess;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("folderId" in message, "No 'folderId' attribute in message");\r
+    check_readonly(message, "folderId", null, "object", "12345");\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_type(message.folderId, "string", "folderId is not a string");\r
+        assert_not_equals(message.folderId, "", "folderId is empty");\r
+\r
+        check_readonly(message, "folderId", message.folderId, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageService.sendMessage(message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_from_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_from_attribute.html
new file mode 100755 (executable)
index 0000000..f692164
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_from_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_from_attribute\r
+//==== LABEL Check if attribute from of Message (SMS) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:from A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("from" in message, "No 'from' attribute in message");\r
+    assert_equals(message.from, null, "'from' should be null by default");\r
+    check_readonly(message, "from", null, "object", message.from + "dummyValue");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_id_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_id_attribute.html
new file mode 100755 (executable)
index 0000000..c88a253
--- /dev/null
@@ -0,0 +1,87 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_id_attribute\r
+//==== LABEL Check if attribute id of Message (SMS) exists, has type MessageId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceError, serviceSuccess, messageService, sendError,\r
+    sendSuccess;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.sms");\r
+\r
+    assert_own_property(message, "id", "No 'id' attribute in message");\r
+    assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+    check_readonly(message, "id", null, "object", "12345");\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_type(message.id, "string", "Id is not a string");\r
+        assert_not_equals(message.id, "", "Id is empty");\r
+\r
+        check_readonly(message, "id", message.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageService.sendMessage(message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_inResponseTo_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_inResponseTo_attribute.html
new file mode 100755 (executable)
index 0000000..958e134
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_inResponseTo_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_inResponseTo_attribute\r
+//==== LABEL Check if attribute inResponseTo of Message (SMS) exists, has type MessageId\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:inResponseTo A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ADV ARO\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("inResponseTo" in message, "No 'inResponseTo' attribute in message");\r
+    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");\r
+\r
+    check_readonly(message, "inResponseTo", message.inResponseTo, "string", message.inResponseTo + "dummyValue");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_isRead_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_isRead_attribute.html
new file mode 100755 (executable)
index 0000000..d894fdb
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_isRead_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_isRead_attribute\r
+//==== LABEL Check if attribute isRead of Message (SMS) exists, has type Boolean\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:isRead A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("isRead" in message, "No 'isRead' attribute in message");\r
+    assert_type(message.isRead, "boolean", "'isRead' type should be boolean");\r
+    assert_equals(message.isRead, false, "'isRead' default value should be false");\r
+\r
+    message.isRead = true;\r
+    assert_equals(message.isRead, true, "'isRead' should accept a valid value");\r
+\r
+    message.isRead = null;\r
+    assert_equals(message.isRead, false, "'isRead' should not accept null as value");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_messageStatus_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_messageStatus_attribute.html
new file mode 100755 (executable)
index 0000000..3b5938f
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_messageStatus_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_messageStatus_attribute\r
+//==== LABEL Check if attribute messageStatus of Message (SMS) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:messageStatus A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("messageStatus" in message, "No 'messageStatus' attribute in message");\r
+    check_readonly(message, "messageStatus", message.messageStatus, "string", message.messageStatus + "dummyValue");\r
+    assert_equals(message.messageStatus, "", "Default value should be \"\"");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_timestamp_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_timestamp_attribute.html
new file mode 100755 (executable)
index 0000000..daf14e8
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_timestamp_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_timestamp_attribute\r
+//==== LABEL Check if attribute timestamp of Message (SMS) exists, has type Date and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:timestamp A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, serviceError,\r
+    serviceSuccess, messageService, sendError, sendSuccess, oldDate;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("timestamp" in message, "No 'timestamp' attribute in message");\r
+    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+    check_readonly(message, "timestamp", null, "object", new Date());\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_type(message.timestamp, "date", "timestamp is not a Date");\r
+\r
+        oldDate = message.timestamp;\r
+        message.timestamp = new Date();\r
+        assert_equals(message.timestamp.getTime(), oldDate.getTime(), "timestamp can be modified");\r
+\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageService.sendMessage(message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_to_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_to_attribute.html
new file mode 100755 (executable)
index 0000000..616ea4b
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_to_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_to_attribute\r
+//==== LABEL Check if attribute to of Message (SMS) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:to A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ASG\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("to" in message, "No 'to' attribute in message");\r
+    assert_array_equals(message.to, [], "'to' should be [] by default");\r
+    assert_type(message.to, "array", "'to' should be an array");\r
+\r
+    message.to = null;\r
+    assert_array_equals(message.to, [], "'to' should not accept null as value");\r
+\r
+    message.to = [TEST_SMS_RECIPIENT];\r
+    assert_type(message.to, "array", "'to' should be an array");\r
+    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should accept a valid value");\r
+\r
+    message.to = null;\r
+    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should not accept null as value");\r
+\r
+    check_invalid_array_assignments(message, "to", false);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_type_attribute.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_type_attribute.html
new file mode 100755 (executable)
index 0000000..ed758e8
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_type_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_type_attribute\r
+//==== LABEL Check if attribute type of Message (SMS) exists, has type MessageServiceTag and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("type" in message, "No 'type' attribute in message");\r
+    assert_equals(message.type, "messaging.sms", "'type' should be 'messaging.sms'");\r
+    check_readonly(message, "type", message.type, "string", message.type + "dummyValue");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesadded_with_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesadded_with_filter.html
new file mode 100755 (executable)
index 0000000..aa9001a
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_email_messagesadded_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_email_messagesadded_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - email, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, watcherId, filter,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);\r
+            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            assert_equals(addedMessages[0].subject, matchMessage.subject, "Incorrect subject.");\r
+            assert_equals(addedMessages[0].id, matchMessage.id, "Incorrect id.");\r
+            t.done();\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        mismatchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        matchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        filter = new tizen.AttributeFilter("subject", "EXACTLY", matchMessage.subject);\r
+        watcherId = service.messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+        service.messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);\r
+        service.messageStorage.addDraftMessage(matchMessage, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesadded_without_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesadded_without_filter.html
new file mode 100755 (executable)
index 0000000..6731a69
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_email_messagesadded_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_email_messagesadded_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - email, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, service, watcherId,\r
+    message, changeCallback, addDraftError, i;\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_greater_than(addedMessages.length, 0, "Received incorrect number of messages");\r
+\r
+            for (i = 0; i < addedMessages.length; i++) {\r
+                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                assert_equals(addedMessages[i].subject, message.subject, "Incorrect subject.");\r
+\r
+                if (addedMessages[i].id === message.id) {\r
+                    t.done();\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        watcherId = service.messageStorage.addMessagesChangeListener(changeCallback);\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesremoved_with_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesremoved_with_filter.html
new file mode 100755 (executable)
index 0000000..21fad13
--- /dev/null
@@ -0,0 +1,111 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_email_messagesremoved_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_email_messagesremoved_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - email, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceSuccess, serviceError, service, watcherId, filter, matchMessage, mismatchMessage,\r
+    changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0, removeError;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_type(removedMessages, "array", "Not an array.");\r
+            assert_greater_than(removedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < removedMessages.length; i++) {\r
+                assert_true(removedMessages[i] instanceof tizen.Message, "Not a message.");\r
+\r
+                if (removedMessages[i].id === matchMessage.id) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            filter = new tizen.AttributeFilter("id", "EXACTLY", matchMessage.id);\r
+\r
+            watcherId = service.messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+            service.messageStorage.removeMessages([mismatchMessage, matchMessage], null, removeError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        mismatchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);\r
+\r
+        matchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesremoved_without_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesremoved_without_filter.html
new file mode 100755 (executable)
index 0000000..f2b71ac
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_email_messagesremoved_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_email_messagesremoved_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - email, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    watcherId, message, changeCallback, addDraftSuccess, addDraftError, removeError, i;\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            messageService.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_type(removedMessages, "array", "Not an array.");\r
+            assert_greater_than(removedMessages.length, 0, "Received incorrect number of messages");\r
+\r
+            for (i = 0; i < removedMessages.length; i++) {\r
+                assert_true(removedMessages[i] instanceof tizen.Message, "Not a message.");\r
+\r
+                if (removedMessages[i].id === message.id) {\r
+                    t.done();\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        watcherId = messageStorage.addMessagesChangeListener(changeCallback);\r
+\r
+        messageStorage.removeMessages([message], null, removeError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesupdated_with_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesupdated_with_filter.html
new file mode 100755 (executable)
index 0000000..0e9a890
--- /dev/null
@@ -0,0 +1,115 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_email_messagesupdated_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_email_messagesupdated_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - email, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, watcherId, filter,\r
+    matchMessage, mismatchMessage, changeCallback,\r
+    addDraftError, addDraftSuccess, addDraftSuccessCounter = 0, updateError;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("messagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_type(updatedMessages, "array", "Not an array.");\r
+            assert_equals(updatedMessages.length, 1, "Received incorrect number of messages: " + updatedMessages.length);\r
+            assert_true(updatedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            assert_equals(updatedMessages[0].subject, matchMessage.subject, "Incorrect subject.");\r
+            assert_equals(updatedMessages[0].id, matchMessage.id, "Incorrect id.");\r
+            t.done();\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            filter = new tizen.AttributeFilter("id", "EXACTLY", matchMessage.id);\r
+            watcherId = service.messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+            mismatchMessage.subject = generateSubject();\r
+            matchMessage.subject = generateSubject();\r
+\r
+            service.messageStorage.updateMessages([mismatchMessage, matchMessage], null, updateError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        mismatchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        matchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);\r
+        service.messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesupdated_without_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesupdated_without_filter.html
new file mode 100755 (executable)
index 0000000..91db142
--- /dev/null
@@ -0,0 +1,106 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_email_messagesupdated_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_email_messagesupdated_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - email, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, watcherId, message,\r
+    changeCallback, addDraftSuccess, addDraftError, updateError, i;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_type(updatedMessages, "array", "Not an array.");\r
+            assert_greater_than(updatedMessages.length, 0, "Received empty updatedMessages array");\r
+\r
+            for (i = 0; i < updatedMessages.length; i++) {\r
+                assert_true(updatedMessages[i] instanceof tizen.Message, "Not a message.");\r
+\r
+                if (updatedMessages[i].id === message.id) {\r
+                    assert_equals(updatedMessages[i].subject, message.subject, "Incorrect subject.");\r
+                    t.done();\r
+                }\r
+            }\r
+\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        watcherId = service.messageStorage.addMessagesChangeListener(changeCallback);\r
+\r
+        message.subject = generateSubject();\r
+\r
+        service.messageStorage.updateMessages([message], null, updateError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withfilter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withfilter.html
new file mode 100755 (executable)
index 0000000..f7548f9
--- /dev/null
@@ -0,0 +1,104 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_messagesadded_withfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_messagesadded_withfilter\r
+//==== LABEL Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, sendError, filterForTo, msg, listener, service, listenerId;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesadded: t.step_func(function (msgs) {\r
+            assert_greater_than(msgs.length, 0, "Received empty msgs array");\r
+\r
+            t.done();\r
+        }),\r
+        messagesupdated: t.step_func(function (msgs) {\r
+            assert_unreached("should not in messagesupdated");\r
+        }),\r
+        messagesremoved: t.step_func(function (msgs) {\r
+            assert_unreached("should not in messagesremoved");\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        filterForTo = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT_2);\r
+        listenerId = service.messageStorage.addMessagesChangeListener(listener, filterForTo);\r
+\r
+        msg = new tizen.Message("messaging.sms",\r
+                {plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2 ] });\r
+        sendMessage(t, service, msg, null, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withoutfilter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withoutfilter.html
new file mode 100755 (executable)
index 0000000..7efa1c0
--- /dev/null
@@ -0,0 +1,102 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_messagesadded_withoutfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_messagesadded_withoutfilter\r
+//==== LABEL Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceError, serviceSuccess, sendError, message, listener, service, listenerId;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_greater_than(addedMessages.length, 0, "Received empty messages array");\r
+            for (i = 0; i < addedMessages.length; i++) {\r
+                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (addedMessages[i].id === message.id) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addMessagesChangeListener(listener);\r
+        message = new tizen.Message("messaging.sms",\r
+                {plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2 ]});\r
+        sendMessage(t, service, message, null, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withfilter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withfilter.html
new file mode 100755 (executable)
index 0000000..5dee234
--- /dev/null
@@ -0,0 +1,124 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_messagesupdated_withfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_messagesupdated_withfilter\r
+//==== LABEL Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+        serviceError, serviceSuccess, sendSuccess, sendError, findfilter, msg, listener, updateError,\r
+        findSuccess, findError, service, listenerfilter, listenerId;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesadded: t.step_func(function (messages) {\r
+            assert_unreached("Should not enter messagesadded: " + messages.length);\r
+        }),\r
+        messagesupdated: t.step_func(function (messages) {\r
+            assert_greater_than(messages.length, 0, "Received empty messages array in messagesupdated");\r
+\r
+            t.done();\r
+        }),\r
+        messagesremoved: t.step_func(function (messages) {\r
+            assert_unreached("Should not enter messagesremoved: " + messages.length);\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array after findMessages()");\r
+        messages[0].isRead = !messages[0].isRead;\r
+        service.messageStorage.updateMessages(messages, null, updateError);\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        listenerfilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        listenerId = service.messageStorage.addMessagesChangeListener(listener, listenerfilter);\r
+        findfilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT_2);\r
+        service.messageStorage.findMessages(findfilter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        msg = new tizen.Message("messaging.sms",\r
+                { plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2 ] });\r
+\r
+        sendMessage(t, service, msg, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withoutfilter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withoutfilter.html
new file mode 100755 (executable)
index 0000000..7670535
--- /dev/null
@@ -0,0 +1,123 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_messagesupdated_withoutfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_messagesupdated_withoutfilter\r
+//==== LABEL Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+        serviceError, serviceSuccess, sendSuccess, sendError, findfilter, msg, listener, updateError,\r
+        findSuccess, findError, service, listenerId;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_type(updatedMessages, "array", "Not an array.");\r
+            assert_greater_than(updatedMessages.length, 0, "Received empty messages array");\r
+            for (i = 0; i < updatedMessages.length; i++) {\r
+                assert_true(updatedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (updatedMessages[i].id === msg.id) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "No messages found.");\r
+        messages[0].isRead = !messages[0].isRead;\r
+        service.messageStorage.updateMessages(messages, null, updateError);\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        listenerId = service.messageStorage.addMessagesChangeListener(listener);\r
+        findfilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT_2);\r
+        service.messageStorage.findMessages(findfilter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        msg = new tizen.Message("messaging.sms",\r
+                { plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2] });\r
+\r
+        sendMessage(t, service, msg, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesadded_with_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesadded_with_filter.html
new file mode 100755 (executable)
index 0000000..ecff4d7
--- /dev/null
@@ -0,0 +1,113 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_mms_messagesadded_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_mms_messagesadded_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - mms, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),\r
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),\r
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),\r
+    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },\r
+    matchInitDict = initDict, mismatchInitDict = initDict,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, loadSuccess, loadError;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);\r
+            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+        mismatchInitDict.plainBody = mismatchPlainBodyToSet;\r
+        mismatchMessage = new tizen.Message("messaging.mms", mismatchInitDict);\r
+        messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);\r
+\r
+        matchInitDict.plainBody = matchPlainBodyToSet;\r
+        matchMessage = new tizen.Message("messaging.mms", matchInitDict);\r
+        messageStorage.addDraftMessage(matchMessage, null, addDraftError);\r
+\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesadded_without_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesadded_without_filter.html
new file mode 100755 (executable)
index 0000000..e42f6bf
--- /dev/null
@@ -0,0 +1,115 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_mms_messagesadded_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_mms_messagesadded_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - mms, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), message,\r
+    changeCallback, addDraftError, loadSuccess, loadError, removeAllSuccess, i;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            if (subscriptionIdentifier) {\r
+                messageStorage.removeChangeListener(subscriptionIdentifier);\r
+            }\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, plainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, message.id, "Incorrect id.");\r
+        removeAllMessages(t, messageService, removeAllSuccess);\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_greater_than(addedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < addedMessages.length; i++) {\r
+                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (addedMessages[i].id === message.id) {\r
+                    messageStorage.removeChangeListener(subscriptionIdentifier);\r
+                    subscriptionIdentifier = null;\r
+                    messageService.loadMessageBody(addedMessages[i], loadSuccess, loadError);\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: plainBodyToSet\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesremoved_with_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesremoved_with_filter.html
new file mode 100755 (executable)
index 0000000..14c9541
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_mms_messagesremoved_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_mms_messagesremoved_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - mms, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),\r
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),\r
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),\r
+    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },\r
+    matchInitDict = initDict, mismatchInitDict = initDict,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0,\r
+    updateError;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("messagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("updatedMessages callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_type(removedMessages, "array", "Not an array.");\r
+            assert_equals(removedMessages.length, 1, "Received incorrect number of messages: " + removedMessages.length);\r
+            assert_true(removedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            assert_equals(removedMessages[0].id, matchMessage.id, "Invalid message given to callback");\r
+            t.done();\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            filter = new tizen.AttributeFilter("id", "EXACTLY", matchMessage.id);\r
+            subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+            messageStorage.removeMessages([mismatchMessage, matchMessage], null, updateError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        mismatchInitDict.subject = mismatchPlainBodyToSet;\r
+        mismatchMessage = new tizen.Message("messaging.mms", mismatchInitDict);\r
+        messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);\r
+\r
+        matchInitDict.subject = matchPlainBodyToSet;\r
+        matchMessage = new tizen.Message("messaging.mms", matchInitDict);\r
+        messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesremoved_without_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesremoved_without_filter.html
new file mode 100755 (executable)
index 0000000..b8d0113
--- /dev/null
@@ -0,0 +1,107 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_mms_messagesremoved_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_mms_messagesremoved_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - mms, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, message, changeCallback, addDraftSuccess, addDraftError, removeError, i;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            if (subscriptionIdentifier) {\r
+                messageStorage.removeChangeListener(subscriptionIdentifier);\r
+            }\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_type(removedMessages, "array", "Not an array.");\r
+            assert_greater_than(removedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < removedMessages.length; i++) {\r
+                assert_true(removedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (removedMessages[i].id === message.id) {\r
+                    messageStorage.removeChangeListener(subscriptionIdentifier);\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+\r
+        messageStorage.removeMessages([message], null, removeError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesupdated_with_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesupdated_with_filter.html
new file mode 100755 (executable)
index 0000000..6db586a
--- /dev/null
@@ -0,0 +1,125 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_mms_messagesupdated_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_mms_messagesupdated_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - mms, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),\r
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),\r
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),\r
+    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },\r
+    matchInitDict = initDict, mismatchInitDict = initDict,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0,\r
+    updateError, loadSuccess, loadError;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("messagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_type(updatedMessages, "array", "Not an array.");\r
+            assert_equals(updatedMessages.length, 1, "Received incorrect number of messages: " + updatedMessages.length);\r
+            assert_true(updatedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            messageService.loadMessageBody(updatedMessages[0], loadSuccess, loadError);\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);\r
+            subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+            mismatchMessage.body.plainBody = mismatchPlainBodyToSet;\r
+            matchMessage.body.plainBody = matchPlainBodyToSet;\r
+\r
+            messageStorage.updateMessages([mismatchMessage, matchMessage], null, updateError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        mismatchMessage = new tizen.Message("messaging.mms", mismatchInitDict);\r
+        messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);\r
+\r
+        matchMessage = new tizen.Message("messaging.mms", matchInitDict);\r
+        messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesupdated_without_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesupdated_without_filter.html
new file mode 100755 (executable)
index 0000000..15560ba
--- /dev/null
@@ -0,0 +1,117 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_mms_messagesupdated_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_mms_messagesupdated_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - mms, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), message,\r
+    changeCallback, addDraftSuccess, addDraftError, updateError, loadSuccess, loadError,\r
+    i;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, plainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, message.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_type(updatedMessages, "array", "Not an array.");\r
+            assert_greater_than(updatedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < updatedMessages.length; i++) {\r
+                assert_true(updatedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (updatedMessages[i].id === message.id) {\r
+                    messageStorage.removeChangeListener(subscriptionIdentifier);\r
+                    messageService.loadMessageBody(updatedMessages[i], loadSuccess, loadError);\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+        message.body.plainBody = plainBodyToSet;\r
+\r
+        messageStorage.updateMessages([message], null, updateError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_notexist.html
new file mode 100755 (executable)
index 0000000..c30c6f0
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessagesChangeCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:MessagesChangeCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessagesChangeCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_with_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_with_filter.html
new file mode 100755 (executable)
index 0000000..7cd3350
--- /dev/null
@@ -0,0 +1,113 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_sms_messagesadded_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_sms_messagesadded_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - sms, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),\r
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),\r
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),\r
+    smsMessageInitDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },\r
+    matchInitDict = smsMessageInitDict, mismatchInitDict = smsMessageInitDict,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, loadSuccess, loadError;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);\r
+            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+        mismatchInitDict.plainBody = mismatchPlainBodyToSet;\r
+        mismatchMessage = new tizen.Message("messaging.sms", mismatchInitDict);\r
+        messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);\r
+\r
+        matchInitDict.plainBody = matchPlainBodyToSet;\r
+        matchMessage = new tizen.Message("messaging.sms", matchInitDict);\r
+        messageStorage.addDraftMessage(matchMessage, null, addDraftError);\r
+\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_without_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_without_filter.html
new file mode 100755 (executable)
index 0000000..64b086b
--- /dev/null
@@ -0,0 +1,106 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_sms_messagesadded_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_sms_messagesadded_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - sms, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, message, changeCallback, addDraftError, loadSuccess, loadError, i, plainBody;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, plainBody, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, message.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_greater_than(addedMessages.length, 0, "Received empty messages array");\r
+            for (i = 0; i < addedMessages.length; i++) {\r
+                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (addedMessages[i].id === message.id) {\r
+                    messageService.loadMessageBody(addedMessages[i], loadSuccess, loadError);\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+\r
+        plainBody = generatePlainBody();\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: plainBody\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_with_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_with_filter.html
new file mode 100755 (executable)
index 0000000..7113a41
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_sms_messagesremoved_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_sms_messagesremoved_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - sms, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, messageService, messageStorage, subscriptionIdentifier, filter,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0, updateError;\r
+\r
+t.step(function () {\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("messagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("updatedMessages callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_type(removedMessages, "array", "Not an array.");\r
+            assert_equals(removedMessages.length, 1, "Received incorrect number of messages: " + removedMessages.length);\r
+            assert_true(removedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            assert_equals(removedMessages[0].id, matchMessage.id, "Invalid message given to callback");\r
+            t.done();\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            filter = new tizen.AttributeFilter("id", "EXACTLY", matchMessage.id);\r
+            subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+            messageStorage.removeMessages([mismatchMessage, matchMessage], null, updateError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        mismatchMessage = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);\r
+\r
+        matchMessage = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_without_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_without_filter.html
new file mode 100755 (executable)
index 0000000..d60e5e6
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_sms_messagesremoved_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_sms_messagesremoved_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - sms, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, message, changeCallback, addDraftSuccess, addDraftError, removeError, i;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_type(removedMessages, "array", "Not an array.");\r
+            assert_greater_than(removedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < removedMessages.length; i++) {\r
+                assert_true(removedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (removedMessages[i].id === message.id) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+\r
+        messageStorage.removeMessages([message], null, removeError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_with_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_with_filter.html
new file mode 100755 (executable)
index 0000000..38f600f
--- /dev/null
@@ -0,0 +1,129 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_sms_messagesupdated_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_sms_messagesupdated_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - sms, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),\r
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),\r
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0,\r
+    updateError, loadSuccess, loadError;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("messagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_type(updatedMessages, "array", "Not an array.");\r
+            assert_equals(updatedMessages.length, 1, "Received incorrect number of messages: " + updatedMessages.length);\r
+            assert_true(updatedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            messageService.loadMessageBody(updatedMessages[0], loadSuccess, loadError);\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);\r
+            subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+            mismatchMessage.body.plainBody = mismatchPlainBodyToSet;\r
+            matchMessage.body.plainBody = matchPlainBodyToSet;\r
+\r
+            messageStorage.updateMessages([mismatchMessage, matchMessage], null, updateError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        mismatchMessage = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);\r
+\r
+        matchMessage = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_without_filter.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_without_filter.html
new file mode 100755 (executable)
index 0000000..baa136a
--- /dev/null
@@ -0,0 +1,114 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_sms_messagesupdated_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_sms_messagesupdated_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - sms, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), message, i,\r
+    changeCallback, initDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },\r
+    addDraftSuccess, addDraftError, updateError, loadSuccess, loadError;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, plainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, message.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_type(updatedMessages, "array", "Not an array.");\r
+            assert_greater_than(updatedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < updatedMessages.length; i++) {\r
+                assert_true(updatedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (updatedMessages[i].id === message.id) {\r
+                    messageService.loadMessageBody(updatedMessages[i], loadSuccess, loadError);\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+        message.body.plainBody = plainBodyToSet;\r
+\r
+        messageStorage.updateMessages([message], null, updateError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", initDict);\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices.html
new file mode 100755 (executable)
index 0000000..8bc153a
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_email_getMessageServices</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_email_getMessageServices\r
+//==== LABEL Check if getMessageServices works properly (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, i, returnedValue = null;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        assert_type(services, "array", "Not an array");\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        for(i = 0; i< services.length; i++){\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.email", "Type is not equal email");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    returnedValue = tizen.messaging.getMessageServices("messaging.email", serviceSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..4aaea7c
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_email_getMessageServices_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_email_getMessageServices_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of Messaging.getMessageServices method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    exceptionName, serviceSuccess, i, incorrectCallback, conversionTable;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function () {\r
+        assert_unreached("getMessageServices() success callback invoked.");\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+    for(i = 0; i < conversionTable.length; i++) {\r
+        incorrectCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.email", serviceSuccess, incorrectCallback);\r
+        }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..8d14939
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_email_getMessageServices_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_email_getMessageServices_errorCallback_invalid_cb\r
+//==== LABEL Check if Messaging.getMessageServices method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    exceptionName = "TypeMismatchError", serviceSuccess, incorrectCallback;\r
+\r
+t.step(function () {\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("getMessageServices() error callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function () {\r
+        assert_unreached("getMessageServices() success callback invoked.");\r
+    });\r
+\r
+    assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.email", serviceSuccess, incorrectCallback);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..6d94d05
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_email_getMessageServices_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_email_getMessageServices_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of Messaging.getMessageServices method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    exceptionName, serviceError, i, incorrectCallback, conversionTable;\r
+\r
+t.step(function () {\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("functionObject", false);\r
+\r
+    for(i = 0; i < conversionTable.length; i++) {\r
+        incorrectCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.email", incorrectCallback, serviceError);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..f487a52
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_email_getMessageServices_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_email_getMessageServices_successCallback_invalid_cb\r
+//==== LABEL Check if Messaging.getMessageServices method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    exceptionName = "TypeMismatchError", serviceError, incorrectCallback;\r
+\r
+t.step(function () {\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("getMessageServices() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.email", incorrectCallback, serviceError);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..fc2b98e
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_email_getMessageServices_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_email_getMessageServices_with_errorCallback\r
+//==== LABEL Check if getMessageServices works properly with all arguments (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, i, returnedValue = null;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        assert_type(services, "array", "Not an array");\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        for(i = 0; i< services.length; i++){\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.email", "Type is not equal email");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    returnedValue = tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_extend.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_extend.html
new file mode 100755 (executable)
index 0000000..d3a5ea5
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>Messaging_extend</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: Messaging_extend\r
+//==== LABEL Check if Messaging is extendable\r
+//==== PRIORITY P3\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:Messaging U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+\r
+test(function () {\r
+    check_extensibility(tizen.messaging);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_exist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_exist.html
new file mode 100755 (executable)
index 0000000..d6763c9
--- /dev/null
@@ -0,0 +1,47 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_getMessageServices_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_getMessageServices_exist\r
+//==== LABEL Check if method getMessageServices exists\r
+//==== PRIORITY P0\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+\r
+test(function () {\r
+    assert_true("getMessageServices" in tizen.messaging, "No getMessageServices method in messaging");\r
+    check_method_exists(tizen.messaging, "getMessageServices");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_messageServiceType_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_messageServiceType_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..529a6e5
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_getMessageServices_messageServiceType_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_getMessageServices_messageServiceType_TypeMismatch\r
+//==== LABEL Check type conversions for messageServiceType argument of Messaging.getMessageServices method\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, conversionTable, i, invalidType, exceptionName;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("enum", false);\r
+\r
+    for(i = 0; i < conversionTable.length; i++) {\r
+        invalidType = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws ({name: exceptionName},\r
+            function () {\r
+                tizen.messaging.getMessageServices(invalidType, serviceSuccess, serviceError);\r
+            }, "Constructed object with invalid MessageServiceType - " + invalidType);\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_missarg.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_missarg.html
new file mode 100755 (executable)
index 0000000..dbfc933
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_getMessageServices_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_getMessageServices_missarg\r
+//==== LABEL Check with missing non-optional argument - Messaging.getMessageServices\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+test(function () {\r
+    assert_throws(TYPE_MISMATCH_EXCEPTION,\r
+        function () {\r
+            tizen.messaging.getMessageServices();\r
+        }, TYPE_MISMATCH_ERR + " should be thrown - missing argument");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_without_error_callback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_without_error_callback.html
new file mode 100755 (executable)
index 0000000..9e45430
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>Messaging_getMessageServices_without_error_callback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: Messaging_getMessageServices_without_error_callback\r
+//==== LABEL Check if MessageService.getMessageServices method works properly without errorCallback argument (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices.html
new file mode 100755 (executable)
index 0000000..3e10e96
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_mms_getMessageServices</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_mms_getMessageServices\r
+//==== LABEL Check if type attribute exists in MessageService\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, i, returnedValue = null;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        assert_true(services.length > 0, "Received empty services array");\r
+\r
+        for(i = 0; i< services.length; i++){\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.mms", "Type is not equal mms");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    returnedValue = tizen.messaging.getMessageServices("messaging.mms", serviceSuccess);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..39c19fd
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_mms_getMessageServices_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_mms_getMessageServices_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.getMessageServices method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), conversionTable, exceptionName, serviceSuccess, i, incorrectCallback;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("functionObject", true);\r
+    for(i = 0; i < conversionTable.length; i++) {\r
+        incorrectCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, incorrectCallback);\r
+        }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..742b289
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_mms_getMessageServices_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_mms_getMessageServices_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", serviceSuccess,\r
+    incorrectCallback;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("getMessageServices() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, incorrectCallback);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..197e1bc
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_mms_getMessageServices_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_mms_getMessageServices_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.getMessageServices method (mms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), exceptionName, serviceError, i, incorrectCallback, conversionTable;\r
+t.step(function () {\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("functionObject", false);\r
+    for(i = 0; i < conversionTable.length; i++) {\r
+        incorrectCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.mms", incorrectCallback, serviceError);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..04481ac
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_mms_getMessageServices_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_mms_getMessageServices_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.getMessageServices method throws exception when successCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", serviceError, incorrectCallback;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.mms", incorrectCallback, serviceError);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..9abc01b
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_mms_getMessageServices_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_mms_getMessageServices_with_errorCallback\r
+//==== LABEL Check if MessageService.getMessageServices method works properly with errorCallback argument (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, i, returnedValue = null;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        assert_true(services.length > 0, "Received empty services array");\r
+\r
+        for(i = 0; i< services.length; i++){\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.mms", "Type is not equal mms");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    returnedValue = tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_notexist.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_notexist.html
new file mode 100755 (executable)
index 0000000..a38328b
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface Messaging exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:Messaging U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA NIO\r
+\r
+test(function () {\r
+    check_no_interface_object("Messaging");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices.html
new file mode 100755 (executable)
index 0000000..1057ad9
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_sms_getMessageServices</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_sms_getMessageServices\r
+//==== LABEL Check if MessageService.getMessageServices method works properly (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, i, returnedValue = null;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        assert_true(services.length > 0, "Received empty services array");\r
+\r
+        for(i = 0; i< services.length; i++) {\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.sms", "Type is not equal sms");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    returnedValue = tizen.messaging.getMessageServices("messaging.sms", serviceSuccess);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..689f242
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_sms_getMessageServices_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_sms_getMessageServices_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), conversionTable, exceptionName, serviceSuccess, i, incorrectCallback;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("functionObject", true);\r
+    for(i = 0; i < conversionTable.length; i++) {\r
+        incorrectCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, incorrectCallback);\r
+        }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..df4a5f7
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_sms_getMessageServices_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_sms_getMessageServices_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", serviceSuccess,\r
+    incorrectCallback;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("getMessageServices() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, incorrectCallback);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..1ac0b21
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_sms_getMessageServices_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_sms_getMessageServices_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), exceptionName, serviceError, i, incorrectCallback, conversionTable;\r
+t.step(function () {\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("functionObject", false);\r
+    for(i = 0; i < conversionTable.length; i++) {\r
+        incorrectCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.sms", incorrectCallback, serviceError);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_invalid_cb.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..26652e0
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_sms_getMessageServices_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_sms_getMessageServices_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", serviceError, incorrectCallback;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("getMessageServices() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.sms", incorrectCallback, serviceError);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_with_errorCallback.html b/iot/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..e2d6f06
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_sms_getMessageServices_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_sms_getMessageServices_with_errorCallback\r
+//==== LABEL Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MOA\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, i, returnedValue = null;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        assert_true(services.length > 0, "Received empty services array");\r
+\r
+        for(i = 0; i< services.length; i++) {\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.sms", "Type is not equal sms");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    returnedValue = tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
index aa4c2227b21e9204e65a0b88195d7330e6e4bbc7..6f488a2b3b3675bd4dc8b940659f6bd16fce0294 100755 (executable)
         </specs>
       </testcase>
     </set>
+    <set name="Messaging-EMAIL-1st_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if interface MessageArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method onsuccess of MessageArraySuccessCallback works" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageAttachmentSuccessCallback, onsuccess, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachmentSuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachmentSuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageAttachmentSuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachmentSuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachmentSuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageAttachment's constructor works" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageAttachment's constructor works with minimum arguments" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor_minargs">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor_minargs.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageAttachment exists" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageAttachment_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageAttachment can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachment_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute filePath of MessageAttachment exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_filePath_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_filePath_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="filePath" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id of MessageAttachment exists, has type MessageAttachmentId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_id_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageAttachment exists, has type MessageId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_messageId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_messageId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute mimeType of MessageAttachment exists, has type DOMString and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_mimeType_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_mimeType_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="mimeType" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type (email message)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBodySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageBodySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBodySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBodySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBodySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageBody (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute htmlBody of MessageBody (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_htmlBody_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_htmlBody_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="htmlBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute inlineAttachments of MessageBody (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_inlineAttachments_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_inlineAttachments_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="inlineAttachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute loaded of MessageBody (email) exists, has type Boolean and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_loaded_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_loaded_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="loaded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageBody (email) exists, has type MessageId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_messageId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_messageId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute plainBody of MessageBody (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_plainBody_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_plainBody_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="plainBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageBody exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageConversationArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method onsuccess of MessageConversationArraySuccessCallback works" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute bcc of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_bcc_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_bcc_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="bcc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute cc of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_cc_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_cc_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="cc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageConversation can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute from of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_from_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_from_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute id of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_id_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute isRead of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_isRead_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_isRead_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute lastMessageId of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_lastMessageId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_lastMessageId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="lastMessageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute messageCount of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_messageCount_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_messageCount_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="messageCount" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageConversation exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute preview of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_preview_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_preview_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="preview" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute subject of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_subject_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_subject_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="subject" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute timestamp of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_timestamp_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_timestamp_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute to of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_to_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_to_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute type of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute unreadMessages of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_unreadMessages_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_unreadMessages_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="unreadMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if conversationsadded callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsremoved">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsremoved.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsupdated">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsupdated.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageConversationsChangeCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationsChangeCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageFolderArraySuccessCallback, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolderArraySuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolderArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageFolderArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolderArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolderArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the attribute contentType in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_contentType_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_contentType_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="contentType" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute contentType of MessageFolder (email) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_contentType_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_contentType_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="contentType" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageFolder (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id of MessageFolder (email) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_id_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute name of MessageFolder (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_name_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_name_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="name" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute parentId of MessageFolder (email) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_parentId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_parentId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="parentId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute path of MessageFolder (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_path_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_path_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="path" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute serviceId of MessageFolder (email) exists, has appropriate type and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_serviceId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_serviceId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="serviceId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute synchronizable of MessageFolder (email) exists, has type Boolean" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_synchronizable_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_synchronizable_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="synchronizable" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageFolder (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the attribute id in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_id_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_id_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageFolder exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the attribute path in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_path_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_path_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="path" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the attribute type in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_type_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_type_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if foldersadded callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersadded">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersadded.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFoldersChangeCallback" element_type="method" element_name="foldersadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if foldersremoved callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersremoved">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersremoved.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFoldersChangeCallback" element_type="method" element_name="foldersremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if foldersupdated callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersupdated">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersupdated.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFoldersChangeCallback" element_type="method" element_name="foldersupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageFoldersChangeCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFoldersChangeCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFoldersChangeCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Checks various message attributes upon message (email) creation" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_email">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_email.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the attribute messaging in MessageManagerObject" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageManagerObject_messaging">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_messaging.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageManagerObject exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageManagerObject_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageManagerObject" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type, check argument recipients type - DOMString[]" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageRecipientsCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_email_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageRecipientsCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageRecipientsCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageRecipientsCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageRecipientsCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageServiceArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageServiceArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageServiceArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the function onsuccess in MessageServiceArraySuccessCallback" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageService (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id of MessageService (email) exists, has appropriate type and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_id_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for attachment argument of MessageService.loadMessageAttachment method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when attachment is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageAttachment method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method loadMessageAttachment of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageAttachment_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageAttachment (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageAttachment method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageBody method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method loadMessageBody of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageBody_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if message argument of MessageService::loadMessageBody will throw exception when given invalid type argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check invalid object for message argument of MessageService::loadMessageBody method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_invalid_obj">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg_message">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg_message.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageBody method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method works properly with errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageStorage of MessageService (email) exists, has type MessageStorage and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_messageStorage_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_messageStorage_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="messageStorage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute name of MessageService (email) exists, has appropriate type and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_name_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_name_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="name" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-2nd_iot">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if MessageService.sendMessage method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method sendMessage of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sendMessage_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_invalid_obj">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method stopSync of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_stopSync_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService::stopSync (for sync) method silently fails without argument" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_stopSync_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method syncFolder of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_syncFolder_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_syncFolder_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method sync of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sync_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sync_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageService (email) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageService exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageService_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly with bcc (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithBcc">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithBcc.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly with highPriority (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithPriority">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithPriority.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_email_without_callbacks">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.stopSync (for sync) method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_sync">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_sync.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.stopSync (for syncFolder) method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_syncFolder">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_syncFolder.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.syncFolder method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for folder argument of MessageService.syncFolder method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_folder_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_folder_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.syncFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.syncFolder method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method throws exception when successCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method works properly with limit" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_limit">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if syncFolder method with successCallback optional argument works" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly without param" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_emailwithoutparam">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_emailwithoutparam.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sync method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly without arguments" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_foremail">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_foremail.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sync method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method throws exception when successCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly with limit argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_limit">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_limit.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly with successCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addConversationsChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing mandatory argument - MessageStorage.addConversationsChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly with filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addConversationsChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_withoutcb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutcb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addConversationsChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-3rd_iot">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addDraftMessage of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addDraftMessage_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_invalid_obj">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addFoldersChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addFoldersChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for foldersChangeCallback argument of MessageStorage.addFoldersChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addFoldersChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method works properly when update data" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="manual" priority="P1" id="MessageStorage_email_addFoldersChangeListener_updatedata">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_updatedata.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly with filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addMessagesChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageStorage (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check errorCallback argument of findConversations will be throw exception with invalid argument type" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method findConversations of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findConversations_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage::findConversations method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_from">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_from.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when filter is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_to">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_to.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_type">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_type.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage::findConversations (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage::findConversations method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when sort is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findConversations method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with all optional argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_offset">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_offset.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort by time descending (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort_time_desc">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort_time_desc.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method findFolders of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findFolders_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findFolders_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages and MessageStorage.loadMessageBody methods work properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_and_loadMessageBody">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_and_loadMessageBody.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by bcc (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_bcc_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_bcc_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by cc (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_cc_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_cc_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-4th_iot">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if method findMessages of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findMessages_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when filter is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by folderId (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_folderId_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_folderId_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by from (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_from_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by hasAttachment (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_hasAttachment_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by id (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_id_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_id_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isHighPriority (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isHighPriority_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isRead (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isRead_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isRead_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check without arguments - MessageStorage::findMessages" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by plainBody (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_plainBody_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by serviceId (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_serviceId_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_serviceId_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when sort is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by timestamp (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_timestamp_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by to (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_to_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_to_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by type (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_type_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_type_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method works properly with all optional argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_with_offset">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_with_offset.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeConversations of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeConversations_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeConversations_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeMessages of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeMessages_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method updateMessages of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_updateMessages_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_messages_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_messages_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing message argument -  MessageStorage.updateMessages (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findFolders method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findFolders method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders works properly for filter by serviceId" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_filter_serviceId">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_serviceId.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findFolders" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findFolders method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessage_emailFilterWithoutErrorCb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageStorage exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::removeChangeListener method works properly - for conversation listener (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations_email">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations_email.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method(email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder_email">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder_email.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for conversations argument of MessageStorage.removeConversations method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_conversations_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeConversations method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_foremail">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_foremail.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeConversations method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when successCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly with successCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly without errorCallback" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessage_emailwithouterrcb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessage_emailwithouterrcb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly without non-optional arguments (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.removeMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_messages_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_messages_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeMessages (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly with errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly with successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-5th_iot">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check: Add a draft message and update it, and then remove it" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_addUpdateRemove">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_addUpdateRemove.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the attribute attachments in Message" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_attachments_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_attachments_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="attachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute attachments of Message (email) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_attachments_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_attachments_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="attachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute bcc of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_bcc_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_bcc_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="bcc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute body of Message (email) exists, has type MessageBody" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_body_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_body_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="body" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute cc of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_cc_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_cc_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="cc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with function (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_function">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_function.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with empty object (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_object">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_object.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_minargs">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_minargs.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute conversationId of Message (email) exists, has type MessageConvId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_conversationId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_conversationId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="conversationId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface Message (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute folderId of Message (email) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_folderId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_folderId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="folderId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute from of Message (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_from_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_from_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute hasAttachment of Message (email) exists, has type Boolean and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_hasAttachment_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_hasAttachment_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="hasAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id of Message (email) exists, has type MessageId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_id_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute inResponseTo of Message (email) exists, has type MessageId" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_inResponseTo_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_inResponseTo_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="inResponseTo" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute isHighPriority of Message (email) exists, has type Boolean" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isHighPriority_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isHighPriority_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="isHighPriority" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute isRead of Message (email) exists, has type Boolean" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isRead_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isRead_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageStatus of Message (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_messageStatus_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_messageStatus_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="messageStatus" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute subject of Message (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_subject_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_subject_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="subject" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute timestamp of Message (email) exists, has type Date and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_timestamp_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_timestamp_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute to of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_to_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_to_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type of Message (email) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message exists" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute hasAttachment in Message" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_hasAttachment_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_hasAttachment_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="hasAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, no filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, no filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, no filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessagesChangeCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessagesChangeCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if getMessageServices works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of Messaging.getMessageServices method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Messaging.getMessageServices method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of Messaging.getMessageServices method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Messaging.getMessageServices method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if getMessageServices works properly with all arguments (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Messaging is extendable" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method getMessageServices exists" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Messaging_getMessageServices_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messageServiceType argument of Messaging.getMessageServices method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_messageServiceType_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_messageServiceType_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - Messaging.getMessageServices" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface Messaging exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-mms_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if instance of interface MessageBody (MMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute loaded of MessageBody (MMS) exists, has type Boolean and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_loaded_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_loaded_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="loaded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageBody (MMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_messageId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_messageId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute plainBody of MessageBody (MMS) exists, has type DOMString" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_plainBody_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_plainBody_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="plainBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsremoved">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsremoved.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsupdated">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsupdated.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Checks various message attributes upon message (mms) creation" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_mms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_mms.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_mms_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageServiceArraySuccessCallback_mms_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageService (MMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method loadMessageAttachment of MessageService (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageAttachment_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageAttachment_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method loadMessageBody of MessageService (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageBody_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_loadMessageBody_missarg_message">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_missarg_message.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageStorage of MessageService (MMS) exists, has type MessageStorage and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_messageStorage_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_messageStorage_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="messageStorage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method sendMessage of MessageService (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_sendMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageService (MMS) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_mms_without_callbacks">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_sendMessage_mms_without_callbacks.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_body_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_body_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId equal to 3" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_folderId_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_folderId_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_from_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_from_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment equal to false" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_hasAttachment_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_hasAttachment_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead equal to true" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_isRead_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_isRead_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_mms_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_mms_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by subject (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_subject_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_subject_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_timestamp_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_timestamp_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_to_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_to_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationChangeListener method throws exception when conversationsChangeCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addConversationsChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addDraftMessage of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addDraftMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addFoldersChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (mms)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="300">/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addMessagesChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageStorage (MMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-MMS-2_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if method findConversations of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_from">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_from.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_id">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_id.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by messageCount (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_messageCount">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_messageCount.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by preview (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_preview">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_preview.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by timestamp (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_timestamp">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_to">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_type">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_type.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by unreadMessages (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_unreadMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_unreadMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method findFolders of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findFolders_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findFolders_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method findMessages of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_folderId_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_folderId_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_from_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_from_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_hasAttachment_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_id_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_id_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_isRead_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_isRead_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_plainBody_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_timestamp_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_to_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_to_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_type_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_type_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-MMS-3_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if method removeChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeConversations of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeConversations_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeMessages of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method updateMessages of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_updateMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_messages_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_messages_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations works properly for mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_formms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_removeConversations_formms.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute attachments of Message (MMS) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_attachments_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_attachments_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="attachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute body of Message (MMS) exists, has type MessageBody" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_body_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_body_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="body" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with function (mms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_function">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_function.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with empty object (mms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_object">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_object.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (mms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_minargs">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_minargs.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute conversationId of Message (MMS) exists, has type MessageConvId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_conversationId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_conversationId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="conversationId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface Message (MMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute folderId of Message (MMS) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_folderId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_folderId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="folderId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute from of Message (MMS) exists, has type DOMString and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_from_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_from_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute hasAttachment of Message (MMS) exists, has type Boolean and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_hasAttachment_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_hasAttachment_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="hasAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id of Message (MMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_id_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_id_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute inResponseTo of Message (MMS) exists, has type MessageId" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_inResponseTo_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_inResponseTo_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="inResponseTo" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute isRead of Message (MMS) exists, has type Boolean" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_isRead_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_isRead_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageStatus of Message (MMS) exists, has type DOMString and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_messageStatus_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_messageStatus_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="messageStatus" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute subject of Message (MMS) exists, has type DOMString" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_subject_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_subject_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="subject" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute timestamp of Message (MMS) exists, has type Date and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_timestamp_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_timestamp_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute to of Message (MMS) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_to_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_to_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type of Message (MMS) exists, has type MessageServiceTag and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly without errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_getMessageServices_without_error_callback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_getMessageServices_without_error_callback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if type attribute exists in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-1_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check ConversationArraySuccessCallback callback for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="ConversationArraySuccessCallback_onsuccess_checking">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/ConversationArraySuccessCallback_onsuccess_checking.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if FolderArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="FolderArraySuccessCallback_onsuccess_checking">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/FolderArraySuccessCallback_onsuccess_checking.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolderArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess_checking">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess_checking.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageBody (SMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute loaded of MessageBody (SMS) exists, has type Boolean and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_loaded_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_loaded_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="loaded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageBody (SMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_messageId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_messageId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute plainBody of MessageBody (SMS) exists, has type DOMString" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_plainBody_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_plainBody_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="plainBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageConversationArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageConversationArraySuccessCallback_onsuccess_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check scenario: send a message(sms), find conversation and then remove it" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_sendFindRemove">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversation_sendFindRemove.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Checks various message attributes upon message (sms) creation" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_sms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_sms.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_sms_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageServiceArraySuccessCallback_sms_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_id_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_id_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method works for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_loadBodySMS">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_loadBodySMS.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if name attribute exists in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_name_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_name_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="name" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if sendMessage exist in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sendMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check whether invoking sendMessage method with improper argument throws exception properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_invalid_argument">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_invalid_argument.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly with valid argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_valid_argument">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_valid_argument.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageService (SMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method loadMessageBody of MessageService (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_loadMessageBody_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.loadMessageBody method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_missarg_message">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_missarg_message.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageStorage of MessageService (SMS) exists, has type MessageStorage and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_messageStorage_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_messageStorage_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="messageStorage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method sendMessage of MessageService (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_sendMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageService (SMS) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_type_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_type_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addCCLAddMRemoveCRemoveCCL">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addCCLAddMRemoveCRemoveCCL.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMCLaddM">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMCLaddM.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check MessageStorage.findMessages method when errorCallback is a number (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_errorCallback_TypeMismatch_1">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_errorCallback_null">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_null.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method findMessages in MessageStorage" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_findMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_sms_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_filter_sms_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_limit_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_limit_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findMessages (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check without arguments - MessageStorage.findMessages (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_noarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_noarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with valid offset" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_offset_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_offset_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_sort_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-2_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check if method removeChangeListener in MessageStorage" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_removeChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if removeChangeListener method removes listener added by addMessagesChangeListener method" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_formessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_formessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_valid_argument">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_valid_argument.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_with_watchId">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_with_watchId.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is null (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_null">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_null.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is undefined (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_undefined">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_undefined.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is a number (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_number">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_conversations_number.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly with all callbacks (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_forsms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_forsms.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_invalid_arg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_invalid_arg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_missarg_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_sms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_sms.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when successCallback is a number (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_number">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_number.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addConversationsChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addDraftMessage of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addDraftMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addFoldersChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (sms)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addMessagesChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageStorage (SMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-3_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check if method findConversations of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_id">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_id.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to endswith." type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_endswith">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_endswith.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to exist." type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to startswith." type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_startswith">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_startswith.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_type">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_type.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findConversations (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with limit (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_limit">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_limit.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with offset (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_offset">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_offset.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_sort_to">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_sort_to.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findFolders method works properly with successCallback" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findFolders">
+        <description>
+          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method findFolders of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findFolders_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method findMessages of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_folderId_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_folderId_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_from_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_from_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_id_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_id_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_isRead_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_isRead_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check without arguments - MessageStorage.findMessages" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_timestamp_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_to_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_to_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_type_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_type_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_limit">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_limit.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with offset (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_offset">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_offset.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_sort">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_sort.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeConversations of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeConversations_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeMessages of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-4_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method updateMessages of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_updateMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_messages_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_messages_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works correctly wihtout error callback" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_updateMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_updateMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute body of Message (SMS) exists, has type MessageBody" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_body_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_body_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="body" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with function (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_function">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_function.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with empty object (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_object">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_object.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_minargs">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_minargs.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute conversationId of Message (SMS) exists, has type MessageConvId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_conversationId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_conversationId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="conversationId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface Message (SMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute folderId of Message (SMS) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_folderId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_folderId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="folderId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute from of Message (SMS) exists, has type DOMString and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_from_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_from_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id of Message (SMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_id_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_id_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute inResponseTo of Message (SMS) exists, has type MessageId" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_inResponseTo_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_inResponseTo_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="inResponseTo" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute isRead of Message (SMS) exists, has type Boolean" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_isRead_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_isRead_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageStatus of Message (SMS) exists, has type DOMString and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_messageStatus_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_messageStatus_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="messageStatus" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute timestamp of Message (SMS) exists, has type Date and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_timestamp_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_timestamp_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute to of Message (SMS) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_to_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_to_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type of Message (SMS) exists, has type MessageServiceTag and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withoutfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withoutfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
   </suite>
 </test_definition>
index deed162ea712a5f3c55812db140262126842206c..db2f7a7455131374b27286bb6776484a3ac8618e 100755 (executable)
         </description>
       </testcase>
     </set>
+    <set name="Messaging-EMAIL-1st_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if interface MessageArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method onsuccess of MessageArraySuccessCallback works" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageAttachmentSuccessCallback, onsuccess, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachmentSuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageAttachmentSuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachmentSuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageAttachment's constructor works" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageAttachment's constructor works with minimum arguments" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor_minargs">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor_minargs.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageAttachment exists" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageAttachment_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageAttachment can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachment_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute filePath of MessageAttachment exists, has type DOMString and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_filePath_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_filePath_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute id of MessageAttachment exists, has type MessageAttachmentId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_id_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageAttachment exists, has type MessageId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_messageId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_messageId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute mimeType of MessageAttachment exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_mimeType_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_mimeType_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type (email message)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageBodySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBodySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_email_extend">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_htmlBody_attribute">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_inlineAttachments_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_loaded_attribute">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_messageId_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_plainBody_attribute">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageConversationArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method onsuccess of MessageConversationArraySuccessCallback works" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute bcc of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_bcc_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_bcc_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute cc of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_cc_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_cc_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageConversation can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute from of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_from_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_from_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute id of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_id_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute isRead of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_isRead_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_isRead_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute lastMessageId of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_lastMessageId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_lastMessageId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute messageCount of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_messageCount_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_messageCount_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageConversation exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute preview of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_preview_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_preview_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute subject of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_subject_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_subject_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute timestamp of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_timestamp_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_timestamp_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute to of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_to_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_to_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute type of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute unreadMessages of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_unreadMessages_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_unreadMessages_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if conversationsadded callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsremoved">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsremoved.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsupdated">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsupdated.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageConversationsChangeCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationsChangeCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageFolderArraySuccessCallback, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolderArraySuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageFolderArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolderArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if the attribute contentType in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_contentType_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_contentType_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute contentType of MessageFolder (email) exists, has type MessageServiceTag and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_contentType_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_contentType_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageFolder (email) can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute id of MessageFolder (email) exists, has type MessageFolderId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_id_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute name of MessageFolder (email) exists, has type DOMString" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_name_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_name_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute parentId of MessageFolder (email) exists, has type MessageFolderId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_parentId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_parentId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute path of MessageFolder (email) exists, has type DOMString and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_path_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_path_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute serviceId of MessageFolder (email) exists, has appropriate type and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_serviceId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_serviceId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute synchronizable of MessageFolder (email) exists, has type Boolean" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_synchronizable_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_synchronizable_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageFolder (email) exists, has type DOMString and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if the attribute id in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_id_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_id_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageFolder exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if the attribute path in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_path_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_path_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if the attribute type in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_type_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_type_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if foldersadded callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersadded">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersadded.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if foldersremoved callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersremoved">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersremoved.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if foldersupdated callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersupdated">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersupdated.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageFoldersChangeCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFoldersChangeCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Checks various message attributes upon message (email) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_email">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_email.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check the attribute messaging in MessageManagerObject" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageManagerObject_messaging">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_messaging.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageManagerObject exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageManagerObject_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type, check argument recipients type - DOMString[]" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageRecipientsCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_email_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageRecipientsCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageRecipientsCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageServiceArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageServiceArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check the function onsuccess in MessageServiceArraySuccessCallback" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageService (email) can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute id of MessageService (email) exists, has appropriate type and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_id_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for attachment argument of MessageService.loadMessageAttachment method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when attachment is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageAttachment method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method loadMessageAttachment of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageAttachment_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageAttachment (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageAttachment method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageBody method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method loadMessageBody of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageBody_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if message argument of MessageService::loadMessageBody will throw exception when given invalid type argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check invalid object for message argument of MessageService::loadMessageBody method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_invalid_obj">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg_message">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg_message.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageBody method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method works properly with errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageStorage of MessageService (email) exists, has type MessageStorage and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_messageStorage_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_messageStorage_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute name of MessageService (email) exists, has appropriate type and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_name_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_name_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-2nd_iot">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if MessageService.sendMessage method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method sendMessage of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sendMessage_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_invalid_obj">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method stopSync of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_stopSync_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService::stopSync (for sync) method silently fails without argument" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_stopSync_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method syncFolder of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_syncFolder_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_syncFolder_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method sync of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sync_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sync_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageService (email) exists, has type MessageServiceTag and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageService exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageService_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly with bcc (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithBcc">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithBcc.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly with highPriority (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithPriority">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithPriority.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_email_without_callbacks">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.stopSync (for sync) method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_sync">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_sync.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.stopSync (for syncFolder) method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_syncFolder">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_syncFolder.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.syncFolder method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for folder argument of MessageService.syncFolder method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_folder_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_folder_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.syncFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.syncFolder method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method throws exception when successCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method works properly with limit" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_limit">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if syncFolder method with successCallback optional argument works" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly without param" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_emailwithoutparam">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_emailwithoutparam.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sync method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly without arguments" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_foremail">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_foremail.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sync method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method throws exception when successCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly with limit argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_limit">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_limit.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly with successCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addConversationsChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing mandatory argument - MessageStorage.addConversationsChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly with filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addConversationsChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_withoutcb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutcb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addConversationsChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-3rd_iot">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addDraftMessage of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addDraftMessage_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_invalid_obj">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addFoldersChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addFoldersChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for foldersChangeCallback argument of MessageStorage.addFoldersChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addFoldersChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method works properly when update data" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="manual" priority="P1" id="MessageStorage_email_addFoldersChangeListener_updatedata">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_updatedata.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly with filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addMessagesChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageStorage (email) can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check errorCallback argument of findConversations will be throw exception with invalid argument type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when errorCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findConversations of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findConversations_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage::findConversations method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_from">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_from.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when filter is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_to">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_to.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_type">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_type.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage::findConversations (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage::findConversations method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when sort is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findConversations method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when successCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with all optional argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_offset">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_offset.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort by time descending (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort_time_desc">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort_time_desc.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findFolders of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findFolders_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findFolders_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages and MessageStorage.loadMessageBody methods work properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_and_loadMessageBody">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_and_loadMessageBody.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by bcc (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_bcc_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_bcc_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by cc (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_cc_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_cc_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when errorCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-4th_iot">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if method findMessages of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findMessages_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when filter is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by folderId (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_folderId_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_folderId_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by from (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_from_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by hasAttachment (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_hasAttachment_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by id (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_id_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_id_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isHighPriority (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isHighPriority_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isRead (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isRead_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isRead_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check without arguments - MessageStorage::findMessages" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by plainBody (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_plainBody_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by serviceId (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_serviceId_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_serviceId_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when sort is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when successCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by timestamp (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_timestamp_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by to (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_to_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_to_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by type (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_type_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_type_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method works properly with all optional argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_with_offset">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_with_offset.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeConversations of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeConversations_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeConversations_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeMessages of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeMessages_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method updateMessages of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_updateMessages_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_messages_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_messages_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing message argument -  MessageStorage.updateMessages (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findFolders method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findFolders method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders works properly for filter by serviceId" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_filter_serviceId">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_serviceId.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findFolders" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findFolders method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessage_emailFilterWithoutErrorCb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageStorage exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::removeChangeListener method works properly - for conversation listener (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations_email">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations_email.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method(email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder_email">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder_email.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for conversations argument of MessageStorage.removeConversations method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_conversations_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeConversations method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_foremail">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_foremail.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeConversations method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when successCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly with successCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly without errorCallback" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessage_emailwithouterrcb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessage_emailwithouterrcb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly without non-optional arguments (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.removeMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_messages_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_messages_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeMessages (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly with errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly with successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-5th_iot">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check: Add a draft message and update it, and then remove it" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_addUpdateRemove">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_addUpdateRemove.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if the attribute attachments in Message" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_attachments_exist">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_attachments_attribute">
+        <description>
+          <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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_bcc_attribute">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_body_attribute">
+        <description>
+          <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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_cc_attribute">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with function (email)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_function">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_function.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with empty object (email)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_object">
+        <description>
+          <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)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_minargs">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_conversationId_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute folderId of Message (email) exists, has type MessageFolderId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_folderId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_folderId_attribute.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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_from_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_hasAttachment_attribute">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_inResponseTo_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isHighPriority_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isRead_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_messageStatus_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_subject_attribute">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_timestamp_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_to_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message exists" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute hasAttachment in Message" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_hasAttachment_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_hasAttachment_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, no filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, no filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, no filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessagesChangeCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessagesChangeCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getMessageServices works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of Messaging.getMessageServices method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Messaging.getMessageServices method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of Messaging.getMessageServices method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Messaging.getMessageServices method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getMessageServices works properly with all arguments (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Messaging is extendable" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getMessageServices exists" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Messaging_getMessageServices_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messageServiceType argument of Messaging.getMessageServices method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_messageServiceType_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_messageServiceType_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - Messaging.getMessageServices" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface Messaging exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-mms_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if instance of interface MessageBody (MMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute loaded of MessageBody (MMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_loaded_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_loaded_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageBody (MMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_messageId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_messageId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute plainBody of MessageBody (MMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_plainBody_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_plainBody_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsremoved">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsremoved.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsupdated">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsupdated.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Checks various message attributes upon message (mms) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_mms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_mms.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_mms_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageServiceArraySuccessCallback_mms_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageService (MMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method loadMessageAttachment of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageAttachment_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageAttachment_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method loadMessageBody of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageBody_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_loadMessageBody_missarg_message">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_missarg_message.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageStorage of MessageService (MMS) exists, has type MessageStorage and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_messageStorage_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_messageStorage_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method sendMessage of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_sendMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageService (MMS) exists, has type MessageServiceTag and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_mms_without_callbacks">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_sendMessage_mms_without_callbacks.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_body_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_body_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId equal to 3" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_folderId_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_folderId_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_from_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_from_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment equal to false" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_hasAttachment_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_hasAttachment_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead equal to true" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_isRead_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_isRead_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_mms_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_mms_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by subject (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_subject_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_subject_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_timestamp_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_timestamp_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_to_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_to_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationChangeListener method throws exception when conversationsChangeCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addConversationsChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addDraftMessage of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addDraftMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addFoldersChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (mms)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="300">/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addMessagesChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageStorage (MMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-MMS-2_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if method findConversations of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_from">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_from.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_id">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_id.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by messageCount (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_messageCount">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_messageCount.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by preview (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_preview">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_preview.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by timestamp (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_timestamp">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_to">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_type">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_type.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by unreadMessages (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_unreadMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_unreadMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findFolders of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findFolders_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findFolders_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_folderId_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_folderId_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_from_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_from_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_hasAttachment_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_id_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_id_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_isRead_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_isRead_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_plainBody_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_timestamp_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_to_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_to_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_type_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_type_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-MMS-3_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if method removeChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeConversations of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeConversations_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method updateMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_updateMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_messages_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_messages_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations works properly for mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_formms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_removeConversations_formms.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute attachments of Message (MMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_attachments_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_attachments_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute body of Message (MMS) exists, has type MessageBody" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_body_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_body_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly (email)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with function (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_function">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_function.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with empty object (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_object">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_object.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_minargs">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_minargs.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute conversationId of Message (MMS) exists, has type MessageConvId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_conversationId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_conversationId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface Message (MMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute folderId of Message (MMS) exists, has type MessageFolderId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_folderId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_folderId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute from of Message (MMS) exists, has type DOMString and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_from_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_from_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute hasAttachment of Message (MMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_hasAttachment_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_hasAttachment_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute id of Message (MMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_id_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_id_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute inResponseTo of Message (MMS) exists, has type MessageId" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_inResponseTo_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_inResponseTo_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute isRead of Message (MMS) exists, has type Boolean" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_isRead_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_isRead_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageStatus of Message (MMS) exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_messageStatus_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_messageStatus_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute subject of Message (MMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_subject_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_subject_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute timestamp of Message (MMS) exists, has type Date and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_timestamp_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_timestamp_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute to of Message (MMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_to_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_to_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type of Message (MMS) exists, has type MessageServiceTag and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_getMessageServices_without_error_callback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_getMessageServices_without_error_callback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if type attribute exists in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-mms_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if instance of interface MessageBody (MMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute loaded of MessageBody (MMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_loaded_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_loaded_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageBody (MMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_messageId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_messageId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute plainBody of MessageBody (MMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_plainBody_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_plainBody_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsremoved">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsremoved.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsupdated">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsupdated.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Checks various message attributes upon message (mms) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_mms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_mms.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_mms_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageServiceArraySuccessCallback_mms_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageService (MMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method loadMessageAttachment of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageAttachment_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageAttachment_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method loadMessageBody of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageBody_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_loadMessageBody_missarg_message">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_missarg_message.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageStorage of MessageService (MMS) exists, has type MessageStorage and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_messageStorage_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_messageStorage_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method sendMessage of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_sendMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageService (MMS) exists, has type MessageServiceTag and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_mms_without_callbacks">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_sendMessage_mms_without_callbacks.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_body_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_body_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId equal to 3" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_folderId_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_folderId_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_from_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_from_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment equal to false" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_hasAttachment_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_hasAttachment_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead equal to true" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_isRead_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_isRead_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_mms_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_mms_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by subject (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_subject_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_subject_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_timestamp_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_timestamp_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_to_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_to_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationChangeListener method throws exception when conversationsChangeCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addConversationsChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addDraftMessage of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addDraftMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addFoldersChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (mms)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="300">/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addMessagesChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageStorage (MMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-MMS-2_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if method findConversations of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_from">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_from.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_id">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_id.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by messageCount (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_messageCount">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_messageCount.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by preview (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_preview">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_preview.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by timestamp (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_timestamp">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_to">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_type">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_type.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by unreadMessages (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_unreadMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_unreadMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findFolders of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findFolders_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findFolders_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_folderId_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_folderId_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_from_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_from_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_hasAttachment_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_id_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_id_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_isRead_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_isRead_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_plainBody_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_timestamp_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_to_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_to_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_type_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_type_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-MMS-3_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if method removeChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeConversations of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeConversations_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method updateMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_updateMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_messages_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_messages_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations works properly for mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_formms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_removeConversations_formms.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute attachments of Message (MMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_attachments_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_attachments_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute body of Message (MMS) exists, has type MessageBody" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_body_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_body_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly (email)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with function (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_function">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_function.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with empty object (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_object">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_object.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_minargs">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_minargs.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute conversationId of Message (MMS) exists, has type MessageConvId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_conversationId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_conversationId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface Message (MMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute folderId of Message (MMS) exists, has type MessageFolderId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_folderId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_folderId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute from of Message (MMS) exists, has type DOMString and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_from_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_from_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute hasAttachment of Message (MMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_hasAttachment_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_hasAttachment_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute id of Message (MMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_id_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_id_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute inResponseTo of Message (MMS) exists, has type MessageId" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_inResponseTo_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_inResponseTo_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute isRead of Message (MMS) exists, has type Boolean" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_isRead_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_isRead_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageStatus of Message (MMS) exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_messageStatus_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_messageStatus_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute subject of Message (MMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_subject_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_subject_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute timestamp of Message (MMS) exists, has type Date and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_timestamp_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_timestamp_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute to of Message (MMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_to_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_to_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type of Message (MMS) exists, has type MessageServiceTag and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_getMessageServices_without_error_callback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_getMessageServices_without_error_callback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if type attribute exists in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-1_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check ConversationArraySuccessCallback callback for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="ConversationArraySuccessCallback_onsuccess_checking">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/ConversationArraySuccessCallback_onsuccess_checking.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if FolderArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="FolderArraySuccessCallback_onsuccess_checking">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/FolderArraySuccessCallback_onsuccess_checking.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess_checking">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess_checking.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageBody (SMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute loaded of MessageBody (SMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_loaded_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_loaded_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageBody (SMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_messageId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_messageId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute plainBody of MessageBody (SMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_plainBody_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_plainBody_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageConversationArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageConversationArraySuccessCallback_onsuccess_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check scenario: send a message(sms), find conversation and then remove it" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_sendFindRemove">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversation_sendFindRemove.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Checks various message attributes upon message (sms) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_sms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_sms.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_sms_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageServiceArraySuccessCallback_sms_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute id in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_id_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_id_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method works for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_loadBodySMS">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_loadBodySMS.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if name attribute exists in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_name_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_name_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if sendMessage exist in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sendMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check whether invoking sendMessage method with improper argument throws exception properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_invalid_argument">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_invalid_argument.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly with valid argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_valid_argument">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_valid_argument.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageService (SMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method loadMessageBody of MessageService (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_loadMessageBody_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.loadMessageBody method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_missarg_message">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_missarg_message.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageStorage of MessageService (SMS) exists, has type MessageStorage and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_messageStorage_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_messageStorage_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method sendMessage of MessageService (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_sendMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageService (SMS) exists, has type MessageServiceTag and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_type_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_type_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addCCLAddMRemoveCRemoveCCL">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addCCLAddMRemoveCRemoveCCL.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMCLaddM">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMCLaddM.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check MessageStorage.findMessages method when errorCallback is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_errorCallback_TypeMismatch_1">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_errorCallback_null">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_null.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findMessages in MessageStorage" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_findMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_sms_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_filter_sms_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_limit_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_limit_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check without arguments - MessageStorage.findMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_noarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_noarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with valid offset" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_offset_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_offset_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_sort_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-2_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check if method removeChangeListener in MessageStorage" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_removeChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if removeChangeListener method removes listener added by addMessagesChangeListener method" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_formessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_formessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_valid_argument">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_valid_argument.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_with_watchId">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_with_watchId.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is null (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_null">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_null.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is undefined (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_undefined">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_undefined.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_number">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_conversations_number.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly with all callbacks (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_forsms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_forsms.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_invalid_arg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_invalid_arg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_missarg_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_sms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_sms.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when successCallback is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_number">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_number.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addConversationsChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addDraftMessage of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addDraftMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addFoldersChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (sms)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addMessagesChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageStorage (SMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-3_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check if method findConversations of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_id">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_id.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to endswith." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_endswith">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_endswith.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to exist." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to startswith." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_startswith">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_startswith.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_type">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_type.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findConversations (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with limit (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_limit">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_limit.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with offset (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_offset">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_offset.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_sort_to">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_sort_to.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findFolders method works properly with successCallback" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findFolders">
+        <description>
+          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findFolders of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findFolders_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_folderId_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_folderId_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_from_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_from_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_id_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_id_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_isRead_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_isRead_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check without arguments - MessageStorage.findMessages" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_timestamp_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_to_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_to_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_type_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_type_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_limit">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_limit.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with offset (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_offset">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_offset.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_sort">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_sort.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeConversations of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeConversations_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-4_iot" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>COMMON</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method updateMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_updateMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_messages_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_messages_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works correctly wihtout error callback" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_updateMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_updateMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute body of Message (SMS) exists, has type MessageBody" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_body_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_body_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with function (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_function">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_function.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with empty object (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_object">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_object.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_minargs">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_minargs.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute conversationId of Message (SMS) exists, has type MessageConvId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_conversationId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_conversationId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface Message (SMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute folderId of Message (SMS) exists, has type MessageFolderId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_folderId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_folderId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute from of Message (SMS) exists, has type DOMString and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_from_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_from_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute id of Message (SMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_id_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_id_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute inResponseTo of Message (SMS) exists, has type MessageId" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_inResponseTo_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_inResponseTo_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute isRead of Message (SMS) exists, has type Boolean" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_isRead_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_isRead_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageStatus of Message (SMS) exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_messageStatus_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_messageStatus_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute timestamp of Message (SMS) exists, has type Date and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_timestamp_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_timestamp_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute to of Message (SMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_to_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_to_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type of Message (SMS) exists, has type MessageServiceTag and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withoutfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withoutfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
   </suite>
 </test_definition>
index bc2fd36b799cf55106a37c5bbcf1016fe203a842..4fbbcc1436ee0a0f7792bad0bff379a17862e5de 100755 (executable)
   <tizen:privilege name="http://tizen.org/privilege/healthinfo"/>
   <tizen:privilege name="http://tizen.org/privilege/location"/>
   <tizen:privilege name="http://tizen.org/privilege/internet"/>
+  <tizen:privilege name="http://tizen.org/privilege/messaging.write "/>
+  <tizen:privilege name="http://tizen.org/privilege/messaging.read "/>
+  <feature name="http://tizen.org/feature/network.telephony"/>
+  <feature name="http://tizen.org/feature/network.telephony.mms"/>
   <feature name="http://tizen.org/feature/sensor.activity_recognition"/>
   <feature name="http://tizen.org/feature/sensor.gesture_recognition"/>
   <icon src="icon.png" height="117" width="117"/>
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/ConversationArraySuccessCallback_onsuccess_checking.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/ConversationArraySuccessCallback_onsuccess_checking.html
new file mode 100755 (executable)
index 0000000..9364ca7
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>ConversationArraySuccessCallback_onsuccess_checking</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: ConversationArraySuccessCallback_onsuccess_checking\r
+//==== LABEL Check ConversationArraySuccessCallback callback for sms\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, addSuccess, filter, findAllConversationsError, findAllConversationsSuccess, service;\r
+\r
+t.step(function () {\r
+    findAllConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "Incorrect type.");\r
+        t.done();\r
+    });\r
+\r
+    findAllConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        service.messageStorage.findConversations(filter, findAllConversationsSuccess, findAllConversationsError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/FolderArraySuccessCallback_onsuccess_checking.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/FolderArraySuccessCallback_onsuccess_checking.html
new file mode 100755 (executable)
index 0000000..381a5fc
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>FolderArraySuccessCallback_onsuccess_checking</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: FolderArraySuccessCallback_onsuccess_checking\r
+//==== LABEL Check if FolderArraySuccessCallback.onsuccess callback works properly\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolderArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, foldersSuccess, service,\r
+    filter, foldersError;\r
+\r
+t.step(function () {\r
+    foldersSuccess = t.step_func(function (folders) {\r
+        assert_type(folders, "array", "Incorrect type.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    foldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        service.messageStorage.findFolders(filter, foldersSuccess, foldersError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_notexist.html
new file mode 100755 (executable)
index 0000000..ddf69d7
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageArraySuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageArraySuccessCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageArraySuccessCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageArraySuccessCallback:MessageArraySuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageArraySuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_onsuccess.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_onsuccess.html
new file mode 100755 (executable)
index 0000000..67f7021
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageArraySuccessCallback_onsuccess</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageArraySuccessCallback_onsuccess\r
+//==== LABEL Check if method onsuccess of MessageArraySuccessCallback works\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message,\r
+    addDraftSuccess, addDraftError, findFilter, findMessagesSuccess, findMessagesError;\r
+\r
+t.step(function () {\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        findFilter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(findFilter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_onsuccess_checking.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageArraySuccessCallback_onsuccess_checking.html
new file mode 100755 (executable)
index 0000000..9c1d96a
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageArraySuccessCallback_onsuccess_checking</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageArraySuccessCallback_onsuccess_checking\r
+//==== LABEL Check if MessageArraySuccessCallback.onsuccess callback works properly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, filter, findMessageSuccess, findMessageError, addSuccess, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        assert_true(messages[0] instanceof tizen.Message, "Not a Message");\r
+        t.done();\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        service.messageStorage.findMessages(filter, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachmentSuccessCallback_email_onsuccess.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachmentSuccessCallback_email_onsuccess.html
new file mode 100755 (executable)
index 0000000..b926865
--- /dev/null
@@ -0,0 +1,147 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachmentSuccessCallback_email_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachmentSuccessCallback_email_onsuccess\r
+//==== PRIORITY P1\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageAttachmentSuccessCallback, onsuccess, email\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachmentSuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBT CBOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, inboxFolder,\r
+    message, attachment, sendSuccess, sendError, syncSuccess, syncError,\r
+    findSuccess, findError, foundMessage, returnedValue = null,\r
+    loadAttachmentSuccess, loadAttachmentError, loadBodySuccess, loadBodyError, loadMessage,\r
+    folderSuccess, folderError;\r
+\r
+t.step(function () {\r
+\r
+    loadAttachmentSuccess = t.step_func(function (fattachment) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from loadMessageAttachment");\r
+        assert_true(fattachment instanceof tizen.MessageAttachment, "Not a tizen.MessageAttachment.");\r
+\r
+        assert_type(fattachment.id, "string", "attachment.id incorrect type.");\r
+        assert_not_equals(fattachment.id, "", "attachment.id is empty.");\r
+\r
+        assert_type(fattachment.messageId, "string", "attachment.messageId incorrect type.");\r
+        assert_equals(fattachment.messageId, foundMessage.attachments[0].messageId, "attachment.messageId");\r
+\r
+        assert_equals(fattachment.mimeType, attachment.mimeType, "attachment.mimeType");\r
+\r
+        assert_type(fattachment.filePath, "string", "attachment.filePath incorrect type.");\r
+        assert_not_equals(fattachment.filePath, "", "attachment.filePath is empty.");\r
+        t.done();\r
+    });\r
+\r
+    loadAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadBodySuccess = t.step_func(function (message) {\r
+        loadMessage = message;\r
+        assert_equals(loadMessage.attachments.length, 1, "Incorrect number of found attachments");\r
+        returnedValue = service.loadMessageAttachment(loadMessage.attachments[0], loadAttachmentSuccess, loadAttachmentError);\r
+    });\r
+\r
+    loadBodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+            foundMessage = messages[0];\r
+\r
+            if (foundMessage.attachments.length === 0) {\r
+                service.loadMessageBody(foundMessage, loadBodySuccess, loadBodyError);\r
+            } else {\r
+                returnedValue = service.loadMessageAttachment(foundMessage.attachments[0], loadAttachmentSuccess, loadAttachmentError);\r
+            }\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, folderSuccess, folderError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE);\r
+        message.attachments = [attachment];\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachmentSuccessCallback_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachmentSuccessCallback_notexist.html
new file mode 100755 (executable)
index 0000000..1ca09c7
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachmentSuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachmentSuccessCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageAttachmentSuccessCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachmentSuccessCallback:MessageAttachmentSuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageAttachmentSuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_constructor.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_constructor.html
new file mode 100755 (executable)
index 0000000..b936aa7
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_constructor</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_constructor\r
+//==== LABEL Check if MessageAttachment's constructor works\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRA CONSTRM\r
+\r
+test(function () {\r
+    var attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE);\r
+\r
+    assert_true(attachment instanceof tizen.MessageAttachment, "InstanceOf.");\r
+\r
+    assert_equals(attachment.id, null, "'attachment.id' should be null");\r
+    assert_equals(attachment.messageId, null, "'attachment.messageId' should be null");\r
+    assert_equals(attachment.mimeType, MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE, "'attachment.mimeType' should be "+MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE);\r
+    assert_equals(attachment.filePath, TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "'attachment.filePath' should be \""+TEST_DIR + "webapi-tizen-messaging-test_image.jpg"+"\"");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_constructor_minargs.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_constructor_minargs.html
new file mode 100755 (executable)
index 0000000..47728bb
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_constructor_minargs</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_constructor_minargs\r
+//==== LABEL Check if MessageAttachment's constructor works with minimum arguments\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM\r
+\r
+test(function () {\r
+    var attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+\r
+    assert_true(attachment instanceof tizen.MessageAttachment, "InstanceOf.");\r
+\r
+    assert_equals(attachment.id, null, "'attachment.id' should be null by default");\r
+    assert_equals(attachment.messageId, null, "'attachment.messageId' should be null by default");\r
+    assert_equals(attachment.mimeType, null, "'attachment.mimeType' null by default");\r
+    assert_equals(attachment.filePath, TEST_DIR + "webapi-tizen-messaging-test_image.jpg",\r
+        "'attachment.filePath' should be \""+TEST_DIR + "webapi-tizen-messaging-test_image.jpg"+"\" by default");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_exist.html
new file mode 100755 (executable)
index 0000000..e9e3a44
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_exist\r
+//==== LABEL Check if MessageAttachment exists\r
+//==== PRIORITY P0\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRF\r
+\r
+test(function () {\r
+    check_constructor("MessageAttachment");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_extend.html
new file mode 100755 (executable)
index 0000000..09c665a
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageAttachment can be extended with new property\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:MessageAttachment U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+\r
+test(function () {\r
+    var attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+\r
+    check_extensibility(attachment);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_filePath_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_filePath_attribute.html
new file mode 100755 (executable)
index 0000000..427385f
--- /dev/null
@@ -0,0 +1,128 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_filePath_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_filePath_attribute\r
+//==== LABEL Check if attribute filePath of MessageAttachment exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:filePath A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT ADV\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), attachment, message,\r
+    service, serviceSuccess, serviceError, sendSuccess, sendError, syncSuccess, syncError,\r
+    findFoldersError, findFoldersSuccess,\r
+    inboxFolder, findMessageError,\r
+    findMessageSuccess, foundMessage, loadBodyError, loadBodySuccess;\r
+\r
+t.step(function () {\r
+    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+\r
+    assert_own_property(attachment, "filePath", "MessageAttachment does not own filePath property.");\r
+    check_readonly(attachment, "filePath", TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "string", "sampleValue");\r
+\r
+    loadBodySuccess = t.step_func(function (loadedMessage) {\r
+        assert_true(loadedMessage.hasAttachment, "Message does not have any attachments.");\r
+        assert_equals(loadedMessage.attachments[0].filePath, null, "filePath is incorrect");\r
+\r
+        t.done();\r
+    });\r
+\r
+    loadBodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+\r
+            foundMessage = messages[0];\r
+\r
+            service.loadMessageBody(foundMessage, loadBodySuccess, loadBodyError);\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+\r
+        inboxFolder = getInboxFolder(t, folders);\r
+\r
+        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+        message.attachments = [attachment];\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_id_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_id_attribute.html
new file mode 100755 (executable)
index 0000000..ec4d528
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_id_attribute\r
+//==== LABEL Check if attribute id of MessageAttachment exists, has type MessageAttachmentId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO ADV AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, attachment,\r
+    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;\r
+t.step(function () {\r
+    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+\r
+    assert_own_property(attachment, "id", "MessageAttachment does not own id property.");\r
+    assert_equals(attachment.id, null, "Incorrect default value");\r
+    check_readonly(attachment, "id", null, "object", "12345");\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_type(attachment.id, "string", "Id is not a string");\r
+        assert_not_equals(attachment.id, "", "Id is empty");\r
+\r
+        check_readonly(attachment, "id", attachment.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.attachments = [attachment];\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_messageId_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_messageId_attribute.html
new file mode 100755 (executable)
index 0000000..5774ffb
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_messageId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_messageId_attribute\r
+//==== LABEL Check if attribute messageId of MessageAttachment exists, has type MessageId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:messageId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO ADV AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, attachment,\r
+    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;\r
+t.step(function () {\r
+    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+\r
+    assert_own_property(attachment, "messageId", "MessageAttachment does not own messageId property.");\r
+    assert_equals(attachment.messageId, null, "Incorrect default value");\r
+    check_readonly(attachment, "messageId", null, "object", "12345");\r
+\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_type(attachment.messageId, "string", "messageId is not a string");\r
+        assert_not_equals(attachment.id, "", "messageId is empty");\r
+\r
+        check_readonly(attachment, "messageId", message.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.attachments = [attachment];\r
+\r
+        check_readonly(attachment, "messageId", message.id, "string", "22222");\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_mimeType_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageAttachment_mimeType_attribute.html
new file mode 100755 (executable)
index 0000000..58c8060
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageAttachment_mimeType_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageAttachment_mimeType_attribute\r
+//==== LABEL Check if attribute mimeType of MessageAttachment exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageAttachment:mimeType A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+\r
+test(function () {\r
+    var attachment;\r
+\r
+    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE);\r
+    assert_own_property(attachment, "mimeType", "MessageAttachment does not own mimeType property.");\r
+    check_readonly(attachment, "mimeType", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE, "string", "audio/mp3");\r
+\r
+    attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+    assert_equals(attachment.mimeType, null, "Incorrect default value");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_email_onsuccess.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_email_onsuccess.html
new file mode 100755 (executable)
index 0000000..d11e3ed
--- /dev/null
@@ -0,0 +1,125 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBodySuccessCallback_email_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBodySuccessCallback_email_onsuccess\r
+//==== PRIORITY P1\r
+//==== LABEL Check if callback is called and if its arguments have proper type (email message)\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBodySuccessCallback:onsuccess U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBT CBOA\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), filter,\r
+    service, message, inboxFolder, serviceSuccess, serviceError, sendSuccess, sendError,\r
+    syncSuccess, syncError, folderSuccess, folderError, findSuccess, findError, bodySuccess, bodyError;\r
+\r
+t.step(function () {\r
+    bodySuccess = t.step_func(function (messageLoaded) {\r
+        assert_not_equals(messageLoaded, null, "message is null");\r
+        assert_true(messageLoaded instanceof tizen.Message, "message type is not Message");\r
+\r
+        assert_not_equals(messageLoaded.body, null, "message body is null");\r
+        assert_equals(messageLoaded.subject, message.subject, "subject does not match");\r
+        assert_equals(messageLoaded.body.htmlBody.replace(/\s+$/g, ""), MESSAGE_BODY_HTML, "body does not match");\r
+        assert_equals(messageLoaded.hasAttachment, false, "hasAttachment is not false");\r
+        assert_equals(messageLoaded.attachments.length, 0, "message should have no attachments");\r
+\r
+        t.done();\r
+    });\r
+\r
+    bodyError = t.step_func(function (error) {\r
+        assert_unreached("failed to load message body: name: " + error.name + " msg: " + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+            service.loadMessageBody(messages[0], bodySuccess, bodyError);\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("failed to find message: name: " + error.name + " msg: " + error.message);\r
+    });\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        service.messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [ TEST_EMAIL_RECIPIENT_1 ],\r
+            htmlBody: MESSAGE_BODY_HTML\r
+        });\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_notexist.html
new file mode 100755 (executable)
index 0000000..382bdfe
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBodySuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBodySuccessCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageBodySuccessCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBodySuccessCallback:MessageBodySuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageBodySuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_onsuccess.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBodySuccessCallback_onsuccess.html
new file mode 100755 (executable)
index 0000000..e5a819d
--- /dev/null
@@ -0,0 +1,128 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageBodySuccessCallback_onsuccess</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageBodySuccessCallback_onsuccess\r
+//==== PRIORITY P1\r
+//==== LABEL Check if callback is called and if its arguments have proper type\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBodySuccessCallback:onsuccess U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, service, inboxFolder,\r
+    serviceSuccess, serviceError, sendSuccess, sendError, syncSuccess, syncError,\r
+    folderSuccess, folderError, findSuccess, findError, bodySuccess, bodyError;\r
+\r
+t.step(function () {\r
+    bodySuccess = t.step_func(function (messageLoaded) {\r
+        assert_not_equals(messageLoaded, null, "message is null");\r
+        assert_not_equals(messageLoaded.body, null, "message body is null");\r
+        assert_equals(messageLoaded.body.plainBody.replace(/\s+$/g, ""), message.body.plainBody, "body does not match");\r
+\r
+        t.done();\r
+    });\r
+\r
+    bodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+            service.loadMessageBody(messages[0], bodySuccess, bodyError);\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, folderSuccess, folderError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_extend.html
new file mode 100755 (executable)
index 0000000..e54eef2
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_email_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_email_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageBody (email) can be extended with new property\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:MessageBody U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, messageBody;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+        messageBody = message.body;\r
+\r
+        check_extensibility(messageBody);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_htmlBody_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_htmlBody_attribute.html
new file mode 100755 (executable)
index 0000000..1da8847
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_email_htmlBody_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_email_htmlBody_attribute\r
+//==== LABEL Check if attribute htmlBody of MessageBody (email) exists, has type DOMString\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:htmlBody A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AN ADV AT ASG\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, messageBody;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+        messageBody = message.body;\r
+\r
+        assert_own_property(messageBody, "htmlBody", "MessageBody does not own htmlBody property.");\r
+        check_attribute(messageBody, "htmlBody", "", "string", "sampleValue");\r
+\r
+        messageBody.htmlBody = null;\r
+        assert_equals(messageBody.htmlBody, "null", "htmlBody should not accept null as value");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_inlineAttachments_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_inlineAttachments_attribute.html
new file mode 100755 (executable)
index 0000000..aec5837
--- /dev/null
@@ -0,0 +1,105 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_email_inlineAttachments_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_email_inlineAttachments_attribute\r
+//==== LABEL Check if attribute inlineAttachments of MessageBody (email) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:inlineAttachments A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE AN AT ASG\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, messageBody, oldValue,\r
+    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_type(messageBody.inlineAttachments[0].id, "string", "id is not a string");\r
+        assert_not_equals(messageBody.inlineAttachments[0].id, "", "id is empty");\r
+        assert_equals(messageBody.inlineAttachments[0].messageId, message.id, "messageId is not a null");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        messageService = service;\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        messageBody = message.body;\r
+\r
+        assert_own_property(messageBody, "inlineAttachments", "MessageBody does not own inlineAttachments property.");\r
+\r
+        assert_type(messageBody.inlineAttachments, "array", "Not an array");\r
+        assert_equals(messageBody.inlineAttachments.length, 0, "Incorrrect length");\r
+\r
+        oldValue = messageBody.inlineAttachments;\r
+        messageBody.inlineAttachments = null;\r
+        assert_array_equals(messageBody.inlineAttachments, oldValue, "inlineAttachments should not accept null as value");\r
+\r
+        check_invalid_array_assignments(messageBody, "inlineAttachments", false);\r
+\r
+        messageBody.inlineAttachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg")];\r
+        assert_type(messageBody.inlineAttachments, "array", "Not an array");\r
+        assert_equals(messageBody.inlineAttachments.length, 1, "Incorrrect length");\r
+\r
+        assert_own_property(messageBody.inlineAttachments[0], "id", "No id.");\r
+        assert_own_property(messageBody.inlineAttachments[0], "messageId", "No messageId.");\r
+        assert_own_property(messageBody.inlineAttachments[0], "mimeType", "No mimeType.");\r
+        assert_own_property(messageBody.inlineAttachments[0], "filePath", "No filePath.");\r
+\r
+        assert_equals(messageBody.inlineAttachments[0].id, null, "id is not a null");\r
+        assert_equals(messageBody.inlineAttachments[0].messageId, message.id, "messageId is not a null");\r
+        assert_equals(messageBody.inlineAttachments[0].mimeType, "image/jpg", "Incorrect mimeType");\r
+        assert_type(messageBody.inlineAttachments[0].filePath, "string", "filePath is not a string");\r
+        assert_not_equals(messageBody.inlineAttachments[0].filePath, "", "filePath is empty");\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_loaded_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_loaded_attribute.html
new file mode 100755 (executable)
index 0000000..422685c
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_email_loaded_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_email_loaded_attribute\r
+//==== LABEL Check if attribute loaded of MessageBody (email) exists, has type Boolean and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:loaded A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO ADV\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, messageBody, oldValue;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+        messageBody = message.body;\r
+\r
+        assert_own_property(messageBody, "loaded", "MessageBody does not own loaded property.");\r
+        check_readonly(messageBody, "loaded", false, "boolean", true);\r
+\r
+        oldValue = messageBody.loaded;\r
+        messageBody.loaded = null;\r
+        assert_equals(messageBody.loaded, oldValue, "loaded attribute shuld not accept null as value");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_messageId_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_messageId_attribute.html
new file mode 100755 (executable)
index 0000000..509f8e5
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_email_messageId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_email_messageId_attribute\r
+//==== LABEL Check if attribute messageId of MessageBody (email) exists, has type MessageId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:messageId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, messageBody,\r
+    serviceError, serviceSuccess, addDraftError, addDraftSuccess;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        check_readonly(messageBody, "messageId", message.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        messageBody = message.body;\r
+\r
+        assert_own_property(messageBody, "messageId", "MessageBody does not own messageId property.");\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_plainBody_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_email_plainBody_attribute.html
new file mode 100755 (executable)
index 0000000..d0eed48
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_email_plainBody_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_email_plainBody_attribute\r
+//==== LABEL Check if attribute plainBody of MessageBody (email) exists, has type DOMString\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:plainBody A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ASG\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, messageBody;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+        messageBody = message.body;\r
+\r
+        assert_own_property(messageBody, "plainBody", "MessageBody does not own plainBody property.");\r
+        check_attribute(messageBody, "plainBody", "", "string", "sampleValue");\r
+\r
+        messageBody.plainBody = null;\r
+        assert_equals(messageBody.plainBody, "null", "Incorrect plainBody after null assignment");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_extend.html
new file mode 100755 (executable)
index 0000000..5a76c03
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_mms_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_mms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageBody (MMS) can be extended with new property\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:MessageBody U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+\r
+test(function () {\r
+    var message, messageBody;\r
+\r
+    message = new tizen.Message("messaging.mms");\r
+    messageBody = message.body;\r
+\r
+    check_extensibility(messageBody);\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_loaded_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_loaded_attribute.html
new file mode 100755 (executable)
index 0000000..a965157
--- /dev/null
@@ -0,0 +1,56 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_mms_loaded_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_mms_loaded_attribute\r
+//==== LABEL Check if attribute loaded of MessageBody (MMS) exists, has type Boolean and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:loaded A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO ADV\r
+\r
+test(function () {\r
+    var message, messageBody, oldValue;\r
+\r
+    message = new tizen.Message("messaging.mms");\r
+    messageBody = message.body;\r
+\r
+    assert_own_property(messageBody, "loaded", "MessageBody does not own loaded property.");\r
+    check_readonly(messageBody, "loaded", false, "boolean", true);\r
+\r
+    oldValue = messageBody.loaded;\r
+    messageBody.loaded = null;\r
+    assert_equals(messageBody.loaded, oldValue, "loaded attribute shuld not accept null as value");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_messageId_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_messageId_attribute.html
new file mode 100755 (executable)
index 0000000..f34c754
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_mms_messageId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_mms_messageId_attribute\r
+//==== LABEL Check if attribute messageId of MessageBody (MMS) exists, has type MessageId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:messageId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, messageBody,\r
+    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;\r
+t.step(function () {\r
+\r
+    message = new tizen.Message("messaging.mms", {\r
+        subject: generateSubject(),\r
+        to: [TEST_SMS_RECIPIENT],\r
+        plainBody: "sample plainBody"\r
+    });\r
+\r
+    messageBody = message.body;\r
+\r
+    assert_own_property(messageBody, "messageId", "MessageBody does not own messageId property.");\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        check_readonly(messageBody, "messageId", message.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_plainBody_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_mms_plainBody_attribute.html
new file mode 100755 (executable)
index 0000000..1b3e5a7
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_mms_plainBody_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_mms_plainBody_attribute\r
+//==== LABEL Check if attribute plainBody of MessageBody (MMS) exists, has type DOMString\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:plainBody A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+\r
+test(function () {\r
+    var message, messageBody;\r
+\r
+    message = new tizen.Message("messaging.mms");\r
+    messageBody = message.body;\r
+\r
+    assert_own_property(messageBody, "plainBody", "MessageBody does not own plainBody property.");\r
+    check_attribute(messageBody, "plainBody", "", "string", "sampleValue");\r
+\r
+    messageBody.plainBody = null;\r
+    assert_equals(messageBody.plainBody, "null", "Incorrect plainBody after assigning null");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_notexist.html
new file mode 100755 (executable)
index 0000000..8c02555
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageBody exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:MessageBody U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA NIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageBody");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_extend.html
new file mode 100755 (executable)
index 0000000..fbe384a
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_sms_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_sms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageBody (SMS) can be extended with new property\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:MessageBody U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+\r
+test(function () {\r
+    var message, messageBody;\r
+\r
+    message = new tizen.Message("messaging.sms");\r
+    messageBody = message.body;\r
+\r
+    check_extensibility(messageBody);\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_loaded_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_loaded_attribute.html
new file mode 100755 (executable)
index 0000000..74948c7
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_sms_loaded_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_sms_loaded_attribute\r
+//==== LABEL Check if attribute loaded of MessageBody (SMS) exists, has type Boolean and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:loaded A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO ADV\r
+\r
+test(function () {\r
+\r
+    var message, messageBody, oldValue;\r
+\r
+    message = new tizen.Message("messaging.sms");\r
+    messageBody = message.body;\r
+\r
+    assert_own_property(messageBody, "loaded", "MessageBody does not own loaded property.");\r
+    check_readonly(messageBody, "loaded", false, "boolean", true);\r
+\r
+    oldValue = messageBody.loaded;\r
+    messageBody.loaded = null;\r
+    assert_equals(messageBody.loaded, oldValue, "loaded attribute shuld not accept null as value");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_messageId_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_messageId_attribute.html
new file mode 100755 (executable)
index 0000000..e8ecee0
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_sms_messageId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_sms_messageId_attribute\r
+//==== LABEL Check if attribute messageId of MessageBody (SMS) exists, has type MessageId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:messageId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, messageBody,\r
+    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;\r
+t.step(function () {\r
+\r
+    message = new tizen.Message("messaging.sms", {\r
+        to: [TEST_SMS_RECIPIENT],\r
+        plainBody: generatePlainBody()\r
+    });\r
+\r
+    messageBody = message.body;\r
+\r
+    assert_own_property(messageBody, "messageId", "MessageBody does not own messageId property.");\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        check_readonly(messageBody, "messageId", message.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_plainBody_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageBody_sms_plainBody_attribute.html
new file mode 100755 (executable)
index 0000000..1e73392
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageBody_sms_plainBody_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageBody_sms_plainBody_attribute\r
+//==== LABEL Check if attribute plainBody of MessageBody (SMS) exists, has type DOMString\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageBody:plainBody A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ASG\r
+\r
+test(function () {\r
+    var message, messageBody;\r
+\r
+    message = new tizen.Message("messaging.sms");\r
+    messageBody = message.body;\r
+\r
+    assert_own_property(messageBody, "plainBody", "MessageBody does not own plainBody property.");\r
+    check_attribute(messageBody, "plainBody", "", "string", "sampleValue");\r
+\r
+    messageBody.plainBody = null;\r
+    assert_equals(messageBody.plainBody, "null", "Incorrect plainBody after assigning null");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_notexist.html
new file mode 100755 (executable)
index 0000000..6d2e25a
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationArraySuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationArraySuccessCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageConversationArraySuccessCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationArraySuccessCallback:MessageConversationArraySuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageConversationArraySuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_onsuccess.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_onsuccess.html
new file mode 100755 (executable)
index 0000000..ee337f2
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageConversationArraySuccessCallback_onsuccess</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversationArraySuccessCallback_onsuccess\r
+//==== LABEL Check if method onsuccess of MessageConversationArraySuccessCallback works\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), service, message,\r
+    serviceSuccess, serviceError, findConversationsSuccess, findConversationsError, filter,\r
+    addDraftSuccess, addDraftError;\r
+\r
+t.step(function () {\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "Incorrect type.");\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+        assert_own_property(conversations[0], "id", "id not present.");\r
+        assert_own_property(conversations[0], "type", "type not present.");\r
+        assert_own_property(conversations[0], "timestamp", "timestamp not present.");\r
+        assert_own_property(conversations[0], "messageCount", "messageCount not present.");\r
+        assert_own_property(conversations[0], "unreadMessages", "unreadMessages not present.");\r
+        assert_own_property(conversations[0], "preview", "preview not present.");\r
+        assert_own_property(conversations[0], "subject", "subject not present.");\r
+        assert_own_property(conversations[0], "isRead", "isRead not present.");\r
+        assert_own_property(conversations[0], "from", "from not present.");\r
+        assert_own_property(conversations[0], "to", "to not present.");\r
+        assert_own_property(conversations[0], "cc", "cc not present.");\r
+        assert_own_property(conversations[0], "bcc", "bcc not present.");\r
+        assert_own_property(conversations[0], "lastMessageId", "lastMessageId not present.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.conversationId);\r
+        service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_onsuccess_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationArraySuccessCallback_onsuccess_exist.html
new file mode 100755 (executable)
index 0000000..8afa971
--- /dev/null
@@ -0,0 +1,110 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageConversationArraySuccessCallback_onsuccess_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversationArraySuccessCallback_onsuccess_exist\r
+//==== LABEL Check if MessageConversationArraySuccessCallback.onsuccess callback works properly\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, datetime, service, messageStorage, filter,\r
+    sendSuccess, sendError, findConversationsSuccess, findConversationsError;\r
+\r
+t.step(function () {\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+        assert_own_property(conversations[0], "id", "No id attribute in conversation");\r
+        assert_own_property(conversations[0], "type", "No type attribute in conversation");\r
+        assert_own_property(conversations[0], "timestamp", "No timestamp attribute in conversation");\r
+        assert_own_property(conversations[0], "messageCount", "No messageCount attribute in conversation");\r
+        assert_own_property(conversations[0], "unreadMessages", "No unreadMessages attribute in conversation");\r
+        assert_own_property(conversations[0], "preview", "No preview attribute in conversation");\r
+        assert_own_property(conversations[0], "isRead", "No isRead attribute in conversation");\r
+        assert_own_property(conversations[0], "from", "No from attribute in conversation");\r
+        assert_own_property(conversations[0], "to", "No to attribute in conversation");\r
+        assert_own_property(conversations[0], "lastMessageId", "No lastMessageId attribute in conversation");\r
+\r
+        t.done();\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+\r
+        datetime = new Date().getTime().toString();\r
+        message = new tizen.Message("messaging.sms", {\r
+            plainBody: datetime,\r
+            to: [ TEST_SMS_RECIPIENT ]\r
+        });\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_bcc_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_bcc_attribute.html
new file mode 100755 (executable)
index 0000000..267dc25
--- /dev/null
@@ -0,0 +1,59 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_bcc_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_bcc_attribute\r
+//==== LABEL Check attribute bcc of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:bcc A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), tmp;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "bcc", "MessageConversation does not own bcc property.");\r
+\r
+    assert_type(conversation.bcc, "array", "Not an array");\r
+    assert_array_equals(conversation.bcc, message.bcc, "Incorrect 'bcc' attribute");\r
+\r
+    tmp = conversation.bcc;\r
+    conversation.bcc = [Math.random()];\r
+    assert_array_equals(conversation.bcc, tmp, "bcc can be modified.");\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_cc_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_cc_attribute.html
new file mode 100755 (executable)
index 0000000..460ce55
--- /dev/null
@@ -0,0 +1,59 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_cc_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_cc_attribute\r
+//==== LABEL Check attribute cc of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:cc A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), tmp;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "cc", "MessageConversation does not own cc property.");\r
+\r
+    assert_type(conversation.cc, "array", "Not an array");\r
+    assert_array_equals(conversation.cc, message.cc, "Incorrect 'cc' attribute");\r
+\r
+    tmp = conversation.cc;\r
+    conversation.cc = [Math.random()];\r
+    assert_array_equals(tmp, conversation.cc, "cc can be modified.");\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_extend.html
new file mode 100755 (executable)
index 0000000..982f71c
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageConversation can be extended with new property\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:MessageConversation U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    check_extensibility(conversation);\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_from_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_from_attribute.html
new file mode 100755 (executable)
index 0000000..61819af
--- /dev/null
@@ -0,0 +1,102 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_from_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_from_attribute\r
+//==== LABEL Check attribute from of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:from A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, sendSuccess, sendError, syncSuccess, syncError,\r
+    filter, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (conversations) {\r
+        if (conversations.length > 0) {\r
+            assert_type(conversations, "array", "Not an array");\r
+\r
+            for (i = 0; i < conversations.length; i++) {\r
+                assert_own_property(conversations[i], "from", "MessageConversation does not own from property.");\r
+                assert_equals(conversations[i].from, TEST_EMAIL_RECIPIENT_1, "returned from is not equal");\r
+                check_readonly(conversations[i], "from", conversations[i].from, "string", "dummyValue");\r
+            }\r
+\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("from", "EXACTLY", TEST_EMAIL_RECIPIENT_1);\r
+        service.messageStorage.findConversations(filter, findSuccess, findError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_id_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_id_attribute.html
new file mode 100755 (executable)
index 0000000..b98b44d
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST MessageConversation_id_attribute\r
+//==== LABEL Check attribute id of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "id", "MessageConversation does not own id property.");\r
+\r
+    check_readonly(conversation, "id", conversation.id, "string", null);\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_isRead_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_isRead_attribute.html
new file mode 100755 (executable)
index 0000000..ac58710
--- /dev/null
@@ -0,0 +1,53 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_isRead_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_isRead_attribute\r
+//==== PRIORITY P1\r
+//==== LABEL Check attribute isRead of MessageConversation\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:isRead A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "isRead", "MessageConversation does not own isRead property.");\r
+    check_readonly(conversation, "isRead", conversation.isRead, "boolean", null);\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_lastMessageId_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_lastMessageId_attribute.html
new file mode 100755 (executable)
index 0000000..a78ef19
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_lastMessageId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_lastMessageId_attribute\r
+//==== LABEL Check attribute lastMessageId of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:lastMessageId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "lastMessageId", "MessageConversation does not own lastMessageId property.");\r
+\r
+    check_readonly(conversation, "lastMessageId", conversation.lastMessageId, "string", null);\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_messageCount_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_messageCount_attribute.html
new file mode 100755 (executable)
index 0000000..3e6b107
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_messageCount_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_messageCount_attribute\r
+//==== LABEL Check attribute messageCount of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:messageCount A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "messageCount", "MessageConversation does not own messageCount property.");\r
+\r
+    check_readonly(conversation, "messageCount", conversation.messageCount, "number", null);\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_notexist.html
new file mode 100755 (executable)
index 0000000..481617a
--- /dev/null
@@ -0,0 +1,45 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversation_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageConversation exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:MessageConversation U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA NIO\r
+test(function () {\r
+    check_no_interface_object("MessageConversation");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_preview_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_preview_attribute.html
new file mode 100755 (executable)
index 0000000..870bf58
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_preview_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_preview_attribute\r
+//==== LABEL Check attribute preview of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:preview A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "preview", "MessageConversation does not own preview property.");\r
+\r
+    check_readonly(conversation, "preview", conversation.preview, "string", "aaa");\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_sendFindRemove.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_sendFindRemove.html
new file mode 100755 (executable)
index 0000000..113430e
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageConversation_sendFindRemove</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_sendFindRemove\r
+//==== PRIORITY P1\r
+//==== LABEL Check scenario: send a message(sms), find conversation and then remove it\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, msg, messageStorage, filterConversation, filterMessage,\r
+    removeConversationsSuccess, removeConversationsError, findMessageError,\r
+    findConversationsSuccess, findConversationsError, findMessageSuccess,\r
+    sendSuccess, sendError, serviceSuccess, serviceError,\r
+    returnedValue = null;\r
+\r
+t.step(function () {\r
+    removeConversationsSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    removeConversationsError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        returnedValue = messageStorage.removeConversations(conversations, removeConversationsSuccess, removeConversationsError);\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        filterConversation = new tizen.AttributeFilter("id", "EXACTLY", messages[0].conversationId);\r
+        messageStorage.findConversations(filterConversation, findConversationsSuccess, findConversationsError);\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_greater_than(recipients.length, 0, "Received empty recipients array");\r
+        filterMessage = new tizen.AttributeFilter("to", "CONTAINS", recipients[0]);\r
+        messageStorage.findMessages(filterMessage, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+        msg = new tizen.Message("messaging.sms", { plainBody: "test1.", to: [ TEST_SMS_RECIPIENT ]});\r
+        sendMessage(t, service, msg, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_subject_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_subject_attribute.html
new file mode 100755 (executable)
index 0000000..b4a7772
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_subject_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_subject_attribute\r
+//==== LABEL Check attribute subject of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:subject A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "subject", "MessageConversation does not own subject property.");\r
+\r
+    check_readonly(conversation, "subject", conversation.subject, "string", null);\r
+\r
+    assert_true(conversation.subject !== "", "subject should be null or non empty string");\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_timestamp_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_timestamp_attribute.html
new file mode 100755 (executable)
index 0000000..a65fd54
--- /dev/null
@@ -0,0 +1,58 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_timestamp_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_timestamp_attribute\r
+//==== LABEL Check attribute timestamp of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:timestamp A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), tmp;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "timestamp", "MessageConversation does not own timestamp property.");\r
+\r
+    assert_type(conversation.timestamp, "Date", "Type of timestamp is different.");\r
+\r
+    tmp = conversation.timestamp;\r
+    conversation.timestamp = new Date();\r
+    assert_equals(tmp.getTime(), conversation.timestamp.getTime(), "timestamp  can be modified.");\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_to_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_to_attribute.html
new file mode 100755 (executable)
index 0000000..5fd5b91
--- /dev/null
@@ -0,0 +1,59 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_to_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_to_attribute\r
+//==== LABEL Check attribute to of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:to A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), tmp;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "to", "MessageConversation does not own to property.");\r
+\r
+    assert_type(conversation.to, "array", "Not an array");\r
+    assert_array_equals(conversation.to, message.to, "Incorrect 'to' attribute");\r
+\r
+    tmp = conversation.to;\r
+    conversation.to = [Math.random()];\r
+    assert_array_equals(conversation.to, tmp, "to can be modified.");\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_type_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_type_attribute.html
new file mode 100755 (executable)
index 0000000..38e99d2
--- /dev/null
@@ -0,0 +1,53 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_type_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_type_attribute\r
+//==== LABEL Check attribute type of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "type", "MessageConversation does not own type property.");\r
+    check_readonly(conversation, "type", conversation.type, "string", null);\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_unreadMessages_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversation_unreadMessages_attribute.html
new file mode 100755 (executable)
index 0000000..a1476f5
--- /dev/null
@@ -0,0 +1,53 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Roman Frolow <r.frolow@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversation_unreadMessages_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversation_unreadMessages_attribute\r
+//==== LABEL Check attribute unreadMessages of MessageConversation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversation:unreadMessages A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_own_property(conversation, "unreadMessages", "MessageConversation does not own unreadMessages property.");\r
+    check_readonly(conversation, "unreadMessages", conversation.unreadMessages, "number", conversation.unreadMessages + 1);\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded.html
new file mode 100755 (executable)
index 0000000..e224303
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_conversationsadded</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversationsChangeCallback_conversationsadded\r
+//==== LABEL Check if conversationsadded callback was invoked with proper argument type.\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), service, i,\r
+    serviceSuccess, serviceError, messageService, addDraftError, message, conversationChangeCB, watchId;\r
+\r
+t.step(function () {\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watchId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    conversationChangeCB = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "type check");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+            for (i = 0; i < conversations.length; i++) {\r
+                assert_own_property(conversations[i], "id", "id not present.");\r
+                assert_own_property(conversations[i], "type", "type not present.");\r
+                assert_own_property(conversations[i], "timestamp", "timestamp not present.");\r
+                assert_own_property(conversations[i], "messageCount", "messageCount not present.");\r
+                assert_own_property(conversations[i], "unreadMessages", "unreadMessages not present.");\r
+                assert_own_property(conversations[i], "preview", "preview not present.");\r
+                assert_own_property(conversations[i], "subject", "subject not present.");\r
+                assert_own_property(conversations[i], "isRead", "isRead not present.");\r
+                assert_own_property(conversations[i], "from", "from not present.");\r
+                assert_own_property(conversations[i], "to", "to not present.");\r
+                assert_own_property(conversations[i], "cc", "cc not present.");\r
+                assert_own_property(conversations[i], "bcc", "bcc not present.");\r
+                assert_own_property(conversations[i], "lastMessageId", "lastMessageId not present.");\r
+\r
+                if (conversations[i].id === message.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        messageService = service;\r
+\r
+        watchId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        messageService.messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withfilter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withfilter.html
new file mode 100755 (executable)
index 0000000..5566332
--- /dev/null
@@ -0,0 +1,109 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_conversationsadded_withfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversationsChangeCallback_conversationsadded_withfilter\r
+//==== LABEL Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceSuccess, serviceError, service, message, filter,\r
+    removeAllSuccess, sendError, listener, listenerId;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener, filter);\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        sendMessage(t, service, message, null, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html
new file mode 100755 (executable)
index 0000000..e22b1b8
--- /dev/null
@@ -0,0 +1,106 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_conversationsadded_withoutfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversationsChangeCallback_conversationsadded_withoutfilter\r
+//==== LABEL Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,\r
+    serviceSuccess, serviceError, service, message, removeAllSuccess, sendError, listener;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        sendMessage(t, service, message, null, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withfilter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withfilter.html
new file mode 100755 (executable)
index 0000000..4237a88
--- /dev/null
@@ -0,0 +1,107 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_conversationsremoved_withfilter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationsChangeCallback_conversationsremoved_withfilter\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, i, watcherId,\r
+    removeAllSuccess, sendError, conversationChangeCB,\r
+    removeConversationError, removedConversationId;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    removeConversationError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    conversationChangeCB = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message.conversationId) {\r
+                    removedConversationId = conversations[i].id;\r
+                    service.messageStorage.removeConversations([conversations[i]], null, removeConversationError);\r
+                    break;\r
+                }\r
+            }\r
+        }),\r
+        conversationsremoved: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            t.done();\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        watcherId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        sendMessage(t, service, message, null, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html
new file mode 100755 (executable)
index 0000000..43ac6e3
--- /dev/null
@@ -0,0 +1,107 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_conversationsremoved_withoutfilter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationsChangeCallback_conversationsremoved_withoutfilter\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, i, watcherId,\r
+    removeAllSuccess, sendError, conversationChangeCB,\r
+    removeConversationError, removedConversationId;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    removeConversationError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    conversationChangeCB = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message.conversationId) {\r
+                    removedConversationId = conversations[i].id;\r
+                    service.messageStorage.removeConversations([conversations[i]], null, removeConversationError);\r
+                    break;\r
+                }\r
+            }\r
+        }),\r
+        conversationsremoved: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            t.done();\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        watcherId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        service.sendMessage(message, null, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withfilter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withfilter.html
new file mode 100755 (executable)
index 0000000..f6df1db
--- /dev/null
@@ -0,0 +1,120 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_conversationsupdated_withfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversationsChangeCallback_conversationsupdated_withfilter\r
+//==== LABEL Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,\r
+    serviceSuccess, serviceError, service, message1, message2, removeAllSuccess,\r
+    filter, sendSuccess, sendError, listener;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        conversationsupdated: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message2.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener, filter);\r
+\r
+        message2 = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        sendMessage(t, service, message2, null, sendError);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        message1 = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        sendMessage(t, service, message1, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html
new file mode 100755 (executable)
index 0000000..0f1a851
--- /dev/null
@@ -0,0 +1,124 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_conversationsupdated_withoutfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageConversationsChangeCallback_conversationsupdated_withoutfilter\r
+//==== LABEL Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,\r
+    serviceSuccess, serviceError, service, message1, message2,\r
+    removeAllSuccess, sendSuccess, sendError, listener;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        conversationsupdated: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message2.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);\r
+\r
+        message2 = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        sendMessage(t, service, message2, null, sendError);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        message1 = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        message1 = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        sendMessage(t, service, message1, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_email_conversationsremoved.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_email_conversationsremoved.html
new file mode 100755 (executable)
index 0000000..4099db1
--- /dev/null
@@ -0,0 +1,123 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_email_conversationsremoved</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationsChangeCallback_email_conversationsremoved\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, email\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    conversationFilter, findConversationSuccess, findConversationError, foundConversation, removeConversationError,\r
+    changeCallback, listenerId;\r
+\r
+t.step(function () {\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        conversationsremoved: t.step_func(function (removedConversations) {\r
+            assert_type(removedConversations, "array", "Not an array.");\r
+            assert_equals(removedConversations.length, 1, "Incorrect length of conversations.");\r
+            assert_equals(removedConversations[0].id, foundConversation.id, "Incorrect id of removed conversation.");\r
+\r
+            assert_own_property(removedConversations[0], "id", "id not present.");\r
+            assert_own_property(removedConversations[0], "type", "type not present.");\r
+            assert_own_property(removedConversations[0], "timestamp", "timestamp not present.");\r
+            assert_own_property(removedConversations[0], "messageCount", "messageCount not present.");\r
+            assert_own_property(removedConversations[0], "unreadMessages", "unreadMessages not present.");\r
+            assert_own_property(removedConversations[0], "preview", "preview not present.");\r
+            assert_own_property(removedConversations[0], "subject", "subject not present.");\r
+            assert_own_property(removedConversations[0], "isRead", "isRead not present.");\r
+            assert_own_property(removedConversations[0], "from", "from not present.");\r
+            assert_own_property(removedConversations[0], "to", "to not present.");\r
+            assert_own_property(removedConversations[0], "cc", "cc not present.");\r
+            assert_own_property(removedConversations[0], "bcc", "bcc not present.");\r
+            assert_own_property(removedConversations[0], "lastMessageId", "lastMessageId not present.");\r
+\r
+            t.done();\r
+        })\r
+    };\r
+\r
+    removeConversationError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConversationSuccess = t.step_func(function (conversations) {\r
+        assert_equals(conversations.length, 1, "Incorrect number of found conversations");\r
+        foundConversation = conversations[0];\r
+\r
+        listenerId = service.messageStorage.addConversationsChangeListener(changeCallback);\r
+        service.messageStorage.removeConversations([foundConversation], null, removeConversationError);\r
+    });\r
+\r
+    findConversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversationFilter = new tizen.AttributeFilter("id", "EXACTLY", message.conversationId);\r
+        service.messageStorage.findConversations(conversationFilter, findConversationSuccess, findConversationError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_email_conversationsupdated.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_email_conversationsupdated.html
new file mode 100755 (executable)
index 0000000..c15180e
--- /dev/null
@@ -0,0 +1,120 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_email_conversationsupdated</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationsChangeCallback_email_conversationsupdated\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, email\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, messageService, messageStorage, message, i,\r
+    addDraftSuccess, addDraftError, updateError, oldTimestamp, changeCallback, listenerId;\r
+\r
+t.step(function () {\r
+\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        conversationsupdated: t.step_func(function (updatedConversations) {\r
+            assert_type(updatedConversations, "array", "Not an array");\r
+            assert_greater_than(updatedConversations.length, 0, "Received empty conversations array");\r
+\r
+            for (i = 0; i < updatedConversations.length; i++) {\r
+                if (updatedConversations[i].id === message.conversationId) {\r
+                    check_readonly(updatedConversations[i], "id", updatedConversations[i].id, "string", "dummyValue");\r
+                    check_readonly(updatedConversations[i], "type", "messaging.email", "string", "dummyValue");\r
+                    assert_true(updatedConversations[i].timestamp instanceof Date, "Not a date");\r
+                    oldTimestamp = updatedConversations[i].timestamp;\r
+                    updatedConversations[i].timestamp = new Date();\r
+                    assert_equals(updatedConversations[i].timestamp.getTime(), oldTimestamp.getTime(), "timestamp modified");\r
+                    check_readonly(updatedConversations[i], "messageCount", updatedConversations[i].messageCount, "number", 123);\r
+                    check_readonly(updatedConversations[i], "unreadMessages", updatedConversations[i].unreadMessages, "number", 123);\r
+                    check_readonly(updatedConversations[i], "preview", updatedConversations[i].preview, "string", "dummyValue");\r
+                    check_readonly(updatedConversations[i], "subject", message.subject, "string", "dummyValue");\r
+                    check_readonly(updatedConversations[i], "isRead", updatedConversations[i].isRead, "boolean", "dummyValue");\r
+                    check_readonly(updatedConversations[i], "from", TEST_EMAIL_RECIPIENT_1, "string", "dummyValue");\r
+                    assert_array_equals(updatedConversations[i].to, message.to, "to incorrect");\r
+                    assert_array_equals(updatedConversations[i].cc, message.cc, "cc incorrect");\r
+                    assert_array_equals(updatedConversations[i].bcc, message.bcc, "bcc incorrect");\r
+                    check_readonly(updatedConversations[i], "lastMessageId", message.id, "string", "dummyValue");\r
+\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        listenerId = messageStorage.addConversationsChangeListener(changeCallback);\r
+\r
+        message.subject = generateSubject();\r
+        messageStorage.updateMessages([message], null, updateError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        messageService = service;\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_mms_conversationsremoved.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_mms_conversationsremoved.html
new file mode 100755 (executable)
index 0000000..447f443
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_mms_conversationsremoved</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationsChangeCallback_mms_conversationsremoved\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, mms\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,\r
+    serviceSuccess, serviceError, service, message,\r
+    removeAllSuccess, sendError, conversationChangeCB,\r
+    removeConversation, removeConversationError, removedConversationId;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    removeConversationError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeConversation = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "conversations");\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        for (i = 0; i < conversations.length; i++) {\r
+            if (conversations[i].id === message.conversationId) {\r
+                removedConversationId = conversations[i].id;\r
+                service.messageStorage.removeConversations([conversations[i]], null, removeConversationError);\r
+                break;\r
+            }\r
+        }\r
+    });\r
+    \r
+    conversationChangeCB = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            removeConversation(conversations);\r
+        }),\r
+        conversationsupdated: t.step_func(function (conversations) {\r
+            removeConversation(conversations);\r
+        }),       \r
+        conversationsremoved: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            t.done();\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        listenerId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        sendMessage(t, service, message, null, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_mms_conversationsupdated.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_mms_conversationsupdated.html
new file mode 100755 (executable)
index 0000000..372720b
--- /dev/null
@@ -0,0 +1,108 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_mms_conversationsupdated</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationsChangeCallback_mms_conversationsupdated\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, mms\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,\r
+    serviceSuccess, serviceError, service, message1, message2,\r
+    removeAllSuccess, sendSuccess, sendError, conversationChangeCB;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    conversationChangeCB = {\r
+        conversationsupdated: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message2.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        listenerId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);\r
+\r
+        message2 = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        sendMessage(t, service, message2, null, sendError);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        message1 = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        sendMessage(t, service, message1, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageConversationsChangeCallback_notexist.html
new file mode 100755 (executable)
index 0000000..ee26a76
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageConversationsChangeCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageConversationsChangeCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageConversationsChangeCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:MessageConversationsChangeCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageConversationsChangeCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolderArraySuccessCallback_email_onsuccess.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolderArraySuccessCallback_email_onsuccess.html
new file mode 100755 (executable)
index 0000000..0e6631d
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolderArraySuccessCallback_email_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolderArraySuccessCallback_email_onsuccess\r
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageFolderArraySuccessCallback, email\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolderArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), messageService,\r
+    messageStorage, filter, messageFolder, serviceSuccess, serviceError, folderSuccess, folderError, i;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+        assert_type(folders, "array", "Not an array.");\r
+\r
+        for (i = 0; i < folders.length; i++) {\r
+            messageFolder = folders[i];\r
+            assert_own_property(messageFolder, "id", "MessageFolder does not own parentId property for index=" + i);\r
+            assert_own_property(messageFolder, "parentId", "MessageFolder does not own parentId property for index=" + i);\r
+            assert_own_property(messageFolder, "serviceId", "MessageFolder does not own serviceId property for index=" + i);\r
+            assert_own_property(messageFolder, "contentType", "MessageFolder does not own contentType property for index=" + i);\r
+            assert_own_property(messageFolder, "name", "MessageFolder does not own name property for index=" + i);\r
+            assert_own_property(messageFolder, "path", "MessageFolder does not own path property for index=" + i);\r
+            assert_own_property(messageFolder, "type", "MessageFolder does not own type property for index=" + i);\r
+            assert_own_property(messageFolder, "synchronizable", "MessageFolder does not own synchronizable property for index=" + i);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolderArraySuccessCallback_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolderArraySuccessCallback_notexist.html
new file mode 100755 (executable)
index 0000000..51124b2
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolderArraySuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolderArraySuccessCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageFolderArraySuccessCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolderArraySuccessCallback:MessageFolderArraySuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageFolderArraySuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_contentType_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_contentType_exist.html
new file mode 100755 (executable)
index 0000000..033f3d3
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageFolder_contentType_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageFolder_contentType_exist\r
+//==== LABEL Check if the attribute contentType in MessageFolder\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:contentType A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    getMessageServicesSuccess, getMessageServicesError,\r
+    findFoldersSuccess, findFoldersError, filter;\r
+\r
+t.step(function () {\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "there should be folders");\r
+        assert_true("contentType" in folders[0], "contentType is not exist");\r
+        t.done();\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "There shout be available a message service");\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services[0].id);\r
+        services[0].messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    getMessageServicesError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_contentType_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_contentType_attribute.html
new file mode 100755 (executable)
index 0000000..248daf6
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_contentType_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_contentType_attribute\r
+//==== LABEL Check if attribute contentType of MessageFolder (email) exists, has type MessageServiceTag and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:contentType A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,\r
+    serviceSuccess, serviceError, folderSuccess, folderError;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        assert_own_property(messageFolder, "contentType", "MessageFolder does not own contentType property.");\r
+        check_readonly(messageFolder, "contentType", "messaging.email", "string", messageFolder.contentType + "sampleValue");\r
+\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_extend.html
new file mode 100755 (executable)
index 0000000..45b336a
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_extend</title>\r
+<script src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageFolder (email) can be extended with new property\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:MessageFolder U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, serviceSuccess,\r
+    serviceError, folderSuccess, folderError, messageFolder;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        check_extensibility(messageFolder);\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_id_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_id_attribute.html
new file mode 100755 (executable)
index 0000000..df9981a
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_id_attribute\r
+//==== LABEL Check if attribute id of MessageFolder (email) exists, has type MessageFolderId and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,\r
+    serviceSuccess, serviceError, folderSuccess, folderError;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        assert_own_property(messageFolder, "id", "MessageFolder does not own id property.");\r
+        check_readonly(messageFolder, "id", messageFolder.id, "string", messageFolder.id + "_value");\r
+        assert_not_equals(messageFolder.id, "", "MessageFolder id contains an empty string");\r
+\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_name_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_name_attribute.html
new file mode 100755 (executable)
index 0000000..4b08e35
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_name_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_name_attribute\r
+//==== LABEL Check if attribute name of MessageFolder (email) exists, has type DOMString\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:name A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ASG AT AN\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,\r
+    serviceSuccess, serviceError, folderSuccess, folderError;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        assert_own_property(messageFolder, "name", "MessageFolder does not own name property.");\r
+\r
+        check_attribute(messageFolder, "name", messageFolder.name, "string", "newName");\r
+\r
+        check_not_nullable(messageFolder, "name");\r
+\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_parentId_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_parentId_attribute.html
new file mode 100755 (executable)
index 0000000..d5ce05a
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_parentId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_parentId_attribute\r
+//==== LABEL Check if attribute parentId of MessageFolder (email) exists, has type MessageFolderId and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:parentId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ARO AT ADV\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, i,\r
+    filter, messageFolder, serviceSuccess, serviceError, folderSuccess, folderError, rootFound = false;\r
+t.step(function () {\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        assert_own_property(messageFolder, "parentId", "MessageFolder does not own parentId property.");\r
+        check_readonly(messageFolder, "parentId", messageFolder.parentId, "string", messageFolder.parentId + "sampleValue");\r
+\r
+        for(i = 0; i < folders.length; i++) {\r
+            if (folders[i].parentId === null) {\r
+                rootFound = true;\r
+                break;\r
+            }\r
+        }\r
+        assert_true(rootFound, "Root folder not found.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_path_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_path_attribute.html
new file mode 100755 (executable)
index 0000000..0970e9e
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_path_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_path_attribute\r
+//==== LABEL Check if attribute path of MessageFolder (email) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:path A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,\r
+    serviceSuccess, serviceError, folderSuccess, folderError;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        assert_own_property(messageFolder, "path", "MessageFolder does not own path property.");\r
+        check_readonly(messageFolder, "path", messageFolder.path, "string", messageFolder.path + "_value");\r
+\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_serviceId_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_serviceId_attribute.html
new file mode 100755 (executable)
index 0000000..e59152d
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_serviceId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_serviceId_attribute\r
+//==== LABEL Check if attribute serviceId of MessageFolder (email) exists, has appropriate type and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:serviceId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesSuccess, getMessageServicesError,\r
+    findFoldersSuccess, findFoldersError, filter, folder, service;\r
+\r
+t.step(function () {\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+        folder = folders[0];\r
+\r
+        assert_own_property(folder, "serviceId", "serviceId not found.");\r
+\r
+        assert_type(folder.serviceId, "string", "serviceId is not a string");\r
+        assert_not_equals(folder.serviceId, "", "serviceId is empty");\r
+\r
+        check_readonly(folder, "serviceId", folder.serviceId, "string", folder.serviceId + "123");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        service.messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    getMessageServicesError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_synchronizable_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_synchronizable_attribute.html
new file mode 100755 (executable)
index 0000000..0437686
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_synchronizable_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_synchronizable_attribute\r
+//==== LABEL Check if attribute synchronizable of MessageFolder (email) exists, has type Boolean\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:synchronizable A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,\r
+    serviceSuccess, serviceError, folderSuccess, folderError;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        assert_own_property(messageFolder, "synchronizable", "MessageFolder does not own synchronizable property.");\r
+        check_attribute(messageFolder, "synchronizable", messageFolder.synchronizable, "boolean", !messageFolder.synchronizable);\r
+\r
+        check_not_nullable(messageFolder, "synchronizable");\r
+\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_type_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_email_type_attribute.html
new file mode 100755 (executable)
index 0000000..787e0cf
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_email_type_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_email_type_attribute\r
+//==== LABEL Check if attribute type of MessageFolder (email) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, filter, messageFolder,\r
+    serviceSuccess, serviceError, folderSuccess, folderError;\r
+t.step(function () {\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "Received empty folders array");\r
+        messageFolder = folders[0];\r
+\r
+        assert_own_property(messageFolder, "type", "MessageFolder does not own type property.");\r
+        check_readonly(messageFolder, "type", messageFolder.type, "string", messageFolder.type + "_value");\r
+\r
+        t.done();\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", messageService.id);\r
+        messageStorage.findFolders(filter, folderSuccess, folderError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_id_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_id_exist.html
new file mode 100755 (executable)
index 0000000..43b179a
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageFolder_id_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageFolder_id_exist\r
+//==== LABEL Check if the attribute id in MessageFolder\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    getMessageServicesSuccess, getMessageServicesError,\r
+    findFoldersSuccess, findFoldersError, filter;\r
+\r
+t.step(function () {\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "there should be folders");\r
+        assert_true("id" in folders[0], "id is not exist");\r
+        t.done();\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "There shout be available a message service");\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services[0].id);\r
+        services[0].messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    getMessageServicesError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_notexist.html
new file mode 100755 (executable)
index 0000000..808e2f7
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFolder_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFolder_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageFolder exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:MessageFolder U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA NIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageFolder");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_path_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_path_exist.html
new file mode 100755 (executable)
index 0000000..623639d
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageFolder_path_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageFolder_path_exist\r
+//==== LABEL Check if the attribute path in MessageFolder\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:path A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    getMessageServicesSuccess, getMessageServicesError,\r
+    findFoldersSuccess, findFoldersError, filter;\r
+\r
+t.step(function () {\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "there should be folders");\r
+        assert_true("path" in folders[0], "path is not exist");\r
+        t.done();\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "There shout be available a message service");\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services[0].id);\r
+        services[0].messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    getMessageServicesError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_type_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFolder_type_exist.html
new file mode 100755 (executable)
index 0000000..8207e32
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageFolder_type_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageFolder_type_exist\r
+//==== LABEL Check if the attribute type in MessageFolder\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFolder:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    getMessageServicesSuccess, getMessageServicesError,\r
+    findFoldersSuccess, findFoldersError, filter;\r
+\r
+t.step(function () {\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "there should be folders");\r
+        assert_true("type" in folders[0], "type is not exist");\r
+        t.done();\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "There shout be available a message service");\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services[0].id);\r
+        services[0].messageStorage.findFolders(filter, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    getMessageServicesError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccess, getMessageServicesError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersadded.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersadded.html
new file mode 100755 (executable)
index 0000000..2ba8276
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFoldersChangeCallback_foldersadded</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFoldersChangeCallback_foldersadded\r
+//==== LABEL Check if foldersadded callback was invoked with proper argument type.\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageFoldersChangeCallback:foldersadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter, addDraftError, i, message;\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(function (updatedFolders) {\r
+        }),\r
+        foldersadded: t.step_func(function (addedFolders) {\r
+            assert_type(addedFolders, "array", "type check");\r
+            assert_greater_than(addedFolders.length, 0, "Received empty folders array");\r
+            for (i = 0; i < addedFolders.length; i++) {\r
+                assert_own_property(addedFolders[i], "id", "id not present.");\r
+                assert_own_property(addedFolders[i], "parentId", "parentId not present.");\r
+                assert_own_property(addedFolders[i], "serviceId", "serviceId not present.");\r
+                assert_own_property(addedFolders[i], "contentType", "contentType not present.");\r
+                assert_own_property(addedFolders[i], "name", "name not present.");\r
+                assert_own_property(addedFolders[i], "path", "path not present.");\r
+                assert_own_property(addedFolders[i], "type", "type not present.");\r
+                assert_own_property(addedFolders[i], "synchronizable", "synchronizable not present.");\r
+            }\r
+        }),\r
+        foldersremoved: t.step_func(function (removedFolders) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);\r
+        assert_type(watchId, "long", "Incorrect returned type");\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.addDraftMessage(message, null, addDraftError);\r
+        service.messageStorage.removeChangeListener(watchId);\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersremoved.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersremoved.html
new file mode 100755 (executable)
index 0000000..951e718
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFoldersChangeCallback_foldersremoved</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFoldersChangeCallback_foldersremoved\r
+//==== LABEL Check if foldersremoved callback was invoked with proper argument type.\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageFoldersChangeCallback:foldersremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter, addDraftError, i, message;\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(function (updatedFolders) {\r
+        }),\r
+        foldersadded: t.step_func(function (addedFolders) {\r
+        }),\r
+        foldersremoved: t.step_func(function (removedFolders) {\r
+            assert_type(removedFolders, "array", "type check");\r
+            assert_greater_than(removedFolders.length, 0, "Received empty folders array");\r
+            for (i = 0; i < removedFolders.length; i++) {\r
+                assert_own_property(removedFolders[i], "id", "id not present.");\r
+                assert_own_property(removedFolders[i], "parentId", "parentId not present.");\r
+                assert_own_property(removedFolders[i], "serviceId", "serviceId not present.");\r
+                assert_own_property(removedFolders[i], "contentType", "contentType not present.");\r
+                assert_own_property(removedFolders[i], "name", "name not present.");\r
+                assert_own_property(removedFolders[i], "path", "path not present.");\r
+                assert_own_property(removedFolders[i], "type", "type not present.");\r
+                assert_own_property(removedFolders[i], "synchronizable", "synchronizable not present.");\r
+            }\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);\r
+        assert_type(watchId, "long", "Incorrect returned type");\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.addDraftMessage(message, null, addDraftError);\r
+        service.messageStorage.removeChangeListener(watchId);\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersupdated.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_foldersupdated.html
new file mode 100755 (executable)
index 0000000..0d40a60
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFoldersChangeCallback_foldersupdated</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFoldersChangeCallback_foldersupdated\r
+//==== LABEL Check if foldersupdated callback was invoked with proper argument type.\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageFoldersChangeCallback:foldersupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter, addDraftError, i, message;\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(function (updatedFolders) {\r
+            assert_type(updatedFolders, "array", "type check");\r
+            assert_greater_than(updatedFolders.length, 0, "Received empty folders array");\r
+            for (i = 0; i < updatedFolders.length; i++) {\r
+                assert_own_property(updatedFolders[i], "id", "id not present.");\r
+                assert_own_property(updatedFolders[i], "parentId", "parentId not present.");\r
+                assert_own_property(updatedFolders[i], "serviceId", "serviceId not present.");\r
+                assert_own_property(updatedFolders[i], "contentType", "contentType not present.");\r
+                assert_own_property(updatedFolders[i], "name", "name not present.");\r
+                assert_own_property(updatedFolders[i], "path", "path not present.");\r
+                assert_own_property(updatedFolders[i], "type", "type not present.");\r
+                assert_own_property(updatedFolders[i], "synchronizable", "synchronizable not present.");\r
+            }\r
+        }),\r
+        foldersadded: t.step_func(function (addedFolders) {\r
+        }),\r
+        foldersremoved: t.step_func(function (removedFolders) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);\r
+        assert_type(watchId, "long", "Incorrect returned type");\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.addDraftMessage(message, null, addDraftError);\r
+        service.messageStorage.removeChangeListener(watchId);\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageFoldersChangeCallback_notexist.html
new file mode 100755 (executable)
index 0000000..0838dd4
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageFoldersChangeCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageFoldersChangeCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageFoldersChangeCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageFoldersChangeCallback:MessageFoldersChangeCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageFoldersChangeCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_email.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_email.html
new file mode 100755 (executable)
index 0000000..74b8ea7
--- /dev/null
@@ -0,0 +1,55 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageInit_MessageInit_valid_argument_email</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageInit_MessageInit_valid_argument_email\r
+//==== LABEL Checks various message attributes upon message (email) creation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM CONSTRA\r
+\r
+test(function () {\r
+\r
+    var emailMsg;\r
+\r
+   emailMsg = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd",\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+    assert_equals(emailMsg.body.plainBody, "abd", "email message creation failed.");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_mms.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_mms.html
new file mode 100755 (executable)
index 0000000..625f9c4
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageInit_MessageInit_valid_argument_mms</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageInit_MessageInit_valid_argument_mms\r
+//==== LABEL Checks various message attributes upon message (mms) creation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM CONSTRA\r
+test(function () {\r
+    var mmsMsg;\r
+\r
+    mmsMsg = new tizen.Message("messaging.mms", {\r
+        subject: "Mms Message Test",\r
+        plainBody: "MMS Message Body",\r
+        to: [TEST_SMS_RECIPIENT]\r
+    });\r
+    assert_equals(mmsMsg.subject, "Mms Message Test", "MMS message creation failed.");\r
+    assert_equals(mmsMsg.to.length, 1, "MMS message creation failed.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_sms.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageInit_MessageInit_valid_argument_sms.html
new file mode 100755 (executable)
index 0000000..fe637ed
--- /dev/null
@@ -0,0 +1,56 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageInit_MessageInit_valid_argument_sms</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageInit_MessageInit_valid_argument_sms\r
+//==== LABEL Checks various message attributes upon message (sms) creation\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM CONSTRA\r
+test(function () {\r
+    var smsMsg;\r
+\r
+    smsMsg = new tizen.Message("messaging.sms", {\r
+        plainBody: "Sms Message Test",\r
+        to: [TEST_SMS_RECIPIENT]\r
+    });\r
+\r
+    assert_equals(smsMsg.body.plainBody, "Sms Message Test", "SMS message creation failed.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageManagerObject_messaging.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageManagerObject_messaging.html
new file mode 100755 (executable)
index 0000000..9c9a121
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageManagerObject_messaging</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageManagerObject_messaging\r
+//==== LABEL Check the attribute messaging in MessageManagerObject\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:Messaging U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBME\r
+\r
+test(function () {\r
+    assert_true("messaging" in tizen, "tizen.messaging exists");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageManagerObject_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageManagerObject_notexist.html
new file mode 100755 (executable)
index 0000000..eb4f95c
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageManagerObject_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageManagerObject_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageManagerObject exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageManagerObject:MessageManagerObject U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA NIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageManagerObject");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageRecipientsCallback_email_onsuccess.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageRecipientsCallback_email_onsuccess.html
new file mode 100755 (executable)
index 0000000..4dda3b9
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageRecipientsCallback_email_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageRecipientsCallback_email_onsuccess\r
+//==== LABEL Check if callback is called and if its arguments have proper type, check argument recipients type - DOMString[]\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageRecipientsCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, sendSuccess, sendError, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_type(recipients, "array", "recipients type is not array");\r
+        assert_equals(recipients.length, 1, "recipients.length should be 1");\r
+        assert_type(recipients[0], "string", "recipients[0] type is not string");\r
+        assert_equals(recipients[0], TEST_EMAIL_RECIPIENT_2, "recipient in sent message is not the same as recipient set during message creation");\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("failed to receive services: name:" + error.name + " message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("failed to receive services: " + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageRecipientsCallback_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageRecipientsCallback_notexist.html
new file mode 100755 (executable)
index 0000000..f0e2227
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageRecipientsCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageRecipientsCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageRecipientsCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageRecipientsCallback:MessageRecipientsCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageRecipientsCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_email_onsuccess.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_email_onsuccess.html
new file mode 100755 (executable)
index 0000000..0fbf807
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageServiceArraySuccessCallback_email_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageServiceArraySuccessCallback_email_onsuccess\r
+//==== LABEL Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for email\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, i;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "Not an array");\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        for(i = 0; i< services.length; i++){\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.email", "Type is not equal email");\r
+\r
+            assert_true("id" in services[i], "Name id doesn't exist in provided object.");\r
+            assert_true("name" in services[i], "Name name doesn't exist in provided object.");\r
+            assert_true("messageStorage" in services[i], "Name messageStorage doesn't exist in provided object.");\r
+            assert_type(services[i].sendMessage, "function", "Checking sendMessage of find");\r
+            assert_type(services[i].loadMessageBody, "function", "Checking loadMessageBody of find");\r
+            assert_type(services[i].loadMessageAttachment, "function", "Checking loadMessageAttachment of find");\r
+            assert_type(services[i].sync, "function", "Checking sync of find");\r
+            assert_type(services[i].syncFolder, "function", "Checking syncFolder of find");\r
+            assert_type(services[i].stopSync, "function", "Checking stopSync of find");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_mms_onsuccess.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_mms_onsuccess.html
new file mode 100755 (executable)
index 0000000..35c0029
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageServiceArraySuccessCallback_mms_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageServiceArraySuccessCallback_mms_onsuccess\r
+//==== LABEL Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for mms\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, i;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        assert_type(services, "array", "Not an array");\r
+\r
+        for(i = 0; i< services.length; i++){\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.mms", "Type is not equal mms");\r
+\r
+            assert_true("id" in services[i], "Name id doesn't exist in provided object.");\r
+            assert_true("name" in services[i], "Name name doesn't exist in provided object.");\r
+            assert_true("messageStorage" in services[i], "Name messageStorage doesn't exist in provided object.");\r
+            assert_type(services[i].sendMessage, "function", "Checking sendMessage of find");\r
+            assert_type(services[i].loadMessageBody, "function", "Checking loadMessageBody of find");\r
+            assert_type(services[i].loadMessageAttachment, "function", "Checking loadMessageAttachment of find");\r
+            assert_type(services[i].sync, "function", "Checking sync of find");\r
+            assert_type(services[i].syncFolder, "function", "Checking syncFolder of find");\r
+            assert_type(services[i].stopSync, "function", "Checking stopSync of find");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_notexist.html
new file mode 100755 (executable)
index 0000000..af7a6ea
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageServiceArraySuccessCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageServiceArraySuccessCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageServiceArraySuccessCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:MessageServiceArraySuccessCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageServiceArraySuccessCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_onsuccess.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_onsuccess.html
new file mode 100755 (executable)
index 0000000..abba29e
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageServiceArraySuccessCallback_onsuccess</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageServiceArraySuccessCallback_onsuccess\r
+//==== LABEL Check the function onsuccess in MessageServiceArraySuccessCallback\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "Not an array");\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_sms_onsuccess.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageServiceArraySuccessCallback_sms_onsuccess.html
new file mode 100755 (executable)
index 0000000..6700d14
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageServiceArraySuccessCallback_sms_onsuccess</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageServiceArraySuccessCallback_sms_onsuccess\r
+//==== LABEL Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for sms\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageServiceArraySuccessCallback:onsuccess M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, i;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        assert_type(services, "array", "Not an array");\r
+\r
+        for(i = 0; i< services.length; i++) {\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.sms", "Type is not equal sms");\r
+\r
+            assert_true("id" in services[i], "Name id doesn't exist in provided object.");\r
+            assert_true("name" in services[i], "Name name doesn't exist in provided object.");\r
+            assert_true("messageStorage" in services[i], "Name messageStorage doesn't exist in provided object.");\r
+            assert_type(services[i].sendMessage, "function", "Checking sendMessage of find");\r
+            assert_type(services[i].loadMessageBody, "function", "Checking loadMessageBody of find");\r
+            assert_type(services[i].loadMessageAttachment, "function", "Checking loadMessageAttachment of find");\r
+            assert_type(services[i].sync, "function", "Checking sync of find");\r
+            assert_type(services[i].syncFolder, "function", "Checking syncFolder of find");\r
+            assert_type(services[i].stopSync, "function", "Checking stopSync of find");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_extend.html
new file mode 100755 (executable)
index 0000000..e1a248b
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_extend</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageService (email) can be extended with new property\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:MessageService U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        check_extensibility(messageService);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_id_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_id_attribute.html
new file mode 100755 (executable)
index 0000000..a273066
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_id_attribute\r
+//==== LABEL Check if attribute id of MessageService (email) exists, has appropriate type and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_own_property(service, "id", "No 'id' attribute in service");\r
+\r
+        assert_type(service.id, "string", "Incorrect type");\r
+        assert_not_equals(service.id, "", "Id is empty");\r
+\r
+        check_readonly(service, "id", service.id, "string", "123456");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment.html
new file mode 100755 (executable)
index 0000000..f097281
--- /dev/null
@@ -0,0 +1,144 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment\r
+//==== LABEL Check if MessageService.loadMessageAttachment method works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, inboxFolder, message, attachment, returnedValue = null,\r
+    serviceSuccess, serviceError, sendSuccess, sendError, syncSuccess, syncError,\r
+    findSuccess, findError, foundMessage, loadAttachmentSuccess, loadAttachmentError,\r
+    loadBodySuccess, loadBodyError, loadMessage, folderSuccess, folderError;\r
+\r
+t.step(function () {\r
+\r
+    loadAttachmentSuccess = t.step_func(function (f_attachment) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from loadMessageAttachment");\r
+        assert_true(f_attachment instanceof tizen.MessageAttachment, "Not a tizen.MessageAttachment.");\r
+\r
+        assert_type(f_attachment.id, "string", "attachment.id incorrect type.");\r
+        assert_not_equals(f_attachment.id, "", "attachment.id is empty.");\r
+\r
+        assert_type(f_attachment.messageId, "string", "attachment.messageId incorrect type.");\r
+        assert_equals(f_attachment.messageId, foundMessage.attachments[0].messageId, "attachment.messageId");\r
+\r
+        assert_equals(f_attachment.mimeType, attachment.mimeType, "attachment.mimeType");\r
+\r
+        assert_type(f_attachment.filePath, "string", "attachment.filePath incorrect type.");\r
+        assert_not_equals(f_attachment.filePath, "", "attachment.filePath is empty.");\r
+        t.done();\r
+    });\r
+\r
+    loadAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadBodySuccess = t.step_func(function (message) {\r
+        loadMessage = message;\r
+        assert_equals(loadMessage.attachments.length, 1, "Incorrect number of found attachments");\r
+        returnedValue = service.loadMessageAttachment(loadMessage.attachments[0], loadAttachmentSuccess, loadAttachmentError);\r
+    });\r
+\r
+    loadBodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+\r
+            foundMessage = messages[0];\r
+            if (foundMessage.attachments.length === 0) {\r
+                service.loadMessageBody(foundMessage, loadBodySuccess, loadBodyError);\r
+            } else {\r
+                returnedValue = service.loadMessageAttachment(foundMessage.attachments[0], loadAttachmentSuccess, loadAttachmentError);\r
+            }\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, folderSuccess, folderError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..cfbec99
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_attachment_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_attachment_TypeMismatch\r
+//==== LABEL Check type conversions for attachment argument of MessageService.loadMessageAttachment method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName, incorrectAttachment, loadAttachmentSuccess,\r
+    loadAttachmentError, conversionTable, i;\r
+t.step(function () {\r
+\r
+    loadAttachmentSuccess = t.step_func(function (attachment) {\r
+        assert_unreached("loadMessageAttachment() success callback invoked");\r
+    });\r
+\r
+    loadAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectAttachment = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageService.loadMessageAttachment(incorrectAttachment, loadAttachmentSuccess, loadAttachmentError);\r
+                }, exceptionName + " should be thrown - given incorrect Attachment: " + incorrectAttachment);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html
new file mode 100755 (executable)
index 0000000..6c3c1f5
--- /dev/null
@@ -0,0 +1,96 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_attachment_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_attachment_invalid_cb\r
+//==== LABEL Check if MessageService.loadMessageAttachment method throws exception when attachment is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", loadAttachmentSuccess,\r
+    loadAttachmentError, fakeAttachment;\r
+\r
+t.step(function () {\r
+\r
+    loadAttachmentSuccess = t.step_func(function (attachment) {\r
+        assert_unreached("loadMessageAttachment() success callback invoked");\r
+    });\r
+\r
+    loadAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+\r
+        fakeAttachment = {\r
+            id: message.attachments[0].id,\r
+            messageId: message.attachments[0].messageId,\r
+            mimeType: message.attachments[0].mimeType,\r
+            filePath: message.attachments[0].filePath\r
+        };\r
+        assert_throws({ name: exceptionName },\r
+            function () {\r
+                messageService.loadMessageAttachment(fakeAttachment, loadAttachmentSuccess, loadAttachmentError);\r
+            }, exceptionName + " should be thrown - incorrect success object.");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..3fdbb69
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.loadMessageAttachment method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName, incorrectCallback, loadAttachmentSuccess,\r
+    conversionTable, i;\r
+t.step(function () {\r
+\r
+    loadAttachmentSuccess = t.step_func(function (attachment) {\r
+        assert_unreached("loadMessageAttachment() success callback invoked");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageService.loadMessageAttachment(message.attachments[0], loadAttachmentSuccess, incorrectCallback);\r
+                }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..01d8e7b
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.loadMessageAttachment method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", incorrectCallback,\r
+    loadAttachmentSuccess;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("Incorrect errorCallback invoked: " + error.name + ": " + error.message);\r
+        })\r
+    };\r
+\r
+    loadAttachmentSuccess = t.step_func(function (attachment) {\r
+        assert_unreached("loadMessageAttachment() success callback invoked");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws({ name: exceptionName },\r
+            function () {\r
+                messageService.loadMessageAttachment(message.attachments[0], loadAttachmentSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - incorrect success object.");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_exist.html
new file mode 100755 (executable)
index 0000000..dcbeb5d
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_exist\r
+//==== LABEL Check if method loadMessageAttachment of MessageService (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_true("loadMessageAttachment" in service, "No loadMessageAttachment method in service");\r
+        check_method_exists(service, "loadMessageAttachment");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_missarg.html
new file mode 100755 (executable)
index 0000000..438547b
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_missarg</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageService.loadMessageAttachment (email)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, messageService, messageStorage, message, attachment,\r
+    addDraftError, addDraftSuccess, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageService.loadMessageAttachment(message.attachments[0]);\r
+            }, exceptionName + " should be thrown - missing mandatory argument.");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.attachments = [attachment];\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..4e00963
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.loadMessageAttachment method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName, incorrectCallback, loadAttachmentError,\r
+    conversionTable, i;\r
+t.step(function () {\r
+\r
+    loadAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageService.loadMessageAttachment(message.attachments[0], incorrectCallback, loadAttachmentError);\r
+                }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..870c93d
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.loadMessageAttachment method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, message, attachment,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", incorrectCallback,\r
+    loadAttachmentError;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function (error) {\r
+            assert_unreached("Incorrect successCallback invoked: " + error.name + ": " + error.message);\r
+        })\r
+    };\r
+\r
+    loadAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws({ name: exceptionName },\r
+            function () {\r
+                messageService.loadMessageAttachment(message.attachments[0], incorrectCallback, loadAttachmentError);\r
+            }, exceptionName + " should be thrown - incorrect success object.");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_without_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageAttachment_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..030db72
--- /dev/null
@@ -0,0 +1,140 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageAttachment_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageAttachment_without_errorCallback\r
+//==== LABEL Check if MessageService.loadMessageAttachment method works properly without errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MMINA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, inboxFolder, serviceSuccess, serviceError, sendSuccess, sendError,\r
+    message, attachment, syncSuccess, syncError, returnedValue = null, findSuccess, findError, foundMessage,\r
+    loadAttachmentSuccess, loadBodySuccess, loadBodyError, loadMessage, folderSuccess, folderError;\r
+\r
+t.step(function () {\r
+    loadAttachmentSuccess = t.step_func(function (f_attachment) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from loadMessageAttachment");\r
+        assert_true(f_attachment instanceof tizen.MessageAttachment, "Not a tizen.MessageAttachment.");\r
+\r
+        assert_type(f_attachment.id, "string", "attachment.id incorrect type.");\r
+        assert_not_equals(f_attachment.id, "", "attachment.id is empty.");\r
+\r
+        assert_type(f_attachment.messageId, "string", "attachment.messageId incorrect type.");\r
+        assert_equals(f_attachment.messageId, foundMessage.attachments[0].messageId, "attachment.messageId");\r
+\r
+        assert_equals(f_attachment.mimeType, attachment.mimeType, "attachment.mimeType");\r
+\r
+        assert_type(f_attachment.filePath, "string", "attachment.filePath incorrect type.");\r
+        assert_not_equals(f_attachment.filePath, "", "attachment.filePath is empty.");\r
+        t.done();\r
+    });\r
+\r
+    loadBodySuccess = t.step_func(function (message) {\r
+        loadMessage = message;\r
+        assert_equals(loadMessage.attachments.length, 1, "Incorrect number of found attachments");\r
+        returnedValue = service.loadMessageAttachment(loadMessage.attachments[0], loadAttachmentSuccess);\r
+    });\r
+\r
+    loadBodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+\r
+            foundMessage = messages[0];\r
+\r
+            if (foundMessage.attachments.length === 0) {\r
+                service.loadMessageBody(foundMessage, loadBodySuccess, loadBodyError);\r
+            } else {\r
+                returnedValue = service.loadMessageAttachment(foundMessage.attachments[0], loadAttachmentSuccess);\r
+            }\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, folderSuccess, folderError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+        attachment = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg");\r
+        message.attachments = [attachment];\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody.html
new file mode 100755 (executable)
index 0000000..50ade81
--- /dev/null
@@ -0,0 +1,151 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageService_email_loadMessageBody\r
+//==== LABEL Check if MessageService.loadMessageBody method works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,\r
+    findMessagesSuccess, findMessagesError,\r
+    loadMessageBodySuccess, service, filter, myMessage, j, returnedValue = null;\r
+\r
+t.step(function () {\r
+    loadMessageBodySuccess = t.step_func(function (msg) {\r
+        assert_not_equals(msg, null, "load message successfully");\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, myMessage.id, "Id is not equal");\r
+        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");\r
+        assert_equals(msg.conversationId, myMessage.conversationId, "conversationId is not equal");\r
+        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");\r
+        assert_equals(msg.folderId, myMessage.folderId, "folderId is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, myMessage.type, "type is not equal");\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), myMessage.timestamp.getTime(), "timestamp is not equal");\r
+        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");\r
+        assert_equals(msg.from, myMessage.from, "from is not equal");\r
+        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");\r
+        for(j = 0; j < msg.to.length; j++){\r
+            assert_equals(msg.to[j], myMessage.to[j], "to is not equal");\r
+        }\r
+        assert_own_property(msg, "bcc", "Name bcc doesn't exist in provided object.");\r
+        for(j = 0; j < msg.bcc.length; j++){\r
+            assert_equals(msg.bcc[j], myMessage.bcc[j], "bcc is not equal");\r
+        }\r
+        assert_own_property(msg, "cc", "Name cc doesn't exist in provided object.");\r
+        for(j = 0; j < msg.cc.length; j++){\r
+            assert_equals(msg.cc[j], myMessage.cc[j], "cc is not equal");\r
+        }\r
+        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");\r
+        assert_equals(msg.body.messageId, myMessage.body.messageId, "body.messageId is not equal");\r
+        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");\r
+        assert_equals(msg.body.loaded, myMessage.body.loaded, "loaded is not equal");\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, myMessage.body.plainBody, "plainBody is not equal");\r
+        assert_own_property(msg.body, "htmlBody", "Name htmlBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.htmlBody, myMessage.body.htmlBody, "htmlBody is not equal");\r
+        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");\r
+        assert_equals(msg.isRead, myMessage.isRead, "isRead is not equal");\r
+        assert_own_property(msg, "hasAttachment", "Name hasAttachment doesn't exist in provided object.");\r
+        assert_equals(msg.hasAttachment, myMessage.hasAttachment, "hasAttachment is not equal");\r
+        assert_own_property(msg, "isHighPriority", "Name isHighPriority doesn't exist in provided object.");\r
+        assert_equals(msg.isHighPriority, myMessage.isHighPriority, "isHighPriority is not equal");\r
+        assert_own_property(msg, "subject", "Name subject doesn't exist in provided object.");\r
+        assert_equals(msg.subject, myMessage.subject, "subject is not equal");\r
+        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");\r
+        assert_equals(msg.inResponseTo, myMessage.inResponseTo, "inResponseTo is not equal");\r
+        assert_own_property(msg, "messageStatus", "Name messageStatus doesn't exist in provided object.");\r
+        assert_equals(msg.messageStatus, myMessage.messageStatus, "messageStatus is not equal");\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        myMessage = messages[0];\r
+        returnedValue = service.loadMessageBody(myMessage, loadMessageBodySuccess);\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("find error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..9216687
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_errorCallback_TypeMismatch</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_email_loadMessageBody_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.loadMessageBody method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,\r
+    loadMessageBodySuccess, service, i, param, conversionTable, exceptionName;\r
+\r
+t.step(function () {\r
+    loadMessageBodySuccess = t.step_func(function (message) {\r
+        assert_unreached("sould not be called");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            param = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.loadMessageBody(message, loadMessageBodySuccess, param);\r
+            }, exceptionName + " should be thrown " + param);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..0e919d1
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_errorCallback_invalid_cb</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_email_loadMessageBody_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.loadMessageBody method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,\r
+    loadMessageBodySuccess, incorrectCallback, service;\r
+\r
+t.step(function () {\r
+    loadMessageBodySuccess = t.step_func(function () {\r
+        assert_unreached("loadMessageBody() success callback invoked");\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("Incorrect errorCallback invoked: " + error.name + ": " + error.message);\r
+        })\r
+    };\r
+\r
+    addDraftSuccess = t.step_func(function (){\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.loadMessageBody(message, loadMessageBodySuccess, incorrectCallback);\r
+        });\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_exist.html
new file mode 100755 (executable)
index 0000000..c514b25
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageBody_exist\r
+//==== LABEL Check if method loadMessageBody of MessageService (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("loadMessageBody" in service, "No loadMessageBody method in message_service");\r
+        check_method_exists(service, "loadMessageBody");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_message_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..ba3aae8
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_message_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageBody_message_TypeMismatch\r
+//==== LABEL Check if message argument of MessageService::loadMessageBody will throw exception when given invalid type argument\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), loadMessageBodySuccess, service, filter, i, incorrectBody, conversionTable,\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError, findMessagesSuccess, findMessagesError, exceptionName;\r
+\r
+t.step(function () {\r
+    loadMessageBodySuccess = t.step_func(function (msg) {\r
+    });\r
+\r
+    findMessagesSuccess = t.step_func(function () {\r
+    conversionTable = getTypeConversionExceptions("object", false);\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectBody = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    service.loadMessageBody(incorrectBody, loadMessageBodySuccess);\r
+                }, exceptionName + " should be thrown - given incorrect message: " + incorrectBody);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("find error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_message_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..36d5a58
--- /dev/null
@@ -0,0 +1,114 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_message_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageService_email_loadMessageBody_message_invalid_obj\r
+//==== LABEL Check invalid object for message argument of MessageService::loadMessageBody method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTO\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError, fakeMessage,\r
+    findMessagesSuccess, findMessagesError, loadMessageBodySuccess, service, filter;\r
+\r
+t.step(function () {\r
+    loadMessageBodySuccess = t.step_func(function () {\r
+    });\r
+\r
+    findMessagesSuccess = t.step_func(function () {\r
+        fakeMessage = {\r
+            id: "1",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.email",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [TEST_EMAIL_RECIPIENT_1],\r
+            cc: [],\r
+            bcc: [],\r
+            body: {\r
+                messageId: "1",\r
+                loaded: false,\r
+                plainBody: MESSAGE_BODY_PLAIN,\r
+                htmlBody: "",\r
+                inlineAttachments: []\r
+            },\r
+            isRead: false,\r
+            hasAttachment: false,\r
+            isHighPriority: false,\r
+            subject: "",\r
+            inResponseTo: null,\r
+            messageStatus: "",\r
+            attachments: []\r
+        };\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function() {\r
+            service.loadMessageBody(fakeMessage, loadMessageBodySuccess);\r
+        }, "fake message object was pased but exception was not thrown");\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("find error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_missarg.html
new file mode 100755 (executable)
index 0000000..5b62c19
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageBody_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageService.loadMessageBody (email)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, message, serviceSuccess, serviceError, addDraftSuccess, addDraftError,\r
+    exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws({ name: exceptionName },\r
+            function () {\r
+                service.loadMessageBody(message);\r
+            }, exceptionName + " should be thrown - missing argument.");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_missarg_message.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_missarg_message.html
new file mode 100755 (executable)
index 0000000..88bf620
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_missarg_message</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_loadMessageBody_missarg_message\r
+//==== LABEL Check with missing message argument - MessageService.loadMessageBody (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.loadMessageBody();\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..0b91d3a
--- /dev/null
@@ -0,0 +1,109 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_successCallback_TypeMismatch</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_email_loadMessageBody_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.loadMessageBody method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,\r
+    findMessagesSuccess, findMessagesError,\r
+    service, i, param, conversionTable, exceptionName, filter;\r
+\r
+t.step(function () {\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            param = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.loadMessageBody(messages[0], param);\r
+            }, exceptionName + " should be thrown " + param);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..cd080f2
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_successCallback_invalid_cb</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_email_loadMessageBody_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.loadMessageBody method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError, service;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.loadMessageBody(message, { onsuccess: function () {} });\r
+        });\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_loadMessageBody_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..8cc27f2
--- /dev/null
@@ -0,0 +1,153 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Krzysztof Lachacz <k.lachacz@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_loadMessageBody_with_errorCallback</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_email_loadMessageBody_with_errorCallback\r
+//==== LABEL Check if MessageService.loadMessageBody method works properly with errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR MAST\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, addDraftError,\r
+    findMessagesSuccess, findMessagesError,\r
+    loadMessageBodySuccess, loadMessageBodyError, filter, service, returnedValue = null, myMessage, j;\r
+\r
+t.step(function () {\r
+    loadMessageBodySuccess = t.step_func(function (msg) {\r
+        assert_not_equals(msg, null, "load message successfully");\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, myMessage.id, "Id is not equal");\r
+        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");\r
+        assert_equals(msg.conversationId, myMessage.conversationId, "conversationId is not equal");\r
+        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");\r
+        assert_equals(msg.folderId, myMessage.folderId, "folderId is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, myMessage.type, "type is not equal");\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), myMessage.timestamp.getTime(), "timestamp is not equal");\r
+        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");\r
+        assert_equals(msg.from, myMessage.from, "from is not equal");\r
+        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");\r
+        for(j = 0; j < msg.to.length; j++){\r
+            assert_equals(msg.to[j], myMessage.to[j], "to is not equal");\r
+        }\r
+        assert_own_property(msg, "bcc", "Name bcc doesn't exist in provided object.");\r
+        for(j = 0; j < msg.bcc.length; j++){\r
+            assert_equals(msg.bcc[j], myMessage.bcc[j], "bcc is not equal");\r
+        }\r
+        assert_own_property(msg, "cc", "Name cc doesn't exist in provided object.");\r
+        for(j = 0; j < msg.cc.length; j++){\r
+            assert_equals(msg.cc[j], myMessage.cc[j], "cc is not equal");\r
+        }\r
+        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");\r
+        assert_equals(msg.body.messageId, myMessage.body.messageId, "body.messageId is not equal");\r
+        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");\r
+        assert_equals(msg.body.loaded, myMessage.body.loaded, "loaded is not equal");\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, myMessage.body.plainBody, "plainBody is not equal");\r
+        assert_own_property(msg.body, "htmlBody", "Name htmlBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.htmlBody, myMessage.body.htmlBody, "htmlBody is not equal");\r
+        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");\r
+        assert_equals(msg.isRead, myMessage.isRead, "isRead is not equal");\r
+        assert_own_property(msg, "hasAttachment", "Name hasAttachment doesn't exist in provided object.");\r
+        assert_equals(msg.hasAttachment, myMessage.hasAttachment, "hasAttachment is not equal");\r
+        assert_own_property(msg, "isHighPriority", "Name isHighPriority doesn't exist in provided object.");\r
+        assert_equals(msg.isHighPriority, myMessage.isHighPriority, "isHighPriority is not equal");\r
+        assert_own_property(msg, "subject", "Name subject doesn't exist in provided object.");\r
+        assert_equals(msg.subject, myMessage.subject, "subject is not equal");\r
+        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");\r
+        assert_equals(msg.inResponseTo, myMessage.inResponseTo, "inResponseTo is not equal");\r
+        assert_own_property(msg, "messageStatus", "Name messageStatus doesn't exist in provided object.");\r
+        assert_equals(msg.messageStatus, myMessage.messageStatus, "messageStatus is not equal");\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    loadMessageBodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        myMessage = messages[0];\r
+        returnedValue = service.loadMessageBody(messages[0], loadMessageBodySuccess, loadMessageBodyError);\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage error callback called: " + error.name + " with message: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_messageStorage_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_messageStorage_attribute.html
new file mode 100755 (executable)
index 0000000..bc3c4ab
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_messageStorage_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_messageStorage_attribute\r
+//==== LABEL Check if attribute messageStorage of MessageService (email) exists, has type MessageStorage and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:messageStorage A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, storage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        messagingService = emailService;\r
+\r
+        assert_true("messageStorage" in messagingService, "No 'messageStorage' attribute in messagingService");\r
+\r
+        messagingService.messageStorage = null;\r
+        assert_not_equals(messagingService.messageStorage, null, "messageStorage shouldn't be nullable");\r
+\r
+        storage = messagingService.messageStorage;\r
+        assert_type(storage.addDraftMessage, "function", "messageStorage.addDraftMessage() method not found");\r
+        assert_type(storage.findMessages, "function", "messageStorage.findMessages() method not found");\r
+        assert_type(storage.removeMessages, "function", "messageStorage.removeMessages() method not found");\r
+        assert_type(storage.updateMessages, "function", "messageStorage.updateMessages() method not found");\r
+        assert_type(storage.findConversations, "function", "messageStorage.findConversations() method not found");\r
+        assert_type(storage.removeConversations, "function", "messageStorage.removeConversations() method not found");\r
+        assert_type(storage.findFolders, "function", "messageStorage.findFolders() method not found");\r
+        assert_type(storage.addMessagesChangeListener, "function", "messageStorage.addMessagesChangeListener() method not found");\r
+        assert_type(storage.addConversationsChangeListener, "function", "messageStorage.addConversationsChangeListener() method not found");\r
+        assert_type(storage.addFoldersChangeListener, "function",\r
+            "messageStorage.addFoldersChangeListener() method not found");\r
+        assert_type(storage.removeChangeListener, "function", "messageStorage.removeChangeListener() method not found");\r
+\r
+        messagingService.nessageStorage = {};\r
+        assert_type(storage.addDraftMessage, "function", "Not read only - messageStorage.addDraftMessage() method not found");\r
+        assert_type(storage.findMessages, "function", "Not read only - messageStorage.findMessages() method not found");\r
+        assert_type(storage.removeMessages, "function", "Not read only - messageStorage.removeMessages() method not found");\r
+        assert_type(storage.updateMessages, "function", "Not read only - messageStorage.updateMessages() method not found");\r
+        assert_type(storage.findConversations, "function", "Not read only - messageStorage.findConversations() method not found");\r
+        assert_type(storage.removeConversations, "function", "Not read only - messageStorage.removeConversations() method not found");\r
+        assert_type(storage.findFolders, "function", "Not read only - messageStorage.findFolders() method not found");\r
+        assert_type(storage.addMessagesChangeListener, "function",\r
+            "Not read only - messageStorage.addMessagesChangeListener() method not found");\r
+        assert_type(storage.addConversationsChangeListener, "function",\r
+            "Not read only - messageStorage.addConversationsChangeListener() method not found");\r
+        assert_type(storage.addFoldersChangeListener, "function",\r
+            "Not read only - messageStorage.addFoldersChangeListener() method not found");\r
+        assert_type(storage.removeChangeListener, "function", "Not read only - messageStorage.removeChangeListener() method not found");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_name_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_name_attribute.html
new file mode 100755 (executable)
index 0000000..97db647
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_name_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_name_attribute\r
+//==== LABEL Check if attribute name of MessageService (email) exists, has appropriate type and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:name A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_own_property(service, "name", "No 'name' attribute in service");\r
+\r
+        assert_type(service.name, "string", "Incorrect type");\r
+        assert_not_equals(service.name, "", "Name is empty");\r
+\r
+        check_readonly(service, "name", service.name, "string", "newValue");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage.html
new file mode 100755 (executable)
index 0000000..3bb0b38
--- /dev/null
@@ -0,0 +1,167 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageService_email_sendMessage\r
+//==== LABEL Check if MessageService.sendMessage method works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MAST MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, loadedMessage, resend=0, requestSending, sendMessageReturnValue = null, service, inboxFolder,\r
+    serviceSuccess, serviceError, sendSuccess, sendError, syncSuccess, syncError,\r
+    folderSuccess, folderError, findSuccess, findError, bodySuccess, bodyError,\r
+    attachmentSuccess, attachmentError;\r
+\r
+t.step(function () {\r
+    attachmentSuccess = t.step_func(function (attachment) {\r
+        assert_type(attachment.id, "string", "attachment.id type is not string");\r
+        assert_not_equals(attachment.id, "", "attachment.id is an empty string");\r
+\r
+        assert_equals(attachment.messageId, loadedMessage.id, "attachment id and message id are not equal");\r
+\r
+        assert_equals(attachment.mimeType, MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE, "attachment MIME type is incorrect");\r
+\r
+        assert_type(attachment.filePath, "string", "attachment.filePath type is not string");\r
+        assert_not_equals(attachment.filePath, "", "attachment.filePath is an empty string");\r
+\r
+        t.done();\r
+    });\r
+\r
+    attachmentError = t.step_func(function (error) {\r
+        assert_unreached("failed to load attachment: name: " + error.name + " msg: " + error.message);\r
+    });\r
+\r
+    bodySuccess = t.step_func(function (bodyLoadedMessage) {\r
+        loadedMessage = bodyLoadedMessage;\r
+        assert_not_equals(loadedMessage, null, "message is null");\r
+        assert_not_equals(loadedMessage.body, null, "message body is null");\r
+        assert_equals(loadedMessage.body.plainBody.replace(/\s+$/g, ""), message.body.plainBody, "body does not match");\r
+        assert_equals(loadedMessage.hasAttachment, true, "hasAttachment is false");\r
+        assert_true(loadedMessage.attachments.length > 0, "no attachments found");\r
+\r
+        service.loadMessageAttachment(loadedMessage.attachments[0], attachmentSuccess, attachmentError);\r
+    });\r
+\r
+    bodyError = t.step_func(function (error) {\r
+        assert_unreached("failed to load message body: name: " + error.name + " msg: " + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+            service.loadMessageBody(messages[0], bodySuccess, bodyError);\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("failed to find message: name: " + error.name + " msg: " + error.message);\r
+    });\r
+\r
+    folderSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findSuccess, findError);\r
+    });\r
+\r
+    folderError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, folderSuccess, folderError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_equals(sendMessageReturnValue, undefined, "sendMessage() return value is not void");\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        if (resend <= EMAIL_RESEND_LIMIT) {\r
+            setTimeout(requestSending, 5000);\r
+        } else {\r
+            assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+        }\r
+    });\r
+\r
+    requestSending = t.step_func(function () {\r
+        resend++;\r
+        sendMessageReturnValue = service.sendMessage(message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        message.attachments = [\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)\r
+        ];\r
+\r
+        requestSending();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..ec96eca
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_errorCallback_TypeMismatch</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.sendMessage method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, message, sendSuccess,\r
+    invalidErrorCallback, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0 ; i < conversionTable.length ; i++) {\r
+            invalidErrorCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    service.sendMessage(message, sendSuccess, invalidErrorCallback);\r
+                },\r
+                exceptionName + " should be thrown - invalid error callback: " + invalidErrorCallback + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..d56d824
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_errorCallback_invalid_cb</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, message, sendSuccess, invalidErrorCallback,\r
+    exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+\r
+    invalidErrorCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                service.sendMessage(message, sendSuccess, invalidErrorCallback);\r
+            },\r
+            exceptionName + " should be thrown - invalid error callback."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_exist.html
new file mode 100755 (executable)
index 0000000..f3755f6
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_exist\r
+//==== LABEL Check if method sendMessage of MessageService (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("sendMessage" in service, "No sendMessage method in service");\r
+        check_method_exists(service, "sendMessage");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_message_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..3e89225
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_message_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_message_TypeMismatch\r
+//==== LABEL Check type conversions for message argument of MessageService.sendMessage method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, sendSuccess, sendError,\r
+    incorrectMessage, exceptionName, i, conversionTable;\r
+\r
+t.step(function () {\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("sendMessage() success callback invoked.");\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+\r
+        for (i = 0 ; i < conversionTable.length ; i++) {\r
+            incorrectMessage = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    service.sendMessage(incorrectMessage, sendSuccess, sendError);\r
+                },\r
+                exceptionName + " should be thrown - incorrectly created message: " + incorrectMessage + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_message_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..cc42a4b
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_message_invalid_obj</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_message_invalid_obj\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when message is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, sendSuccess, sendError,\r
+    fakeMessage, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked");\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+\r
+        fakeMessage = {\r
+            id: "1",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.email",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [ TEST_EMAIL_RECIPIENT_1 ],\r
+            cc: [],\r
+            bcc: [],\r
+            body: {\r
+                messageId: "1",\r
+                loaded: false,\r
+                plainBody: MESSAGE_BODY_PLAIN,\r
+                htmlBody: "",\r
+                inlineAttachments: []\r
+            },\r
+            isRead: false,\r
+            hasAttachment: false,\r
+            isHighPriority: false,\r
+            subject: "",\r
+            inResponseTo: null,\r
+            messageStatus: "",\r
+            attachments: []\r
+        };\r
+\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                service.sendMessage(fakeMessage, sendSuccess, sendError);\r
+            },\r
+            exceptionName + " should be thrown - incorrectly created message."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_missarg.html
new file mode 100755 (executable)
index 0000000..90bfdb1
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageService.sendMessage (email)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                service.sendMessage();\r
+            },\r
+            exceptionName + " should be thrown - missing message."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..8bae54a
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.sendMessage method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, message, sendError, invalidSuccessCallback,\r
+    exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0 ; i < conversionTable.length ; i++) {\r
+            invalidSuccessCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    service.sendMessage(message, invalidSuccessCallback, sendError);\r
+                },\r
+                exceptionName + " should be thrown - invalid success callback: " + invalidSuccessCallback + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..e69c085
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_successCallback_invalid_cb</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message,\r
+    sendError, invalidSuccessCallback, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+    invalidSuccessCallback = {\r
+        onsuccess: t.step_func(function (recipients) {\r
+            assert_unreached("Invalid success callback invoked");\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                service.sendMessage(message, invalidSuccessCallback, sendError);\r
+            },\r
+            exceptionName + " should be thrown - invalid success callback."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_without_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..9cf10ec
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_without_errorCallback\r
+//==== LABEL Check if MessageService.sendMessage method works properly without errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, returnedValue = null, serviceSuccess, sendSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_type(recipients, "array", "recipients type is not array");\r
+        assert_equals(recipients.length, 1, "recipients.length should be 1");\r
+        assert_equals(recipients[0], TEST_EMAIL_RECIPIENT_2, "recipient in sent message is not the same as recipient set during message creation");\r
+\r
+        assert_equals(returnedValue, undefined, "sendMessage() return value is not void");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        returnedValue = service.sendMessage(message, sendSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("failed to receive services: " + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_without_successCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sendMessage_without_successCallback.html
new file mode 100755 (executable)
index 0000000..5cf5623
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sendMessage_without_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sendMessage_without_successCallback\r
+//==== LABEL Check if MessageService.sendMessage method works properly without successCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, returnedValue = null, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        returnedValue = service.sendMessage(message);\r
+        assert_equals(returnedValue, undefined, "sendMessage() return value is not void");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("failed to receive services: " + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_exist.html
new file mode 100755 (executable)
index 0000000..c4997fd
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_stopSync_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_stopSync_exist\r
+//==== LABEL Check if method stopSync of MessageService (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:stopSync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("stopSync" in service, "No stopSync method in message_service");\r
+        check_method_exists(service, "stopSync");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_missarg.html
new file mode 100755 (executable)
index 0000000..90f58b3
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong <dong82.zhao@samsung.com>\r
+        Hyukin Kwon <hyukin.kwon@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_stopSync_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_stopSync_missarg\r
+//==== LABEL Check if MessageService::stopSync (for sync) method silently fails without argument\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:stopSync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        try {\r
+            service.stopSync();\r
+        } catch (e) {\r
+            assert_unreached("Should not throw any exception, but threw " + e.name);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_opId_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_stopSync_opId_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..6cef9fa
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_stopSync_opId_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_stopSync_opId_TypeMismatch\r
+//==== LABEL Check if MessageService::stopSync (for sync) method should throw an exception with invalid argument type\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:stopSync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 300000});\r
+\r
+var t = async_test(document.title, {timeout: 300000}),\r
+    opId, serviceSuccess, serviceError, exceptionName, conversionTable, i;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("long", false);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            opId = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                service.stopSync(opId);\r
+            }, exceptionName + " should be thrown - given incorrect opId.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_syncFolder_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_syncFolder_exist.html
new file mode 100755 (executable)
index 0000000..8c67bea
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_syncFolder_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_syncFolder_exist\r
+//==== LABEL Check if method syncFolder of MessageService (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("syncFolder" in service, "No syncFolder method in message_service");\r
+        check_method_exists(service, "syncFolder");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sync_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_sync_exist.html
new file mode 100755 (executable)
index 0000000..3bd1b4d
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_sync_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_sync_exist\r
+//==== LABEL Check if method sync of MessageService (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("sync" in service, "No sync method in message_service");\r
+        check_method_exists(service, "sync");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_type_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_email_type_attribute.html
new file mode 100755 (executable)
index 0000000..7211747
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_email_type_attribute</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_email_type_attribute\r
+//==== LABEL Check if attribute type of MessageService (email) exists, has type MessageServiceTag and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("type" in service, "No 'type' attribute in messaging_service");\r
+        assert_type(service.type, "string", "messaging_service.type is not string");\r
+        check_readonly(service, "type", "messaging.email", "string", "messaging.sms");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_id_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_id_exist.html
new file mode 100755 (executable)
index 0000000..1654aa0
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_id_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_id_exist\r
+//==== LABEL Check if attribute id in MessageService\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        assert_true("id" in services[0], "Messaging.MessageService.id property exists");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_loadBodySMS.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_loadBodySMS.html
new file mode 100755 (executable)
index 0000000..a3aa292
--- /dev/null
@@ -0,0 +1,98 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_loadBodySMS</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_loadBodySMS\r
+//==== LABEL Check if MessageService.loadMessageBody method works for sms\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, messageStorage, message, datetime,\r
+    sendSuccess, sendError, loadBodySuccess, loadBodyError, returnedValue;\r
+\r
+t.step(function () {\r
+    loadBodySuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    loadBodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        returnedValue = service.loadMessageBody(message, loadBodySuccess, loadBodyError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+        datetime = tizen.time.getCurrentDateTime().toString();\r
+        message = new tizen.Message("messaging.sms", {\r
+            plainBody: datetime,\r
+            to: [ TEST_SMS_RECIPIENT ]\r
+        });\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_extend.html
new file mode 100755 (executable)
index 0000000..4a9e66b
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageService (MMS) can be extended with new property\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:MessageService U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        check_extensibility(messageService);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageAttachment_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageAttachment_exist.html
new file mode 100755 (executable)
index 0000000..a4b0b58
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_loadMessageAttachment_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_loadMessageAttachment_exist\r
+//==== LABEL Check if method loadMessageAttachment of MessageService (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageAttachment M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_true("loadMessageAttachment" in service, "No loadMessageAttachment method in service");\r
+        check_method_exists(service, "loadMessageAttachment");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageBody_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageBody_exist.html
new file mode 100755 (executable)
index 0000000..fd0a483
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_loadMessageBody_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_loadMessageBody_exist\r
+//==== LABEL Check if method loadMessageBody of MessageService (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_true("loadMessageBody" in service, "No loadMessageBody method in service");\r
+        check_method_exists(service, "loadMessageBody");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageBody_missarg_message.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_loadMessageBody_missarg_message.html
new file mode 100755 (executable)
index 0000000..e94d49e
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_loadMessageBody_missarg_message</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_loadMessageBody_missarg_message\r
+//==== LABEL Check with missing message argument - MessageService.loadMessageBody (mms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.loadMessageBody();\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_messageStorage_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_messageStorage_attribute.html
new file mode 100755 (executable)
index 0000000..32bea6a
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_messageStorage_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_messageStorage_attribute\r
+//==== LABEL Check if attribute messageStorage of MessageService (MMS) exists, has type MessageStorage and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:messageStorage A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, storage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        assert_true("messageStorage" in messagingService, "No 'messageStorage' attribute in messagingService");\r
+\r
+        messagingService.messageStorage = null;\r
+        assert_not_equals(messagingService.messageStorage, null, "messageStorage shouldn't be nullable");\r
+\r
+        storage = messagingService.messageStorage;\r
+        assert_type(storage.addDraftMessage, "function", "messageStorage.addDraftMessage() method not found");\r
+        assert_type(storage.findMessages, "function", "messageStorage.findMessages() method not found");\r
+        assert_type(storage.removeMessages, "function", "messageStorage.removeMessages() method not found");\r
+        assert_type(storage.updateMessages, "function", "messageStorage.updateMessages() method not found");\r
+        assert_type(storage.findConversations, "function", "messageStorage.findConversations() method not found");\r
+        assert_type(storage.removeConversations, "function", "messageStorage.removeConversations() method not found");\r
+        assert_type(storage.findFolders, "function", "messageStorage.findFolders() method not found");\r
+        assert_type(storage.addMessagesChangeListener, "function", "messageStorage.addMessagesChangeListener() method not found");\r
+        assert_type(storage.addConversationsChangeListener, "function",\r
+            "messageStorage.addConversationsChangeListener() method not found");\r
+        assert_type(storage.addFoldersChangeListener, "function", "messageStorage.addFoldersChangeListener() method not found");\r
+        assert_type(storage.removeChangeListener, "function", "messageStorage.removeChangeListener() method not found");\r
+\r
+        messagingService.nessageStorage = {};\r
+        assert_type(storage.addDraftMessage, "function", "Not read only - messageStorage.addDraftMessage() method not found");\r
+        assert_type(storage.findMessages, "function", "Not read only - messageStorage.findMessages() method not found");\r
+        assert_type(storage.removeMessages, "function", "Not read only - messageStorage.removeMessages() method not found");\r
+        assert_type(storage.updateMessages, "function", "Not read only - messageStorage.updateMessages() method not found");\r
+        assert_type(storage.findConversations, "function", "Not read only - messageStorage.findConversations() method not found");\r
+        assert_type(storage.removeConversations, "function", "Not read only - messageStorage.removeConversations() method not found");\r
+        assert_type(storage.findFolders, "function", "Not read only - messageStorage.findFolders() method not found");\r
+        assert_type(storage.addMessagesChangeListener, "function",\r
+            "Not read only - messageStorage.addMessagesChangeListener() method not found");\r
+        assert_type(storage.addConversationsChangeListener, "function",\r
+            "Not read only - messageStorage.addConversationsChangeListener() method not found");\r
+        assert_type(storage.addFoldersChangeListener, "function",\r
+            "Not read only - messageStorage.addFoldersChangeListener() method not found");\r
+        assert_type(storage.removeChangeListener, "function", "Not read only - messageStorage.removeChangeListener() method not found");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..44b3e91
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.sendMessage method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendSuccess, invalidErrorCallback, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_unreached("Success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms");\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0 ; i < conversionTable.length ; i++) {\r
+            invalidErrorCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    messagingService.sendMessage(message, sendSuccess, invalidErrorCallback);\r
+                },\r
+                exceptionName + " should be thrown - invalid error callback: " + invalidErrorCallback + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..02b0788
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when errorCallback is invalid\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendSuccess, invalidErrorCallback, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    invalidErrorCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms");\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage(message, sendSuccess, invalidErrorCallback);\r
+            },\r
+            exceptionName + " should be thrown - invalid error callback."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_exist.html
new file mode 100755 (executable)
index 0000000..0f27542
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_exist\r
+//==== LABEL Check if method sendMessage of MessageService (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_true("sendMessage" in service, "No sendMessage method in service");\r
+        check_method_exists(service, "sendMessage");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_message_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..58988e3
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_message_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_message_TypeMismatch\r
+//==== LABEL Check type conversions for message argument of MessageService.sendMessage method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, sendSuccess,\r
+    sendError, incorrectMessage, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked");\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+        for (i = 0 ; i < conversionTable.length ; i++) {\r
+            incorrectMessage = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    messagingService.sendMessage(incorrectMessage, sendSuccess, sendError);\r
+                },\r
+                exceptionName + " should be thrown - incorrectly created message: " + incorrectMessage + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_message_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..78b9515
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_message_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_message_invalid_obj\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when message is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, sendSuccess,\r
+    sendError, fakeMessage, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked");\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        fakeMessage = {\r
+            id: "1",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.mms",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [ TEST_SMS_RECIPIENT ],\r
+            body: {\r
+                messageId: "1",\r
+                loaded: true,\r
+                plainBody: "Sample content"\r
+            },\r
+            isRead: false,\r
+            hasAttachment: false,\r
+            subject: "",\r
+            inResponseTo: null,\r
+            messageStatus: "",\r
+            attachments: []\r
+        };\r
+\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage(fakeMessage, sendSuccess, sendError);\r
+            },\r
+            exceptionName + " should be thrown - incorrectly created message."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_missarg.html
new file mode 100755 (executable)
index 0000000..b263439
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageService.sendMessage (mms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage();\r
+            },\r
+            exceptionName + " should be thrown - missing message."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..b762d20
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.sendMessage method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendError, invalidSuccessCallback, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms");\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0 ; i < conversionTable.length ; i++) {\r
+            invalidSuccessCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    messagingService.sendMessage(message, invalidSuccessCallback, sendError);\r
+                },\r
+                exceptionName + " should be thrown - invalid success callback: " + invalidSuccessCallback + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_sendMessage_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..4f37885
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_sendMessage_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_sendMessage_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when successCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendError, invalidSuccessCallback, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    invalidSuccessCallback = {\r
+        onsuccess: t.step_func(function (recipients) {\r
+            assert_unreached("Invalid success callback invoked");\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms");\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage(message, invalidSuccessCallback, sendError);\r
+            },\r
+            exceptionName + " should be thrown - invalid success callback."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_type_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_mms_type_attribute.html
new file mode 100755 (executable)
index 0000000..bf46ef8
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_mms_type_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_mms_type_attribute\r
+//==== LABEL Check if attribute type of MessageService (MMS) exists, has type MessageServiceTag and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_true("type" in service, "No 'type' attribute in service");\r
+        assert_type(service.type, "string", "service.type is not string");\r
+        check_readonly(service, "type", "messaging.mms", "string", "messaging.email");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_name_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_name_exist.html
new file mode 100755 (executable)
index 0000000..b401b1c
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_name_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_name_exist\r
+//==== LABEL Check if name attribute exists in MessageService\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:name A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceError, serviceSuccess;\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        assert_true("name" in services[0], "Messaging.MessageService.name property exists");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_notexist.html
new file mode 100755 (executable)
index 0000000..60f8010
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageService exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:MessageService U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA NIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageService");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_emailWithBcc.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_emailWithBcc.html
new file mode 100755 (executable)
index 0000000..bd4ed30
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sendMessage_emailWithBcc</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sendMessage_emailWithBcc\r
+//==== LABEL Check if MessageService.sendMessage method works properly with bcc (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, messageSent, messageFailed, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    messageSent = t.step_func(function (recipients) {\r
+        assert_greater_than(recipients.length, 0, "Received empty recipients array");\r
+        t.done();\r
+    });\r
+\r
+    messageFailed = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.bcc = [TEST_EMAIL_RECIPIENT_1];\r
+        sendMessage(t, service, message, messageSent, messageFailed);\r
+    });\r
+\r
+    serviceError = t.step_func(function (err) {\r
+        assert_unreached("getEmailService() error: " + err.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_emailWithPriority.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_emailWithPriority.html
new file mode 100755 (executable)
index 0000000..f17ad56
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sendMessage_emailWithPriority</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sendMessage_emailWithPriority\r
+//==== LABEL Check if MessageService.sendMessage method works properly with highPriority (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+message, serviceSuccess, serviceError, sendSuccess, sendError;\r
+\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_true(recipients.length > 0, "No message sent successfully");\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.isHighPriority = true;\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (err) {\r
+        assert_unreached("getMessageServices() error: " + err.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_email_without_callbacks.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_email_without_callbacks.html
new file mode 100755 (executable)
index 0000000..c2ad832
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sendMessage_email_without_callbacks</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageService_sendMessage_email_without_callbacks\r
+//==== LABEL Check if MessageService.sendMessage method works properly without callbacks (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, returnedValue = null;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        returnedValue = service.sendMessage(message);\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from sendMessage");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (err) {\r
+        assert_unreached("getMessageServices() error: " + err.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_exist.html
new file mode 100755 (executable)
index 0000000..6a43492
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sendMessage_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sendMessage_exist\r
+//==== LABEL Check if sendMessage exist in MessageService\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceError, serviceSuccess;\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        assert_true("sendMessage" in services[0], "sendMessage does not exist.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_invalid_argument.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_invalid_argument.html
new file mode 100755 (executable)
index 0000000..d26feef
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageService_sendMessage_invalid_argument</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sendMessage_invalid_argument\r
+//==== LABEL Check whether invoking sendMessage method with improper argument throws exception properly\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, serviceError, serviceSuccess, sendError, sendSuccess;\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_unreached("sendMessage() success callback invoked");\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0]; // save service\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.sendMessage("messaging.email", sendSuccess, sendError);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_mms_without_callbacks.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_mms_without_callbacks.html
new file mode 100755 (executable)
index 0000000..42eab81
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sendMessage_mms_without_callbacks</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageService_sendMessage_mms_without_callbacks\r
+//==== LABEL Check if MessageService.sendMessage method works properly without callbacks (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), onSuccess, message;\r
+t.step(function () {\r
+\r
+    message = new tizen.Message("messaging.mms", {\r
+        plainBody: "I will arrive in 10 minutes.",\r
+        to: [TEST_SMS_RECIPIENT]\r
+    });\r
+\r
+    onSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "type of services is not Array");\r
+        assert_true(services.length > 0, "No messaging.mms service");\r
+        services[0].sendMessage(message);\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", onSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_valid_argument.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sendMessage_valid_argument.html
new file mode 100755 (executable)
index 0000000..89bb069
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageService_sendMessage_valid_argument</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sendMessage_valid_argument\r
+//==== LABEL Check if MessageService.sendMessage method works properly with valid argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, smsMessage, serviceError, serviceSuccess, sendError, sendSuccess;\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        smsMessage = new tizen.Message("messaging.sms", {\r
+            plainBody: "Sms Message Test",\r
+            to: [TEST_SMS_RECIPIENT]\r
+        });\r
+        sendMessage(t, service, smsMessage, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_extend.html
new file mode 100755 (executable)
index 0000000..b0e66c2
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_extend</title>\r
+<script src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageService (SMS) can be extended with new property\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:MessageService U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        check_extensibility(messageService);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_exist.html
new file mode 100755 (executable)
index 0000000..21a59ba
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_loadMessageBody_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_loadMessageBody_exist\r
+//==== LABEL Check if method loadMessageBody of MessageService (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        assert_true("loadMessageBody" in messageService, "No loadMessageBody method in messageService");\r
+        check_method_exists(messageService, "loadMessageBody");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..36627e4
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_loadMessageBody_message_TypeMismatch</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_loadMessageBody_message_TypeMismatch\r
+//==== LABEL Check type conversions for message argument of MessageService.loadMessageBody method (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, i, param, conversionTable, loadBodySuccess,\r
+    serviceSuccess, serviceError, exceptionName;\r
+\r
+t.step(function () {\r
+\r
+    loadBodySuccess = t.step_func(function () {\r
+        assert_unreached("loadMessageBody() success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            param = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageService.loadMessageBody(param, loadBodySuccess);\r
+            }, exceptionName + " should be thrown " + param);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..a7088a3
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_loadMessageBody_message_invalid_obj</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_loadMessageBody_message_invalid_obj\r
+//==== LABEL Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, message, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        message = {\r
+            id: "1",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.sms",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [ TEST_SMS_RECIPIENT ],\r
+            body: {\r
+                messageId: "1",\r
+                loaded: true,\r
+                plainBody: "Sample content"\r
+            },\r
+            isRead: false,\r
+            inResponseTo: null,\r
+            messageStatus: ""\r
+        };\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            messageService.loadMessageBody(message);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_missarg_message.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_loadMessageBody_missarg_message.html
new file mode 100755 (executable)
index 0000000..6e7a5ee
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_loadMessageBody_missarg_message</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_loadMessageBody_missarg_message\r
+//==== LABEL Check with missing non-optional argument - MessageService.loadMessageBody (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            messageService.loadMessageBody();\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_messageStorage_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_messageStorage_attribute.html
new file mode 100755 (executable)
index 0000000..426f1fc
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_messageStorage_attribute</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_messageStorage_attribute\r
+//==== LABEL Check if attribute messageStorage of MessageService (SMS) exists, has type MessageStorage and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:messageStorage A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, storage, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        assert_true("messageStorage" in messagingService, "No 'messageStorage' attribute in messagingService");\r
+\r
+        messagingService.messageStorage = null;\r
+        assert_not_equals(messagingService.messageStorage, null, "messageStorage shouldn't be nullable");\r
+\r
+        storage = messagingService.messageStorage;\r
+        assert_type(storage.addDraftMessage, "function", "messageStorage.addDraftMessage() method not found");\r
+        assert_type(storage.findMessages, "function", "messageStorage.findMessages() method not found");\r
+        assert_type(storage.removeMessages, "function", "messageStorage.removeMessages() method not found");\r
+        assert_type(storage.updateMessages, "function", "messageStorage.updateMessages() method not found");\r
+        assert_type(storage.findConversations, "function", "messageStorage.findConversations() method not found");\r
+        assert_type(storage.removeConversations, "function", "messageStorage.removeConversations() method not found");\r
+        assert_type(storage.findFolders, "function", "messageStorage.findFolders() method not found");\r
+        assert_type(storage.addMessagesChangeListener, "function", "messageStorage.addMessagesChangeListener() method not found");\r
+        assert_type(storage.addConversationsChangeListener, "function",\r
+            "messageStorage.addConversationsChangeListener() method not found");\r
+        assert_type(storage.addFoldersChangeListener, "function", "messageStorage.addFoldersChangeListener() method not found");\r
+        assert_type(storage.removeChangeListener, "function", "messageStorage.removeChangeListener() method not found");\r
+\r
+        messagingService.nessageStorage = {};\r
+        assert_type(storage.addDraftMessage, "function", "Not read only - messageStorage.addDraftMessage() method not found");\r
+        assert_type(storage.findMessages, "function", "Not read only - messageStorage.findMessages() method not found");\r
+        assert_type(storage.removeMessages, "function", "Not read only - messageStorage.removeMessages() method not found");\r
+        assert_type(storage.updateMessages, "function", "Not read only - messageStorage.updateMessages() method not found");\r
+        assert_type(storage.findConversations, "function", "Not read only - messageStorage.findConversations() method not found");\r
+        assert_type(storage.removeConversations, "function", "Not read only - messageStorage.removeConversations() method not found");\r
+        assert_type(storage.findFolders, "function", "Not read only - messageStorage.findFolders() method not found");\r
+        assert_type(storage.addMessagesChangeListener, "function",\r
+            "Not read only - messageStorage.addMessagesChangeListener() method not found");\r
+        assert_type(storage.addConversationsChangeListener, "function",\r
+            "Not read only - messageStorage.addConversationsChangeListener() method not found");\r
+        assert_type(storage.addFoldersChangeListener, "function",\r
+            "Not read only - messageStorage.addFoldersChangeListener() method not found");\r
+        assert_type(storage.removeChangeListener, "function", "Not read only - messageStorage.removeChangeListener() method not found");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage.html
new file mode 100755 (executable)
index 0000000..5a24099
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sms_sendMessage\r
+//==== LABEL Check if MessageService.sendMessage method works properly (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, datetime, messageStorage, sendSuccess, sendError,\r
+    service, serviceSuccess, serviceError, count;\r
+\r
+t.step(function () {\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_type(recipients, "array", "recipients type is not array");\r
+        assert_equals(recipients.length, 1, "recipients.length should be 1");\r
+        assert_equals(recipients[0], TEST_SMS_RECIPIENT, "recipient in sent message is not the same as recipient set during message creation");\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+        datetime = tizen.time.getCurrentDateTime().toString();\r
+        message = new tizen.Message("messaging.sms", {\r
+            plainBody: datetime,\r
+            to: [ TEST_SMS_RECIPIENT ]\r
+        });\r
+\r
+        count = tizen.systeminfo.getCount("SIM");\r
+        sendMessage(t, service, message, sendSuccess, sendError, count);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..18c26a5
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendSuccess, invalidErrorCallback, exceptionName, i, conversionTable;\r
+\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms");\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            invalidErrorCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    messagingService.sendMessage(message, sendSuccess, invalidErrorCallback);\r
+                },\r
+                exceptionName + " should be thrown - invalid error callback: " + invalidErrorCallback + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..cc86176
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_errorCallback_invalid_cb</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendSuccess, invalidErrorCallback, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+\r
+    invalidErrorCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms");\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage(message, sendSuccess, invalidErrorCallback);\r
+            },\r
+            exceptionName + " should be thrown - invalid error callback."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_exist.html
new file mode 100755 (executable)
index 0000000..d142cbb
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_exist</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_exist\r
+//==== LABEL Check if method sendMessage of MessageService (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        assert_true("sendMessage" in messageService, "No sendMessage method in messageService");\r
+        check_method_exists(messageService, "sendMessage");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..608f1a7
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_message_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_message_TypeMismatch\r
+//==== LABEL Check type conversions for message argument of MessageService.sendMessage method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, sendSuccess,\r
+    sendError, incorrectMessage, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked");\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectMessage = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    messagingService.sendMessage(incorrectMessage, sendSuccess, sendError);\r
+                },\r
+                exceptionName + " should be thrown - incorrectly created message: " + incorrectMessage + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..be57dc1
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_message_invalid_obj</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_message_invalid_obj\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when message is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, sendSuccess,\r
+    sendError, fakeMessage, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        assert_unreached("Success callback invoked");\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        fakeMessage = {\r
+            id: "1",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.sms",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [ TEST_SMS_RECIPIENT ],\r
+            body: {\r
+                messageId: "1",\r
+                loaded: true,\r
+                plainBody: "Sample content"\r
+            },\r
+            isRead: false,\r
+            inResponseTo: null,\r
+            messageStatus: ""\r
+        };\r
+\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage(fakeMessage, sendSuccess, sendError);\r
+            },\r
+            exceptionName + " should be thrown - incorrectly created message."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_missarg.html
new file mode 100755 (executable)
index 0000000..79e347c
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageService.sendMessage (sms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage();\r
+            },\r
+            exceptionName + " should be thrown - missing message."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..aba9a66
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_successCallback_TypeMismatch</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.sendMessage method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendError, invalidSuccessCallback, exceptionName, i, conversionTable;\r
+\r
+t.step(function () {\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms");\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            invalidSuccessCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                { name: exceptionName },\r
+                function () {\r
+                    messagingService.sendMessage(message, invalidSuccessCallback, sendError);\r
+                },\r
+                exceptionName + " should be thrown - invalid success callback: " + invalidSuccessCallback + "."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..904b72c
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_successCallback_invalid_cb</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,\r
+    sendError, invalidSuccessCallback, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+\r
+    invalidSuccessCallback = {\r
+        onsuccess: t.step_func(function (recipients) {\r
+            assert_unreached("Invalid success callback invoked");\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messagingService = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms");\r
+        assert_throws(\r
+            { name: exceptionName },\r
+            function () {\r
+                messagingService.sendMessage(message, invalidSuccessCallback, sendError);\r
+            },\r
+            exceptionName + " should be thrown - invalid success callback."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_without_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_sendMessage_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..62e2cbd
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_sendMessage_without_errorCallback</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_sendMessage_without_errorCallback\r
+//==== LABEL Check if MessageService.sendMessage method works properly without errorCallback argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, datetime,\r
+    sendSuccess, returnedValue = null, messageSent = false, resendMessage,\r
+    service, serviceListSuccess, serviceListError;\r
+\r
+t.step(function () {\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        messageSent = true;\r
+\r
+        assert_type(recipients, "array", "recipients type is not array");\r
+        assert_equals(recipients.length, 1, "recipients.length should be 1");\r
+        assert_greater_than_equal(recipients[0].indexOf(TEST_SMS_RECIPIENT), 0, "recipient in sent message is not the same as" +\r
+            "recipient set during message creation");\r
+\r
+        assert_equals(returnedValue, undefined, "sendMessage() return value is not void");\r
+\r
+        t.done();\r
+    });\r
+\r
+\r
+    resendMessage = t.step_func(function () {\r
+        returnedValue = service.sendMessage(message, sendSuccess);\r
+\r
+        setTimeout(t.step_func(function () {\r
+            if (messageSent === false) {\r
+                resendMessage();\r
+            }\r
+        }), 10000);\r
+    });\r
+\r
+    serviceListSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "No sms MessageService found.");\r
+        service = services[0];\r
+\r
+        datetime = tizen.time.getCurrentDateTime().toString();\r
+        message = new tizen.Message("messaging.sms", {\r
+            plainBody: datetime,\r
+            to: [ TEST_SMS_RECIPIENT ]\r
+        });\r
+\r
+        resendMessage();\r
+    });\r
+\r
+    serviceListError = t.step_func(function (error) {\r
+        assert_unreached("failed to receive services: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceListSuccess, serviceListError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_type_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sms_type_attribute.html
new file mode 100755 (executable)
index 0000000..23204dc
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sms_type_attribute</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageService_sms_type_attribute\r
+//==== LABEL Check if attribute type of MessageService (SMS) exists, has type MessageServiceTag and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        assert_true("type" in messageService, "No 'type' attribute in messageService");\r
+        assert_type(messageService.type, "string", "messageService.type is not string");\r
+        check_readonly(messageService, "type", "messaging.sms", "string", "messaging.email");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name: " + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_stopSync_sync.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_stopSync_sync.html
new file mode 100755 (executable)
index 0000000..5414cd2
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_stopSync_sync</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_stopSync_sync\r
+//==== LABEL Check if MessageService.stopSync (for sync) method works properly\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:stopSync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), returnedValue = null,\r
+    serviceError, serviceSuccess, service, message, sendError, sendSuccess, syncId;\r
+\r
+t.step(function () {\r
+    sendSuccess = t.step_func(function () {\r
+        setTimeout(t.step_func(function () {\r
+            syncId = service.sync();\r
+            returnedValue = service.stopSync(syncId);\r
+            assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+            t.done();\r
+        }), EMAIL_SYNC_INTERVAL);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_stopSync_syncFolder.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_stopSync_syncFolder.html
new file mode 100755 (executable)
index 0000000..eff029a
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_stopSync_syncFolder</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_stopSync_syncFolder\r
+//==== LABEL Check if MessageService.stopSync (for syncFolder) method works properly\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:stopSync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, filterForServiceId, findFoldersError, findFoldersSuccess,\r
+    inboxFolder, message, sendError, sendSuccess, syncId, returnedValue = null;\r
+\r
+t.step(function () {\r
+    sendSuccess = t.step_func(function () {\r
+        setTimeout(t.step_func(function () {\r
+            syncId = service.syncFolder(inboxFolder);\r
+            returnedValue = service.stopSync(syncId);\r
+            assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+            t.done();\r
+        }), EMAIL_SYNC_INTERVAL);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+        inboxFolder = getInboxFolder(t, folders);\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        filterForServiceId = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        service.messageStorage.findFolders(filterForServiceId, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync.html
new file mode 100755 (executable)
index 0000000..a49cef1
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync\r
+//==== LABEL Check if MessageService.sync method works properly\r
+//==== PRIORITY: P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, returnedValue = null;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        returnedValue = service.sync();\r
+        assert_type(returnedValue, "long", "type check");\r
+        service.stopSync(returnedValue);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder.html
new file mode 100755 (executable)
index 0000000..497a02f
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder\r
+//==== LABEL Check if MessageService.syncFolder method works properly\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MMINA\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service,\r
+    returnedValue = null, findSuccess, findError;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+\r
+        returnedValue = service.syncFolder(folders[0]);\r
+\r
+        assert_type(returnedValue, "long", "Incorrect returned value");\r
+\r
+        service.stopSync(returnedValue);\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+        findFolders(t, service, findSuccess, findError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..dc3e547
--- /dev/null
@@ -0,0 +1,87 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_errorCallback_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.syncFolder method\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, findSuccess, findError,\r
+    exceptionName, conversionTable, i, successCallback, errorCallback;\r
+\r
+t.step(function () {\r
+\r
+    successCallback = t.step_func(function () {\r
+        assert_unreached("syncFolder() success callback invoked.");\r
+    });\r
+\r
+    findSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "No folder found.");\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            errorCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName}, function () {\r
+                service.syncFolder(folders[0], successCallback, errorCallback);\r
+            }, exceptionName + " should be thrown - given incorrect errorCallback.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+        findFolders(t, service, findSuccess, findError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..42f36c9
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_errorCallback_invalid_cb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.syncFolder method throws exception when errorCallback is invalid\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, findError, findSuccess,\r
+    syncFolderSuccess, invalidErrorCallback;\r
+t.step(function () {\r
+\r
+    invalidErrorCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    syncFolderSuccess = t.step_func(function () {\r
+        assert_unreached("syncFolder() success callback invoked.");\r
+    });\r
+\r
+    findSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+\r
+        assert_throws ({name: TYPE_MISMATCH_ERR}, function () {\r
+            service.syncFolder(folders[0], syncFolderSuccess, invalidErrorCallback);\r
+        }, "TypeMismatchError should be thrown - given incorrect errorCallback.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+        findFolders(t, service, findSuccess, findError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_folder_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_folder_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..fb45931
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_folder_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_folder_TypeMismatch\r
+//==== LABEL Check type conversions for folder argument of MessageService.syncFolder method\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), folder,\r
+    serviceSuccess, serviceError, exceptionName, conversionTable, i;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            folder = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName}, function () {\r
+                service.syncFolder(folder);\r
+            }, exceptionName + " should be thrown - given incorrect folder.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_missarg.html
new file mode 100755 (executable)
index 0000000..666045f
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_missarg</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageService.syncFolder\r
+//==== PRIORITY P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.syncFolder();\r
+        }, "Method should throw an exception");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..d7b8a52
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_successCallback_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.syncFolder method\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, findSuccess, findError,\r
+    exceptionName, conversionTable, i, successCallback;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (folders) {\r
+        assert_true(folders.length > 0, "No folder found.");\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            successCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName}, function () {\r
+                service.syncFolder(folders[0], successCallback);\r
+            }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+        findFolders(t, service, findSuccess, findError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..1f08fcf
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_successCallback_invalid_cb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.syncFolder method throws exception when successCallback is invalid\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, findError, findSuccess, invalidSuccessCallback;\r
+t.step(function () {\r
+    invalidSuccessCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("Invalid success callback invoked");\r
+        })\r
+    };\r
+\r
+    findSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.syncFolder(folders[0], invalidSuccessCallback);\r
+        },  "TypeMismatchError should be thrown - given incorrect successCallback.");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+        findFolders(t, service, findSuccess, findError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..8487cce
--- /dev/null
@@ -0,0 +1,108 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_with_errorCallback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_with_errorCallback\r
+//==== LABEL Check if MessageService.syncFolder method works properly with errorCallback argument\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, findFoldersError, findFoldersSuccess,\r
+    inboxFolder, message, sendError, sendSuccess, syncId = null,\r
+    syncFolderSuccess, syncFolderError, findMessageError, findMessageSuccess;\r
+\r
+t.step(function () {\r
+\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncFolderSuccess = t.step_func(function () {\r
+        assert_type(syncId, "long", "Incorrect returned value");\r
+        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+\r
+    syncFolderError = t.step_func(function (error) {\r
+        assert_unreached("syncFolder() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        syncId = service.syncFolder(inboxFolder, syncFolderSuccess, syncFolderError);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        setTimeout(t.step_func(function () {\r
+            findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+        }), EMAIL_SYNC_INTERVAL);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_limit.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_limit.html
new file mode 100755 (executable)
index 0000000..81fc0c0
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_with_limit</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_with_limit\r
+//==== LABEL Check if MessageService.syncFolder method works properly with limit\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, findFoldersSuccess, findFoldersError,\r
+    inboxFolder, syncId = null, syncFolderSuccess, syncFolderError;\r
+\r
+t.step(function () {\r
+    syncFolderSuccess = t.step_func(function () {\r
+        assert_type(syncId, "long", "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    syncFolderError = t.step_func(function (error) {\r
+        assert_unreached("syncFolder() error: " + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+\r
+        inboxFolder = getInboxFolder(t, folders);\r
+\r
+        syncId = service.syncFolder(inboxFolder, syncFolderSuccess, syncFolderError, 10);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_successCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_syncFolder_with_successCallback.html
new file mode 100755 (executable)
index 0000000..e3f0f81
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_syncFolder_with_successCallback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_syncFolder_with_successCallback\r
+//==== LABEL Check if syncFolder method with successCallback optional argument works\r
+//==== PRIORITY: P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:syncFolder M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, findFoldersError, findFoldersSuccess,\r
+    inboxFolder, message, sendError, sendSuccess, syncId = null, syncFolderSuccess,\r
+    findMessageError, findMessageSuccess;\r
+\r
+t.step(function () {\r
+\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncFolderSuccess = t.step_func(function () {\r
+        assert_type(syncId, "long", "Incorrect returned value");\r
+        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        syncId = service.syncFolder(inboxFolder, syncFolderSuccess);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        setTimeout(t.step_func(function () {\r
+            findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+        }), EMAIL_SYNC_INTERVAL);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_emailwithoutparam.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_emailwithoutparam.html
new file mode 100755 (executable)
index 0000000..a588ab3
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_emailwithoutparam</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_emailwithoutparam\r
+//==== LABEL Check if MessageService.sync method works properly without param\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, syncSuccess, syncError;\r
+\r
+t.step(function () {\r
+    syncSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..21b24aa
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_errorCallback_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.sync method\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, syncSuccess, errorCallback, exceptionName, conversionTable, i;\r
+t.step(function () {\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        assert_unreached("sync() success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            errorCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName}, function () {\r
+                service.sync(syncSuccess, errorCallback);\r
+            }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..43941eb
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_errorCallback_invalid_cb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sync method throws exception when errorCallback is invalid\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceError,\r
+    successCallback, invalidErrorCallback, serviceSuccess, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+\r
+    invalidErrorCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("Invalid error callback invoked, name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    successCallback = t.step_func(function () {\r
+        assert_unreached("sync() success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                service.sync(successCallback, invalidErrorCallback);\r
+            }, exceptionName + " should be thrown - given incorrect errorCallback.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_foremail.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_foremail.html
new file mode 100755 (executable)
index 0000000..2426d7f
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageService_sync_foremail</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageService_sync_foremail\r
+//==== LABEL Check if MessageService.sync method works properly without arguments\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, syncId;\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        syncId = service.sync();\r
+        service.stopSync(syncId);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..b6fb02c
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_successCallback_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.sync method\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    successCallback, serviceSuccess, serviceError, exceptionName, conversionTable, i;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            successCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName}, function () {\r
+                service.sync(successCallback);\r
+            }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..a653434
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_successCallback_invalid_cb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.sync method throws exception when successCallback is invalid\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    successCallback, serviceSuccess, serviceError, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+    successCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("Incorrect successCallback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws({name: exceptionName}, function () {\r
+            service.sync(successCallback);\r
+        }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..1cc70a8
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_with_errorCallback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_with_errorCallback\r
+//==== LABEL Check if MessageService.sync method works properly with errorCallback argument\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    returnedValue = null, serviceError, serviceSuccess, service, message, sendError, sendSuccess,\r
+    syncRequest, syncRetryCount=0, syncError, syncSuccess, inboxFolder,\r
+    findFoldersSuccess, findFoldersError, findMessageSuccess, findMessageError;\r
+\r
+t.step(function () {\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        assert_type(returnedValue, "long", "Incorrect returned value");\r
+\r
+        findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        if (syncRetryCount <= EMAIL_RESYNC_LIMIT) {\r
+            setTimeout(syncRequest, 5000);\r
+        } else {\r
+            assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+        }\r
+    });\r
+\r
+    syncRequest = t.step_func(function () {\r
+        syncRetryCount++;\r
+        returnedValue = service.sync(syncSuccess, syncError);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        setTimeout(t.step_func(function () {\r
+            syncRequest();\r
+        }), EMAIL_SYNC_INTERVAL);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_limit.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_limit.html
new file mode 100755 (executable)
index 0000000..d57655d
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_with_limit</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_with_limit\r
+//==== LABEL Check if MessageService.sync method works properly with limit argument\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, syncSuccess, syncError;\r
+\r
+t.step(function () {\r
+    syncSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        sync(t, service, syncSuccess, syncError, 10);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_successCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_sync_with_successCallback.html
new file mode 100755 (executable)
index 0000000..12029bc
--- /dev/null
@@ -0,0 +1,105 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_sync_with_successCallback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_sync_with_successCallback\r
+//==== LABEL Check if MessageService.sync method works properly with successCallback argument\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageService:sync M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, returnedValue = null,\r
+    sendSuccess, sendError, syncSuccess, findFoldersSuccess, findFoldersError,\r
+    findMessageSuccess, findMessageError, inboxFolder;\r
+\r
+t.step(function () {\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_equals(messages.length, 1, "Found incorrect number of messages");\r
+            assert_equals(messages[0].subject, message.subject, "Incorrect subject.");\r
+            assert_equals(messages[0].folderId, inboxFolder.id, "Incorrect folderId.");\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        assert_type(returnedValue, "long", "Incorrect returned value");\r
+\r
+        findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        setTimeout(t.step_func(function () {\r
+            returnedValue = service.sync(syncSuccess);\r
+        }), EMAIL_SYNC_INTERVAL);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_type_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageService_type_exist.html
new file mode 100755 (executable)
index 0000000..9fa9609
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageService_type_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageService_type_exist\r
+//==== LABEL Check if attribute type in MessageService\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageService:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        assert_true("type" in services[0], "type in MessageService is not present");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addCCLAddMRemoveCRemoveCCL.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addCCLAddMRemoveCRemoveCCL.html
new file mode 100755 (executable)
index 0000000..1ac40c3
--- /dev/null
@@ -0,0 +1,133 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addCCLAddMRemoveCRemoveCCL</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addCCLAddMRemoveCRemoveCCL\r
+//==== LABEL Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), listener,\r
+    serviceError, serviceSuccess, service, listenerId, msg, addError, addSuccess,\r
+    filterForId, findConversationError, findConversationSuccess, removeConversationError,\r
+    removeConversationSuccess, findMessageSuccess, findMessageError, filterForTo;\r
+\r
+\r
+t.step(function () {\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throws an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        conversationsupdated: function (conversations) {\r
+        },\r
+        conversationsadded: function (conversations) {\r
+        },\r
+        conversationsremoved: function (conversations) {\r
+        }\r
+    };\r
+\r
+    removeConversationSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    removeConversationError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConversationSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        service.messageStorage.removeConversations(conversations, removeConversationSuccess, removeConversationError);\r
+    });\r
+\r
+    findConversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        filterForId = new tizen.AttributeFilter("id", "EXACTLY", messages[0].conversationId);\r
+        service.messageStorage.findConversations(filterForId, findConversationSuccess, findConversationError);\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        filterForTo = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        service.messageStorage.findMessages(filterForTo, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);\r
+        msg = new tizen.Message("messaging.sms",\r
+                {plainBody: "addCCLAddMRemoveCRemoveCCL-testing",\r
+                 to: [ TEST_SMS_RECIPIENT ]});\r
+        service.messageStorage.addDraftMessage(msg, addSuccess, addError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener.html
new file mode 100755 (executable)
index 0000000..4ce757c
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addConversationsChangeListener</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addConversationsChangeListener\r
+//==== LABEL Check if MessageStorage.addConversationsChangeListener method works properly (email)\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MMINA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, i,\r
+    serviceSuccess, serviceError, messageService, message, addDraftError, conversationChangeCB, returnedValue = null;\r
+\r
+t.step(function () {\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(returnedValue);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throws an exception\r
+        }\r
+    });\r
+\r
+    conversationChangeCB = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        messageService = service;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        returnedValue = messageService.messageStorage.addConversationsChangeListener(conversationChangeCB);\r
+        assert_type(returnedValue, "long", "Incorrect returned value type");\r
+\r
+        messageService.messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..8eb1ede
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addConversationsChangeListener_filter_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addConversationsChangeListener_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.addConversationsChangeListener method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, conversationChangeCB, filter,\r
+    exceptionName, conversionTable, i, watchId;\r
+\r
+t.step(function () {\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watchId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throws an exception\r
+        }\r
+    });\r
+\r
+    conversationChangeCB = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_unreached("conversations added");\r
+        }),\r
+        conversationsupdated: t.step_func(function (conversations) {\r
+            assert_unreached("conversations updated");\r
+        }),\r
+        conversationsremoved: t.step_func(function (conversations) {\r
+            assert_unreached("conversations removed");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            filter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({\r
+                name: exceptionName\r
+            }, function () {\r
+                watchId = service.messageStorage.addConversationsChangeListener(conversationChangeCB, filter);\r
+            }, exceptionName + " should be thrown - given incorrect filter: " + filter);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_missarg.html
new file mode 100755 (executable)
index 0000000..a9205d3
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addConversationsChangeListener_missarg</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addConversationsChangeListener_missarg\r
+//==== LABEL Check with missing mandatory argument - MessageStorage.addConversationsChangeListener (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, watchId;\r
+t.step(function () {\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watchId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throws an exception\r
+        }\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            watchId = service.messageStorage.addConversationsChangeListener();\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_with_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_with_filter.html
new file mode 100755 (executable)
index 0000000..288dde8
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addConversationsChangeListener_with_filter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addConversationsChangeListener_with_filter\r
+//==== LABEL Check if MessageStorage.addConversationsChangeListener method works properly with filter (email)\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), addDraftError, i,\r
+    service, serviceSuccess, serviceError, message, conversationChangeCB, filter, watchId;\r
+\r
+t.step(function () {\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watchId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throws an exception\r
+        }\r
+    });\r
+\r
+    conversationChangeCB = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        filter = new tizen.AttributeFilter("to", "EXACTLY", message.to);\r
+        watchId = service.messageStorage.addConversationsChangeListener(conversationChangeCB, filter);\r
+\r
+        service.messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_withoutcb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_withoutcb.html
new file mode 100755 (executable)
index 0000000..7ec02ab
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addConversationsChangeListener_withoutcb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addConversationsChangeListener_withoutcb\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addConversationsChangeListener (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.addConversationsChangeListener();\r
+        }, "Missing non-optional argument");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_withoutfilter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addConversationsChangeListener_withoutfilter.html
new file mode 100755 (executable)
index 0000000..5b4817b
--- /dev/null
@@ -0,0 +1,108 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addConversationsChangeListener_withoutfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addConversationsChangeListener_withoutfilter\r
+//==== LABEL Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)\r
+//==== PRIORITY: P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MAST MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,\r
+    serviceSuccess, serviceError, service, message, removeAllSuccess, sendError, listener;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        conversationsadded: t.step_func(function (conversations) {\r
+            assert_type(conversations, "array", "conversations");\r
+            assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+            for (i = 0; i < conversations.length; i++) {\r
+                if (conversations[i].id === message.conversationId) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        sendMessage(t, service, message, null, sendError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMCLaddM.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMCLaddM.html
new file mode 100755 (executable)
index 0000000..b12f262
--- /dev/null
@@ -0,0 +1,107 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addMCLaddM</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addMCLaddM\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly for sms\r
+//==== PRIORITY: P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, listenerId, listener, sendError, serviceSuccess,\r
+    msg, serviceError, messageStorage;\r
+\r
+t.step(function () {\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesupdated: t.step_func(function (messages) {\r
+            assert_unreached("messagesupdated callback invoked");\r
+        }),\r
+        messagesadded: t.step_func(function (messages) {\r
+            assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+            t.done();\r
+        }),\r
+        messagesremoved: t.step_func(function (messages) {\r
+            assert_unreached("messagesremoved callback invoked");\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+        listenerId = service.messageStorage.addMessagesChangeListener(listener);\r
+        msg = new tizen.Message("messaging.sms", {\r
+            plainBody: "test.",\r
+            to: [TEST_SMS_RECIPIENT]\r
+        });\r
+        sendMessage(t, service, msg, null, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withfilter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withfilter.html
new file mode 100755 (executable)
index 0000000..cd6581b
--- /dev/null
@@ -0,0 +1,106 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addMessagesChangeListener_withfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addMessagesChangeListener_withfilter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly with filter\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MAST MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    service, listenerId, messageStorage, message, listener, filter, serviceSuccess,\r
+    serviceError, addError;\r
+\r
+t.step(function () {\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesadded: t.step_func(function (messages) {\r
+            assert_type(messages, "array", "Not an array.");\r
+            assert_greater_than(messages.length, 0, "Received empty messages array");\r
+            for (i = 0; i < messages.length; i++) {\r
+                assert_true(messages[i] instanceof tizen.Message, "Not a message.");\r
+                if (messages[i].id === message.id) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function serviceListCB(services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        listenerId = messageStorage.addMessagesChangeListener(listener, filter);\r
+        message = new tizen.Message("messaging.sms", {plainBody: "test.", to: [ TEST_SMS_RECIPIENT ]});\r
+        service.messageStorage.addDraftMessage(message, null, addError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withoutfilter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_addMessagesChangeListener_withoutfilter.html
new file mode 100755 (executable)
index 0000000..513aaca
--- /dev/null
@@ -0,0 +1,104 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_addMessagesChangeListener_withoutfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_addMessagesChangeListener_withoutfilter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly without filter\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MMINA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    service, listenerId, serviceSuccess, message, messageStorage, listener,\r
+    serviceError, sendError;\r
+t.step(function () {\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesadded: t.step_func(function (messages) {\r
+            assert_type(messages, "array", "Not an array.");\r
+            assert_greater_than(messages.length, 0, "Received empty messages array");\r
+            for (i = 0; i < messages.length; i++) {\r
+                assert_true(messages[i] instanceof tizen.Message, "Not a message.");\r
+                if (messages[i].id === message.id) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+        listenerId = messageStorage.addMessagesChangeListener(listener);\r
+        assert_type(listenerId, "long", "Incorrect returned value from addMessagesChangeListener method.");\r
+        message = new tizen.Message("messaging.sms", {plainBody: "test.", to: [ TEST_SMS_RECIPIENT ]});\r
+        sendMessage(t, service, message, null, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..c1d4c71
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch\r
+//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectChangeListener, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectChangeListener  = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addConversationsChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..28208f0
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTL\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), incorrectChangeListener,\r
+    serviceSuccess, serviceError, incorrectListeners, i, exceptionName;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        incorrectListeners = getListenerConversionExceptions(["conversationsadded", "conversationsupdated", "conversationsremoved"]);\r
+        for(i = 0; i < incorrectListeners.length; i++) {\r
+            incorrectChangeListener = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.addConversationsChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addConversationsChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..0447260
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addConversationsChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addConversationsChangeListener_exist\r
+//==== LABEL Check if method addConversationsChangeListener of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    messageStorage, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        messageStorage = service.messageStorage;\r
+        assert_true("addConversationsChangeListener" in messageStorage, "No addConversationsChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "addConversationsChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage.html
new file mode 100755 (executable)
index 0000000..45d9758
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MAST MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message,\r
+    addDraftSuccess, addDraftError, returnedValue = null, filter, findMessagesSuccess, findMessagesError;\r
+\r
+t.step(function () {\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        returnedValue = service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..516462a
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, conversionTable, i, exceptionName, incorrectCallback;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage() success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..b59bb3a
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, addDraftSuccess, incorrectCallback, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage() success callback invoked.");\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_exist.html
new file mode 100755 (executable)
index 0000000..c91e562
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_exist\r
+//==== LABEL Check if method addDraftMessage of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("addDraftMessage" in service.messageStorage, "No addDraftMessage method in messageStorage");\r
+        check_method_exists(service.messageStorage, "addDraftMessage");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_message_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..fe5128d
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_message_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_message_TypeMismatch\r
+//==== LABEL Check type conversions for message argument of MessageStorage.addDraftMessage method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, incorrectMessage, conversionTable, i, exceptionName,\r
+    addDraftSuccess, addDraftError;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage success callback invoked.");\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectMessage = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.addDraftMessage(incorrectMessage, addDraftSuccess, addDraftError);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessage);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_message_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..be30443
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_message_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_message_invalid_obj\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when message is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, fakeMessage, exceptionName = "TypeMismatchError",\r
+    addDraftSuccess, addDraftError;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage success callback invoked.");\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        fakeMessage = {\r
+            id: "123456",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.email",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [ TEST_EMAIL_RECIPIENT_1 ],\r
+            cc: [],\r
+            bcc: [],\r
+            body: {\r
+                messageId: "123456",\r
+                loaded: false,\r
+                plainBody: MESSAGE_BODY_PLAIN,\r
+                htmlBody: "",\r
+                inlineAttachments: []\r
+            },\r
+            isRead: false,\r
+            hasAttachment: false,\r
+            isHighPriority: false,\r
+            subject: "",\r
+            inResponseTo: null,\r
+            messageStatus: "",\r
+            attachments: []\r
+        };\r
+\r
+        assert_throws({name: exceptionName}, function () {\r
+            service.messageStorage.addDraftMessage(fakeMessage, addDraftSuccess, addDraftError);\r
+        }, exceptionName + " should be thrown - given incorrect Message");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_missarg.html
new file mode 100755 (executable)
index 0000000..011b3fd
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addDraftMessage (email)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.addDraftMessage();\r
+        }, "Missing argument");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..477059e
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, incorrectCallback, addDraftError, conversionTable, exceptionName, i;\r
+\r
+t.step(function () {\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);\r
+            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..a4d6385
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, incorrectCallback, addDraftError;\r
+\r
+t.step(function () {\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);\r
+        }, "Given incorrect success callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_without_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..f6ef61b
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_without_errorCallback\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, returnedValue = null,\r
+    addDraftSuccess, filter, findMessagesSuccess, findMessagesError;\r
+\r
+t.step(function () {\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        returnedValue = service.messageStorage.addDraftMessage(message, addDraftSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_without_successCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addDraftMessage_without_successCallback.html
new file mode 100755 (executable)
index 0000000..f73bf53
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addDraftMessage_without_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addDraftMessage_without_successCallback\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly without successCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message, returnedValue = null;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        returnedValue = service.messageStorage.addDraftMessage(message);\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener.html
new file mode 100755 (executable)
index 0000000..1afa036
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener\r
+//==== LABEL Check if MessageStorage.addFoldersChangeListener method works properly (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersChangeCallback, watchId;\r
+\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(function (updatedFolders){\r
+        }),\r
+        foldersadded: t.step_func(function (addedFolders){\r
+        }),\r
+        foldersremoved: t.step_func(function (removedFolders){\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback);\r
+        assert_type(watchId, "long", "Incorrect returned type");\r
+\r
+        service.messageStorage.removeChangeListener(watchId);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..2f2476e
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener_exist\r
+//==== LABEL Check if method addFoldersChangeListener of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("addFoldersChangeListener" in service.messageStorage, "No addFoldersChangeListener method in messageStorage");\r
+        check_method_exists(service.messageStorage, "addFoldersChangeListener");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..81b4a65
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.addFoldersChangeListener method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersChangeCallback, incorrectfilter, conversionTable, i, exceptionName;\r
+\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(function (updatedFolders){\r
+\r
+        }),\r
+        foldersadded: t.step_func(function (addedFolders){\r
+\r
+        }),\r
+        foldersremoved: t.step_func(function (removedFolders){\r
+\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectfilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.addFoldersChangeListener(foldersChangeCallback, incorrectfilter);\r
+            }, exceptionName + " should be thrown - given incorrect filter - " + incorrectfilter);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..359ee7f
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Karol Surma <k.surma@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch\r
+//==== LABEL Check type conversions for foldersChangeCallback argument of MessageStorage.addFoldersChangeListener method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError,\r
+    incorrectCallback, conversionTable, i, exceptionName;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName}, function () {\r
+                service.messageStorage.addFoldersChangeListener(incorrectCallback);\r
+            }, "Given incorrect error callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_invalid_cb.html
new file mode 100755 (executable)
index 0000000..e8e319e
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener_invalid_cb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener_invalid_cb\r
+//==== LABEL Check if MessageStorage.addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTL\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, incorrectListeners, folderChangeListener, i, exceptionName, filter;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        incorrectListeners = getListenerConversionExceptions(["foldersadded", "foldersupdated", "foldersremoved"]);\r
+\r
+        for (i = 0; i < incorrectListeners.length; i++) {\r
+            folderChangeListener  = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.addFoldersChangeListener(folderChangeListener, filter);\r
+            }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_missarg.html
new file mode 100755 (executable)
index 0000000..be05c50
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Karol Surma <k.surma@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener_missarg</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addFoldersChangeListener (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION,\r
+            function () {\r
+                service.messageStorage.addFoldersChangeListener();\r
+            },\r
+            "TypeMismatchError should be thrown - no listener given"\r
+        );\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_updatedata.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_updatedata.html
new file mode 100755 (executable)
index 0000000..2e5a2b0
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener_updatedata</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener_updatedata\r
+//==== LABEL Check if MessageStorage::addFoldersChangeListener method works properly when update data\r
+//==== PRIORITY: P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MAST\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter, addDraftError, i;\r
+\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(function (updatedFolders) {\r
+        }),\r
+        foldersadded: t.step_func(function (addedFolders) {\r
+            assert_type(addedFolders, "object", "type check");\r
+            assert_greater_than(addedFolders.length, 0, "Received empty folders array");\r
+            for (i = 0; i < addedFolders.length; i++) {\r
+                if (addedFolders[i].name= "abc") {\r
+                    alert("please remove the folder just added");\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        }),\r
+        foldersremoved: t.step_func(function (removedFolders) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);\r
+        assert_type(watchId, "long", "Incorrect returned type");\r
+        alert("add a folder in the email named 'abc' manually");\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_with_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addFoldersChangeListener_with_filter.html
new file mode 100755 (executable)
index 0000000..0878568
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Karol Surma <k.surma@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addFoldersChangeListener_with_filter</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_email_addFoldersChangeListener_with_filter\r
+//==== LABEL Check if MessageStorage.addFoldersChangeListener method works properly with filter (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersChangeCallback, watchId, filter;\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(function (updatedFolders){\r
+        }),\r
+        foldersadded: t.step_func(function (addedFolders){\r
+        }),\r
+        foldersremoved: t.step_func(function (removedFolders){\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback, filter);\r
+        assert_type(watchId, "long", "Incorrect returned type");\r
+\r
+        service.messageStorage.removeChangeListener(watchId);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..a10c1c4
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addMessagesChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addMessagesChangeListener_exist\r
+//==== LABEL Check if method addMessagesChangeListener of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("addMessagesChangeListener" in service.messageStorage, "No addMessagesChangeListener method in messageStorage");\r
+        check_method_exists(service.messageStorage, "addMessagesChangeListener");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..0cb56cd
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, changeCallback, conversionTable, incorrectFilter, exceptionName, i;\r
+\r
+t.step(function () {\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("messagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("messagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectFilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.addMessagesChangeListener(changeCallback, incorrectFilter);\r
+                }, exceptionName + " should be thrown - given incorrect filter: " + incorrectFilter);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..4220873
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch\r
+//==== LABEL Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, incorrectChangeListener, exceptionName, i, conversionTable;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectChangeListener  = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.addMessagesChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..5cf349e
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTL\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, incorrectListeners, incorrectChangeListener, exceptionName, i;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        incorrectListeners = getListenerConversionExceptions(["messagesadded", "messagesupdated", "messagesremoved"]);\r
+\r
+        for(i = 0; i < incorrectListeners.length; i++) {\r
+            incorrectChangeListener = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.addMessagesChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_missarg.html
new file mode 100755 (executable)
index 0000000..cb96a87
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addMessagesChangeListener_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addMessagesChangeListener_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (email)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.addMessagesChangeListener();\r
+            }, exceptionName + " should be thrown - missing argument.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_with_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_with_filter.html
new file mode 100755 (executable)
index 0000000..5b8ab21
--- /dev/null
@@ -0,0 +1,101 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addMessagesChangeListener_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addMessagesChangeListener_with_filter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly with filter (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), changeCallback, addDraftError,\r
+    service, serviceSuccess, serviceError, mismatchMessage, matchMessage, filter, listenerID;\r
+\r
+t.step(function () {\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerID);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);\r
+            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            assert_equals(addedMessages[0].subject, matchMessage.subject, "Incorrect subject.");\r
+            assert_equals(addedMessages[0].id, matchMessage.id, "Incorrect id.");\r
+            t.done();\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        mismatchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        matchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        filter = new tizen.AttributeFilter("subject", "EXACTLY", matchMessage.subject);\r
+\r
+        listenerID = service.messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+        assert_type(listenerID, "long", "Incorrect returned value.");\r
+\r
+        service.messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);\r
+        service.messageStorage.addDraftMessage(matchMessage, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_without_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_addMessagesChangeListener_without_filter.html
new file mode 100755 (executable)
index 0000000..ff15a5a
--- /dev/null
@@ -0,0 +1,102 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_addMessagesChangeListener_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_addMessagesChangeListener_without_filter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly without filter (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MMINA MAST\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceSuccess, serviceError, service, message, listenerId, addDraftError, changeCallback;\r
+\r
+t.step(function () {\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_greater_than(addedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < addedMessages.length; i++) {\r
+                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");\r
+\r
+                if (addedMessages[0].id === message.id) {\r
+                    assert_equals(addedMessages[i].subject, message.subject, "Incorrect subject.");\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        listenerId = service.messageStorage.addMessagesChangeListener(changeCallback);\r
+        assert_type(listenerId, "long", "Incorrect returned value.");\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_extend.html
new file mode 100755 (executable)
index 0000000..5350c77
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageStorage (email) can be extended with new property\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        check_extensibility(service.messageStorage);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..e9860b7
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_errorCallback_TypeMismatch\r
+//==== LABEL Check errorCallback argument of findConversations will be throw exception with invalid argument type\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectCallback, conversionTable, exceptionName;\r
+\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({\r
+                name: exceptionName\r
+            }, function () {\r
+                services[0].messageStorage.findConversations(toFilter, findConversationsCallback, incorrectCallback);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..b006531
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_email_findConversations_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage::findConversations method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback,\r
+    getMessagingServicesCallback, onError, invalidCallback;\r
+\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    invalidCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("Invalid errorCallback invoked");\r
+        })\r
+    };\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(toFilter, findConversationsCallback, invalidCallback);\r
+        });\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_exist.html
new file mode 100755 (executable)
index 0000000..408f72c
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_exist\r
+//==== LABEL Check if method findConversations of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("findConversations" in service.messageStorage, "No findConversations method in messageStorage");\r
+        check_method_exists(service.messageStorage, "findConversations");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..6786e96
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_filter_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage::findConversations method (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectFilter, conversionTable, exceptionName;\r
+\r
+t.step(function () {\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_not_equals(services.length, 0, "getMessageServices services.length");\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectFilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                services[0].messageStorage.findConversations(incorrectFilter, findConversationsCallback, errorCallback);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_from.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_from.html
new file mode 100755 (executable)
index 0000000..cf46a4a
--- /dev/null
@@ -0,0 +1,109 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_filter_from</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_findConversations_filter_from\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by from (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, i,\r
+    sendSuccess, sendError, syncSuccess, syncError, findSuccess, findError;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (conversations) {\r
+        if (conversations.length > 0) {\r
+            for (i = 0; i < conversations.length; i++) {\r
+                assert_equals(conversations[i].from, TEST_EMAIL_RECIPIENT_1, "from should match");\r
+            }\r
+\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("from", "EXACTLY", TEST_EMAIL_RECIPIENT_1),\r
+        service.messageStorage.findConversations(filter, findSuccess, findError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_invalid_obj.html
new file mode 100755 (executable)
index 0000000..f43b61d
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_filter_invalid_obj</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_filter_invalid_obj\r
+//==== LABEL Check if MessageStorage::findConversations method throws exception when filter is invalid (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTO\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, invalidFilter;\r
+\r
+t.step(function () {\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_not_equals(services.length, 0, "getMessageServices services.length");\r
+\r
+        invalidFilter = {\r
+            attributeName: "type",\r
+            matchFlag: "EXACTLY",\r
+            matchValue: services[0].type\r
+        };\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(invalidFilter, findConversationsCallback, errorCallback);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_to.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_to.html
new file mode 100755 (executable)
index 0000000..16432cc
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_filter_to</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_findConversations_filter_to\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by to (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, i,\r
+    addDraftSuccess, addDraftError, filter, findSuccess, findError;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+        for (i = 0; i < conversations.length; i++) {\r
+            assert_array_equals(conversations[i].to, [TEST_EMAIL_RECIPIENT_2], "to should match");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function ()\r
+    {\r
+        filter = new tizen.AttributeFilter("to", "EXACTLY", TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.findConversations(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_type.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_filter_type.html
new file mode 100755 (executable)
index 0000000..f0b137e
--- /dev/null
@@ -0,0 +1,96 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_filter_type</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_findConversations_filter_type\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by type (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    findConversationsSuccess, findConversationsError, serviceSuccess, serviceError,\r
+    service, filter, i, addDraftSuccess, addDraftError, message;\r
+\r
+t.step(function () {\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty services array");\r
+        for (i = 0; i < conversations.length; i++) {\r
+            assert_equals(conversations[i].type, filter.matchValue, "type should match");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);\r
+        service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_missarg.html
new file mode 100755 (executable)
index 0000000..fdad39e
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_missarg</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage::findConversations (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess;\r
+\r
+t.step(function () {\r
+\r
+    onSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "type of services is not Array");\r
+        if (services.length > 0) {\r
+            service = services[0];\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                service.messageStorage.findConversations();\r
+            });\r
+        } else {\r
+            assert_unreached("list of services is empty");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", onSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_sort_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_sort_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..52abd2d
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_sort_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_sort_TypeMismatch\r
+//==== LABEL Check type conversions for sort argument of MessageStorage::findConversations method (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectSort, conversionTable, exceptionName;\r
+\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectSort = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                services[0].messageStorage.findConversations(toFilter, findConversationsCallback, errorCallback, incorrectSort);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_sort_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_sort_invalid_obj.html
new file mode 100755 (executable)
index 0000000..ad3be38
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_sort_invalid_obj</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_sort_invalid_obj\r
+//==== LABEL Check if MessageStorage::findConversations method throws exception when sort is invalid (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTO\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, invalidSort;\r
+\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    invalidSort = {\r
+        attributeName: "id",\r
+        order: "ASC"\r
+    };\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(toFilter, findConversationsCallback, errorCallback, invalidSort);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..e8ec944
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage::findConversations method (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, errorCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectCallback, conversionTable, exceptionName;\r
+\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                services[0].messageStorage.findConversations(toFilter, incorrectCallback, errorCallback);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..f29e843
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_successCallback_invalid_cb</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage::findConversations method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, errorCallback, getMessagingServicesCallback,\r
+    onError, invalidCallback;\r
+\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_EMAIL_RECIPIENT_2);\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    invalidCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("Unexpected onsuccess");\r
+        })\r
+    };\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(toFilter, invalidCallback, errorCallback);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_offset.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_offset.html
new file mode 100755 (executable)
index 0000000..e9546ba
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_with_offset</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findConversations_with_offset\r
+//==== LABEL Check if MessageStorage::findConversations method works properly with all optional argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, serviceSuccess, serviceError, message1, message2,\r
+    filter, sortMode, addDraftSuccess, addDraftError, addDraftSuccessCount = 0,\r
+    findConversationsSuccess, findConversationsError, limit, offset;\r
+\r
+t.step(function () {\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than_equal(conversations.length, 2, "Need at least 2 conversations");\r
+        assert_true(conversations[0].timestamp <= conversations[1].timestamp, "correct order");\r
+        t.done();\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCount++;\r
+        if (addDraftSuccessCount === 2) {\r
+            filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);\r
+            sortMode = new tizen.SortMode("timestamp", "ASC");\r
+            limit = 10;\r
+            offset = 2;\r
+            service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError, sortMode, limit, offset);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message1 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message2 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message1, addDraftSuccess, addDraftError);\r
+        service.messageStorage.addDraftMessage(message2, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_sort.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_sort.html
new file mode 100755 (executable)
index 0000000..65c09bc
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_with_sort</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_findConversations_with_sort\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with sort (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, serviceSuccess, serviceError, message1, message2,\r
+    filter, sortMode, addDraftSuccess, addDraftError, addDraftSuccessCount = 0,\r
+    findConversationsSuccess, findConversationsError;\r
+\r
+t.step(function () {\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than_equal(conversations.length, 2, "Need at least 2 conversations");\r
+        assert_true(conversations[0].timestamp <= conversations[1].timestamp, "correct order");\r
+        t.done();\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCount++;\r
+        if (addDraftSuccessCount === 2) {\r
+            filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);\r
+            sortMode = new tizen.SortMode("timestamp", "ASC");\r
+            service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError, sortMode);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message1 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message2 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message1, addDraftSuccess, addDraftError);\r
+        service.messageStorage.addDraftMessage(message2, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_sort_time_desc.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_with_sort_time_desc.html
new file mode 100755 (executable)
index 0000000..8dd38e1
--- /dev/null
@@ -0,0 +1,105 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_with_sort_time_desc</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageStorage_email_findConversations_with_sort_time_desc\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with sort by time descending (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message1, message2,\r
+    addDraftSuccess, addDraftError, addDraftSuccessCount=0,\r
+    filter, sortMode, findConversationsSuccess, findConversationsError;\r
+\r
+t.step(function () {\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than_equal(conversations.length, 2, "Need at least 2 conversations");\r
+        assert_true(conversations[0].timestamp >= conversations[1].timestamp, "correct order");\r
+        t.done();\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCount++;\r
+        if (addDraftSuccessCount === 2) {\r
+            filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);\r
+            sortMode = new tizen.SortMode("timestamp", "DESC");\r
+            service.messageStorage.findConversations(filter, findConversationsSuccess, findConversationsError, sortMode);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message1 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message2 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message1, addDraftSuccess, addDraftError);\r
+        service.messageStorage.addDraftMessage(message2, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_without_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findConversations_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..d09dd01
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findConversations_without_errorCallback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_email_findConversations_without_errorCallback\r
+//==== LABEL Check if MessageStorage.findConversations method works properly without errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceSuccess, serviceError, service, message, filter, addDraftError, findConversationsSuccess;\r
+\r
+t.step(function () {\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "Not an array");\r
+        assert_greater_than(conversations.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < conversations.length; i++) {\r
+            assert_equals(conversations[i].type, service.type, "Incorrect service type");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.addDraftMessage(message, null, addDraftError);\r
+\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);\r
+        service.messageStorage.findConversations(filter, findConversationsSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findFolders_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findFolders_exist.html
new file mode 100755 (executable)
index 0000000..bc38eb8
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findFolders_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findFolders_exist\r
+//==== LABEL Check if method findFolders of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("findFolders" in service.messageStorage, "No findFolders method in messageStorage");\r
+        check_method_exists(service.messageStorage, "findFolders");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages.html
new file mode 100755 (executable)
index 0000000..fb162a9
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages\r
+//==== LABEL Check if MessageStorage.findMessages method works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, message,\r
+    addDraftSuccess, addDraftError, filter, findSuccess;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        t.done();\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findSuccess);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_and_loadMessageBody.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_and_loadMessageBody.html
new file mode 100755 (executable)
index 0000000..b4d494a
--- /dev/null
@@ -0,0 +1,154 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_and_loadMessageBody</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageStorage_email_findMessages_and_loadMessageBody\r
+//==== LABEL Check if MessageStorage.findMessages and MessageStorage.loadMessageBody methods work properly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    filter, findSuccess, i, loadMessageSuccess, loadMessageError;\r
+\r
+t.step(function () {\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");\r
+        assert_equals(msg.conversationId, message.conversationId, "conversationId is not equal");\r
+        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");\r
+        assert_equals(msg.folderId, message.folderId, "folderId is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, message.type, "type is not equal");\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");\r
+        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");\r
+        assert_equals(msg.from, message.from, "from is not equal");\r
+        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");\r
+        assert_array_equals(msg.to, message.to, "to is not equal");\r
+        assert_array_equals(msg.cc, message.cc, "to is not equal");\r
+        assert_array_equals(msg.bcc, message.bcc, "to is not equal");\r
+        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");\r
+        assert_equals(msg.body.messageId, message.body.messageId, "body.messageId is not equal");\r
+        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");\r
+        assert_equals(msg.body.loaded, message.body.loaded, "loaded is not equal");\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");\r
+        assert_own_property(msg.body, "htmlBody", "Name htmlBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.htmlBody, message.body.htmlBody, "htmlBody is not equal");\r
+        assert_own_property(msg.body, "inlineAttachments", "Name inlineAttachments doesn't exist in provided object.");\r
+        for (i = 0; i < msg.body.inlineAttachments.length; i++) {\r
+            assert_true(msg.body.inlineAttachments[i] instanceof tizen.MessageAttachment, "wrong attachment object");\r
+            assert_equals(msg.body.inlineAttachments[i].id, message.body.inlineAttachments[i].id, "attachments.id is not equal");\r
+            assert_equals(msg.body.inlineAttachments[i].messageId, message.body.inlineAttachments[i].messageId, "attachments.messageId is not equal");\r
+            assert_equals(msg.body.inlineAttachments[i].mimeType, message.body.inlineAttachments[i].mimeType, "attachments.mimeType is not equal");\r
+        }\r
+        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");\r
+        assert_equals(msg.isRead, message.isRead, "isRead is not equal");\r
+        assert_own_property(msg, "hasAttachment", "Name hasAttachment doesn't exist in provided object.");\r
+        assert_equals(msg.hasAttachment, message.hasAttachment, "hasAttachment is not equal");\r
+        assert_own_property(msg, "isHighPriority", "Name isHighPriority doesn't exist in provided object.");\r
+        assert_equals(msg.isHighPriority, message.isHighPriority, "isHighPriority is not equal");\r
+        assert_own_property(msg, "subject", "Name subject doesn't exist in provided object.");\r
+        assert_equals(msg.subject, message.subject, "subject is not equal");\r
+        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");\r
+        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");\r
+        assert_own_property(msg, "messageStatus", "Name messageStatus doesn't exist in provided object.");\r
+        assert_equals(msg.messageStatus, message.messageStatus, "messageStatus is not equal");\r
+        for(i = 0; i < msg.attachments.length; i++){\r
+            assert_true(msg.attachments[i] instanceof tizen.MessageAttachment, "wrong attachment object");\r
+            assert_equals(msg.attachments[i].id, message.attachments[i].id, "attachments.id is not equal");\r
+            assert_equals(msg.attachments[i].messageId, message.attachments[i].messageId, "attachments.messageId is not equal");\r
+            assert_equals(msg.attachments[i].mimeType, message.attachments[i].mimeType, "attachments.mimeType is not equal");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        service.loadMessageBody(messages[0], loadMessageSuccess, loadMessageError);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findSuccess);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            cc: [TEST_EMAIL_RECIPIENT_1],\r
+            bcc: [TEST_EMAIL_RECIPIENT_1],\r
+            plainBody: MESSAGE_BODY_PLAIN,\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+        message.attachments = [\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)\r
+        ];\r
+\r
+        message.body.inlineAttachments = [\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE)\r
+        ];\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+}, "MessageStorage_email_findMessages");\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_bcc_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_bcc_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..a85f62f
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_bcc_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageStorage_email_findMessages_bcc_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by bcc (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_in_array(TEST_EMAIL_RECIPIENT_1, messages[i].bcc, "bcc not found");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("bcc", "EXACTLY", TEST_EMAIL_RECIPIENT_1);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.bcc = [TEST_EMAIL_RECIPIENT_1];\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_cc_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_cc_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..93eeec1
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_cc_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageStorage_email_findMessages_cc_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by cc (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_in_array(TEST_EMAIL_RECIPIENT_1, messages[i].cc, "cc not found");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("cc", "EXACTLY", TEST_EMAIL_RECIPIENT_1);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.cc = [TEST_EMAIL_RECIPIENT_1];\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..ebe010c
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage::findMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,\r
+    incorrectCallback, findSuccessCB;\r
+\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(filter, findSuccessCB, incorrectCallback);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..1655963
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage::findMessages method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB, filter,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, incorrectCallback, findSuccessCB;\r
+\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("unexpeted addDraftMessage() error callback invoked.");\r
+        })\r
+    };\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            messageStorage.findMessages(filter, findSuccessCB, incorrectCallback);\r
+        });\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_exist.html
new file mode 100755 (executable)
index 0000000..3b4060d
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_exist\r
+//==== LABEL Check if method findMessages of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("findMessages" in service.messageStorage, "No findMessages method in messageStorage");\r
+        check_method_exists(service.messageStorage, "findMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_filter_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..9eef881
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_filter_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage::findMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, incorrectFilter, conversionTable,\r
+    i, exceptionName, findSuccessCB, findErrorCB;\r
+\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectFilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(incorrectFilter, findSuccessCB, findErrorCB);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectFilter);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_filter_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_filter_invalid_obj.html
new file mode 100755 (executable)
index 0000000..978a5b3
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_filter_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_filter_invalid_obj\r
+//==== LABEL Check if MessageStorage::findMessages method throws exception when filter is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, invalidFilter, findSuccessCB, findErrorCB;\r
+\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            messageStorage.findMessages(invalidFilter, findSuccessCB, findErrorCB);\r
+        });\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        invalidFilter = {\r
+            attributeName: "type",\r
+            matchFlag: "EXACTLY",\r
+            matchValue: services[0].type\r
+        };\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_folderId_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_folderId_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..6bf01d7
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_folderId_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_folderId_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by folderId (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_equals(messages[i].folderId, message.folderId, "returned folderId is not equal");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("folderId", "EXACTLY", message.folderId);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_from_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_from_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..2c96e4a
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_from_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_from_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by from (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, sendSuccess, sendError, syncSuccess, syncError,\r
+    filter, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_type(messages, "array", "Not an array");\r
+            for (i = 0; i < messages.length; i++) {\r
+                assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+                assert_equals(messages[i].from, TEST_EMAIL_RECIPIENT_1, "returned from is not equal");\r
+            }\r
+\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("from", "EXACTLY", TEST_EMAIL_RECIPIENT_1);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..5267291
--- /dev/null
@@ -0,0 +1,98 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_hasAttachment_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_hasAttachment_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by hasAttachment (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_equals(messages[i].hasAttachment, true, "returned hasAttachment is not equal to true");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("hasAttachment", "EXACTLY", true);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)];\r
+\r
+        assert_true(message.hasAttachment, "Attachment not found");\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_id_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_id_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..1ee7af2
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_id_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_id_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by id (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter,\r
+    addDraftSuccess, addDraftError, findSuccess, findError;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..5122e81
--- /dev/null
@@ -0,0 +1,96 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_isHighPriority_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_isHighPriority_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by isHighPriority (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_equals(messages[i].isHighPriority, true, "returned isHighPriority is not equal to true");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("isHighPriority", "EXACTLY", true);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.isHighPriority = true;\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_isRead_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_isRead_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..0781e71
--- /dev/null
@@ -0,0 +1,141 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_isRead_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_isRead_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by isRead (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false, inboxMessageId,\r
+    sendSuccess, sendError, syncSuccess, syncError, findFoldersSuccess, findFoldersError,\r
+    findInboxMessageSuccess, findInboxMessageError, updateSuccess, updateError,\r
+    findUpdatedMessagesSuccess, findUpdatedMessagesError, inboxFolder, i;\r
+\r
+t.step(function () {\r
+    findUpdatedMessagesSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_equals(messages[i].isRead, true, "returned isRead is not equal to true");\r
+\r
+            if (messages[i].id === inboxMessageId) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findUpdatedMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("isRead", "EXACTLY", true);\r
+        service.messageStorage.findMessages(filter, findUpdatedMessagesSuccess, findUpdatedMessagesError);\r
+    });\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findInboxMessageSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_equals(messages.length, 1, "Found incorrect number of messages");\r
+            assert_equals(messages[0].subject, message.subject, "Incorrect subject.");\r
+            assert_equals(messages[0].folderId, inboxFolder.id, "Incorrect folderId.");\r
+\r
+            messages[0].isRead = true;\r
+            inboxMessageId = messages[0].id;\r
+\r
+            service.messageStorage.updateMessages(messages, updateSuccess, updateError);\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findInboxMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findInboxMessageSuccess, findInboxMessageError);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_missarg.html
new file mode 100755 (executable)
index 0000000..6731510
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_missarg\r
+//==== LABEL Check without arguments - MessageStorage::findMessages\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB;\r
+\r
+t.step(function () {\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            messageStorage.findMessages();\r
+        }, "TypeMismatchError should be thrown - no argument given");\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_plainBody_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_plainBody_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..42dfa0a
--- /dev/null
@@ -0,0 +1,102 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_plainBody_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_plainBody_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by plainBody (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, service, message, addDraftSuccess,\r
+    addDraftError, filter, findSuccess, findError, loadMessageBodySuccess, loadMessageBodyError, i;\r
+\r
+t.step(function () {\r
+\r
+    loadMessageBodySuccess = t.step_func(function (loadedMessage) {\r
+        assert_true(loadedMessage instanceof tizen.Message, "Not a Message");\r
+        assert_equals(loadedMessage.body.plainBody, message.body.plainBody, "plainBody is not equal to the expected");\r
+        t.done();\r
+    });\r
+\r
+    loadMessageBodyError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            if (messages[i].id === message.id) {\r
+                service.loadMessageBody(messages[i], loadMessageBodySuccess, loadMessageBodyError);\r
+                break;\r
+            }\r
+        }\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("body.plainBody", "EXACTLY", message.body.plainBody);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_serviceId_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_serviceId_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..9ecaa05
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_serviceId_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_serviceId_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by serviceId (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_equals(messages[i].type, service.type, "Invalid service type");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_sort_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_sort_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..f91028f
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_sort_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_sort_TypeMismatch\r
+//==== LABEL Check type conversions for sort argument of MessageStorage::findMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,\r
+    incorrect, findSuccessCB, findErrorCB;\r
+\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrect = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(filter, findSuccessCB, findErrorCB, incorrect);\r
+                }, exceptionName + " should be thrown - given incorrect sort mode: " + incorrect);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_sort_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_sort_invalid_obj.html
new file mode 100755 (executable)
index 0000000..a03fbd3
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_sort_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_sort_invalid_obj\r
+//==== LABEL Check if MessageStorage::findMessages method throws exception when sort is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTO\r
+//==== ONLOAD_DELAY 90\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB, incorrectMode,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB;\r
+\r
+t.step(function () {\r
+\r
+    incorrectMode = {\r
+        attributeName: "id",\r
+        order: "ASC"\r
+    };\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            messageStorage.findMessages(filter, findSuccessCB, findErrorCB, incorrectMode);\r
+        });\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..7381999
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage::findMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,\r
+    incorrectCallback, findErrorCB;\r
+\r
+t.step(function () {\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(filter, incorrectCallback, findErrorCB);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..ff2fa9a
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage::findMessages method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB, filter,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, incorrectCallback, findErrorCB;\r
+\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            messageStorage.findMessages(filter, incorrectCallback, findErrorCB);\r
+        });\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.email", {\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: "abd"\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_timestamp_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_timestamp_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..002c84a
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_timestamp_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_timestamp_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by timestamp (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, timeRange = 300000;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+\r
+            if (messages[i].id === message.id) {\r
+                assert_equals(messages[i].timestamp.getTime(), message.timestamp.getTime(), "returned timestamp is not equal to the expected");\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeRangeFilter("timestamp",\r
+            new Date(message.timestamp.getTime()-timeRange), new Date(message.timestamp.getTime()+timeRange));\r
+\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_to_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_to_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..db80ebe
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_to_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_to_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by to (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_in_array(TEST_EMAIL_RECIPIENT_2, messages[i].to, "to not found");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "EXACTLY", TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_type_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_type_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..ff2d995
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_type_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_type_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly for filter by type (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_equals(messages[i].type, message.type, "returned type is not equal");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message wasn't found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", message.type);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_with_offset.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_findMessages_with_offset.html
new file mode 100755 (executable)
index 0000000..e1c1090
--- /dev/null
@@ -0,0 +1,98 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_findMessages_with_offset</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_findMessages_with_offset\r
+//==== LABEL Check if MessageStorage::findMessages method works properly with all optional argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, filter, messageFound = false,\r
+    addDraftSuccess, addDraftError, findSuccess, findError, i, sortMode, limit, offset;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_type(messages, "array", "Not an array");\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_true(messages[i] instanceof tizen.Message, "Not a Message");\r
+            assert_in_array(TEST_EMAIL_RECIPIENT_1, messages[i].cc, "cc not found");\r
+\r
+            if (messages[i].id === message.id) {\r
+                messageFound = true;\r
+            }\r
+        }\r
+\r
+        assert_true(messageFound, "expected message was not found");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("cc", "EXACTLY", TEST_EMAIL_RECIPIENT_1);\r
+        sortMode = new tizen.SortMode("timestamp", "ASC");\r
+        limit = 0;\r
+        offset = 0;\r
+        service.messageStorage.findMessages(filter, findSuccess, findError, sortMode, limit, offset);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        message.cc = [TEST_EMAIL_RECIPIENT_1];\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..432d019
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_removeChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_removeChangeListener_exist\r
+//==== LABEL Check if method removeChangeListener of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("removeChangeListener" in service.messageStorage, "No removeChangeListener method in messageStorage");\r
+        check_method_exists(service.messageStorage, "removeChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeConversations_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeConversations_exist.html
new file mode 100755 (executable)
index 0000000..ed604cf
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_removeConversations_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_removeConversations_exist\r
+//==== LABEL Check if method removeConversations of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("removeConversations" in service.messageStorage, "No removeConversations method in messageStorage");\r
+        check_method_exists(service.messageStorage, "removeConversations");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeMessages_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_removeMessages_exist.html
new file mode 100755 (executable)
index 0000000..291fcaa
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_removeMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_removeMessages_exist\r
+//==== LABEL Check if method removeMessages of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("removeMessages" in service.messageStorage, "No removeMessages method in messageStorage");\r
+        check_method_exists(service.messageStorage, "removeMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages.html
new file mode 100755 (executable)
index 0000000..9f72ba9
--- /dev/null
@@ -0,0 +1,272 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service,\r
+    mutableMessage, constMessage,\r
+    plainBodyToSetForMutableMessage = MESSAGE_BODY_PLAIN + "_mutable",\r
+    plainBodyToSetForConstMessage = MESSAGE_BODY_PLAIN + "_const",\r
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null,\r
+    updateSuccess, updateError, mutableMessagefilter, constMessagefilter,\r
+    findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE",\r
+    findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST",\r
+    loadMutableSuccess, loadMutableError,\r
+    loadConstSuccess, loadConstError,\r
+    loadMutableAttachmentSuccess, loadMutableAttachmentError,\r
+    loadConstAttachmentSuccess, loadConstAttachmentError,\r
+    testMessage, testAttachment, testAttachmentCounter = 0;\r
+\r
+t.step(function () {\r
+    testAttachment = t.step_func(function (attachment, type) {\r
+        var j, foundAttachmenentCounter = 0;\r
+        if (type === mutable) {\r
+            for (j = 0; j < mutableMessage.attachments.length; j++) {\r
+                if (attachment.id === mutableMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, mutableMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, mutableMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, mutableMessage.id, type + " attachment.messageId (with message.id)");\r
+                    assert_equals(attachment.mimeType, mutableMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else if (type === consts) {\r
+            for (j = 0; j < constMessage.attachments.length; j++) {\r
+                if (attachment.id === constMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, constMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, constMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, constMessage.id, type + " attachment.messageId - (with message.id)");\r
+                    assert_equals(attachment.mimeType, constMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else {\r
+            assert_unreached("FIX your test - unknown type = " + type);\r
+        }\r
+\r
+        testAttachmentCounter++;\r
+        if (testAttachmentCounter === mutableMessage.attachments.length + constMessage.attachments.length) {\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    loadMutableAttachmentSuccess = t.step_func(function (attachment) {\r
+        testAttachment(attachment, mutable);\r
+    });\r
+\r
+    loadMutableAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstAttachmentSuccess = t.step_func(function (attachment) {\r
+        testAttachment(attachment, consts);\r
+    });\r
+\r
+    loadConstAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    testMessage = t.step_func(function (messageToTest, originalMessage, type) {\r
+        var i;\r
+        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");\r
+        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");\r
+        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");\r
+\r
+        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");\r
+        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");\r
+        assert_array_equals(messageToTest.cc, originalMessage.cc, type + " cc attribute.");\r
+        assert_array_equals(messageToTest.bcc, originalMessage.bcc, type + " bcc attribute.");\r
+\r
+        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");\r
+        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");\r
+        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");\r
+        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");\r
+        assert_equals(messageToTest.body.htmlBody, originalMessage.body.htmlBody, type + " body.htmlBody attribute.");\r
+\r
+        assert_equals(messageToTest.body.inlineAttachments.length, originalMessage.body.inlineAttachments.length,\r
+            type + " incorrect length of inlineAttachments");\r
+        for (i = 0; i < originalMessage.body.inlineAttachments.length; i++) {\r
+            assert_equals(messageToTest.body.inlineAttachments[i].id, originalMessage.body.inlineAttachments[i].id,\r
+                type + " message.body.inlineAttachments[" + i + "].id");\r
+            assert_equals(messageToTest.body.inlineAttachments[i].messageId, originalMessage.body.inlineAttachments[i].messageId,\r
+                type + " message.body.inlineAttachments[" + i + "].messageId");\r
+            assert_equals(messageToTest.body.inlineAttachments[i].messageId, originalMessage.id,\r
+                type + " message.body.inlineAttachments[" + i + "].messageId - (with message.id)");\r
+            assert_equals(messageToTest.body.inlineAttachments[i].mimeType, originalMessage.body.inlineAttachments[i].mimeType,\r
+                type + " message.body.inlineAttachments[" + i + "].mimeType");\r
+            assert_type(messageToTest.body.inlineAttachments[i].filePath, "string",  type + " attachment.filePath is not a string");\r
+            assert_not_equals(messageToTest.body.inlineAttachments[i].filePath, "", type + " attachment.filePath is empty");\r
+        }\r
+\r
+        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");\r
+        assert_equals(messageToTest.hasAttachment, originalMessage.hasAttachment, type + " hasAttachment attribute.");\r
+        assert_equals(messageToTest.isHighPriority, originalMessage.isHighPriority, type + " isHighPriority attribute.");\r
+        assert_equals(messageToTest.subject, originalMessage.subject, type + " subject attribute.");\r
+        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");\r
+        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");\r
+        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {\r
+            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");\r
+        } else {\r
+            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");\r
+        }\r
+        assert_equals(messageToTest.conversationId, originalMessage.conversationId, type + "  conversationId attribute.");\r
+        assert_equals(messageToTest.attachments.length, originalMessage.attachments.length, type + " incorrect length of attachments");\r
+        for (i = 0; i < messageToTest.attachments.length; i++) {\r
+            if (type === mutable) {\r
+                service.loadMessageAttachment(messageToTest.attachments[i], loadMutableAttachmentSuccess, loadMutableAttachmentError);\r
+            } else if (type === consts) {\r
+                service.loadMessageAttachment(messageToTest.attachments[i], loadConstAttachmentSuccess, loadConstAttachmentError);\r
+            } else {\r
+                assert_unreached("FIX your test - unknown type = " + type);\r
+            }\r
+        }\r
+    });\r
+\r
+    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {\r
+        testMessage(loadedMutableMessage, mutableMessage, mutable);\r
+    });\r
+\r
+    loadMutableError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstSuccess = t.step_func(function (loadedConstMessage) {\r
+        testMessage(loadedConstMessage, constMessage, consts);\r
+    });\r
+\r
+    loadConstError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {\r
+        assert_draft_message_equals(t, mutableMessages, mutableMessage);\r
+        foundMutableMessage = mutableMessages[0];\r
+        service.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);\r
+    });\r
+\r
+    findMutableMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConstMessagesSuccess = t.step_func(function (constMessages) {\r
+        assert_draft_message_equals(t, constMessages, constMessage);\r
+        foundConstMessage = constMessages[0];\r
+        service.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);\r
+    });\r
+\r
+    findConstMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);\r
+        service.messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);\r
+\r
+        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);\r
+        service.messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);\r
+    });\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.isRead = true;\r
+            mutableMessage.isHighPriority = true;\r
+            mutableMessage.subject = generateSubject();\r
+            returnedValue = service.messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess, updateError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        mutableMessage = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: plainBodyToSetForMutableMessage,\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+        service.messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+\r
+        constMessage = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: plainBodyToSetForConstMessage,\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+        constMessage.attachments = [\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE),\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)\r
+        ];\r
+\r
+        service.messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..622e862
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.updateMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message,\r
+    addDraftSuccess, addDraftError, exceptionName,\r
+    updateSuccess, incorrectCallback, conversionTable, i;\r
+\r
+t.step(function () {\r
+    updateSuccess = t.step_func(function () {\r
+        assert_unreached("updateMessages() success callback invoked.");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.updateMessages([message], updateSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..a2a699c
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message,\r
+    addDraftSuccess, addDraftError,\r
+    updateSuccess, incorrectCallback;\r
+\r
+t.step(function () {\r
+    updateSuccess = t.step_func(function () {\r
+        assert_unreached("updateMessages() success callback invoked.");\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.updateMessages([message], updateSuccess, incorrectCallback);\r
+        }, "Given invalid error callback");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_exist.html
new file mode 100755 (executable)
index 0000000..e5e05a6
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_exist\r
+//==== LABEL Check if method updateMessages of MessageStorage (email) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_true("updateMessages" in service.messageStorage, "No updateMessages method in messageStorage");\r
+        check_method_exists(service.messageStorage, "updateMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_messages_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_messages_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..cec156b
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_messages_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_messages_TypeMismatch\r
+//==== LABEL Check type conversions for messages argument of MessageStorage.updateMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, exceptionName, updateSuccess, updateError,\r
+    conversionTable, incorrectMessages, i;\r
+\r
+t.step(function () {\r
+    updateSuccess = t.step_func(function () {\r
+        assert_unreached("updateMessages() success callback invoked.");\r
+    });\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("array", false);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectMessages = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.updateMessages(incorrectMessages, updateSuccess, updateError);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessages);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_missarg.html
new file mode 100755 (executable)
index 0000000..93cbc1a
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_missarg\r
+//==== LABEL Check with missing message argument -  MessageStorage.updateMessages (email)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, exceptionName = "TypeMismatchError";\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            service.messageStorage.updateMessages();\r
+        }, exceptionName + " should be thrown - missing argument.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..142c91f
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.updateMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    exceptionName, updateError, incorrectCallback, conversionTable, i;\r
+\r
+t.step(function () {\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.updateMessages([message], incorrectCallback, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..e05c729
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message,\r
+    addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError",\r
+    updateError, incorrectCallback;\r
+\r
+t.step(function () {\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() incorrect success callback invoked");\r
+        })\r
+    };\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.updateMessages([message], incorrectCallback, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_without_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..825516b
--- /dev/null
@@ -0,0 +1,277 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_without_errorCallback\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly without errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000});\r
+t.step(function () {\r
+    var serviceSuccess, serviceError, service,\r
+        mutableMessage, constMessage,\r
+        plainBodyToSetForMutableMessage = MESSAGE_BODY_PLAIN + "_mutable",\r
+        plainBodyToSetForConstMessage = MESSAGE_BODY_PLAIN + "_const",\r
+        addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null,\r
+        updateSuccess, mutableMessagefilter, constMessagefilter,\r
+        findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE",\r
+        findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST",\r
+        loadMutableSuccess, loadMutableError,\r
+        loadConstSuccess, loadConstError,\r
+        loadMutableAttachmentSuccess, loadMutableAttachmentError,\r
+        loadConstAttachmentSuccess, loadConstAttachmentError,\r
+        testMessage, testAttachment, testAttachmentCounter = 0;\r
+\r
+    testAttachment = t.step_func(function (attachment, type) {\r
+        var j, foundAttachmenentCounter = 0;\r
+        if (type === mutable) {\r
+            for (j = 0; j < mutableMessage.attachments.length; j++) {\r
+                if (attachment.id === mutableMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, mutableMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, mutableMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, mutableMessage.id, type + " attachment.messageId (with message.id)");\r
+                    assert_equals(attachment.mimeType, mutableMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else if (type === consts) {\r
+            for (j = 0; j < constMessage.attachments.length; j++) {\r
+                if (attachment.id === constMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, constMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, constMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, constMessage.id, type + " attachment.messageId - (with message.id)");\r
+                    assert_equals(attachment.mimeType, constMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else {\r
+            assert_unreached("FIX your test - unknown type = " + type);\r
+        }\r
+\r
+        testAttachmentCounter++;\r
+        if (testAttachmentCounter === mutableMessage.attachments.length + constMessage.attachments.length) {\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    loadMutableAttachmentSuccess = t.step_func(function (attachment) {\r
+        testAttachment(attachment, mutable);\r
+    });\r
+\r
+    loadMutableAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstAttachmentSuccess = t.step_func(function (attachment) {\r
+        testAttachment(attachment, consts);\r
+    });\r
+\r
+    loadConstAttachmentError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageAttachment() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    testMessage = t.step_func(function (messageToTest, originalMessage, type) {\r
+        var i;\r
+        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");\r
+        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");\r
+        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");\r
+\r
+        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");\r
+        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");\r
+        assert_array_equals(messageToTest.cc, originalMessage.cc, type + " cc attribute.");\r
+        assert_array_equals(messageToTest.bcc, originalMessage.bcc, type + " bcc attribute.");\r
+\r
+        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");\r
+        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");\r
+        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");\r
+        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");\r
+        assert_equals(messageToTest.body.htmlBody, originalMessage.body.htmlBody, type + " body.htmlBody attribute.");\r
+\r
+        assert_equals(messageToTest.body.inlineAttachments.length, originalMessage.body.inlineAttachments.length,\r
+            type + " incorrect length of inlineAttachments");\r
+        for (i = 0; i < originalMessage.body.inlineAttachments.length; i++) {\r
+            assert_equals(messageToTest.body.inlineAttachments[i].id, originalMessage.body.inlineAttachments[i].id,\r
+                type + " message.body.inlineAttachments[" + i + "].id");\r
+            assert_equals(messageToTest.body.inlineAttachments[i].messageId, originalMessage.body.inlineAttachments[i].messageId,\r
+                type + " message.body.inlineAttachments[" + i + "].messageId");\r
+            assert_equals(messageToTest.body.inlineAttachments[i].messageId, originalMessage.id,\r
+                type + " message.body.inlineAttachments[" + i + "].messageId - (with message.id)");\r
+            assert_equals(messageToTest.body.inlineAttachments[i].mimeType, originalMessage.body.inlineAttachments[i].mimeType,\r
+                type + " message.body.inlineAttachments[" + i + "].mimeType");\r
+            assert_type(messageToTest.body.inlineAttachments[i].filePath, "string",  type + " attachment.filePath is not a string");\r
+            assert_not_equals(messageToTest.body.inlineAttachments[i].filePath, "", type + " attachment.filePath is empty");\r
+        }\r
+\r
+        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");\r
+        assert_equals(messageToTest.hasAttachment, originalMessage.hasAttachment, type + " hasAttachment attribute.");\r
+        assert_equals(messageToTest.isHighPriority, originalMessage.isHighPriority, type + " isHighPriority attribute.");\r
+        assert_equals(messageToTest.subject, originalMessage.subject, type + " subject attribute.");\r
+        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");\r
+        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");\r
+        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {\r
+            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");\r
+        } else {\r
+            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");\r
+        }\r
+        assert_equals(messageToTest.conversationId, originalMessage.conversationId, type + "  conversationId attribute.");\r
+\r
+        assert_equals(messageToTest.attachments.length, originalMessage.attachments.length, type + " incorrect length of attachments");\r
+        for (i = 0; i < messageToTest.attachments.length; i++) {\r
+            if (type === mutable) {\r
+                service.loadMessageAttachment(messageToTest.attachments[i], loadMutableAttachmentSuccess, loadMutableAttachmentError);\r
+            } else if (type === consts) {\r
+                service.loadMessageAttachment(messageToTest.attachments[i], loadConstAttachmentSuccess, loadConstAttachmentError);\r
+            } else {\r
+                assert_unreached("FIX your test - unknown type = " + type);\r
+            }\r
+        }\r
+    });\r
+\r
+    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {\r
+        testMessage(loadedMutableMessage, mutableMessage, mutable);\r
+    });\r
+\r
+    loadMutableError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstSuccess = t.step_func(function (loadedConstMessage) {\r
+        testMessage(loadedConstMessage, constMessage, consts);\r
+    });\r
+\r
+    loadConstError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {\r
+        assert_draft_message_equals(t, mutableMessages, mutableMessage);\r
+        foundMutableMessage = mutableMessages[0];\r
+        if (foundMutableMessage.body.loaded) {\r
+            testMessage(foundMutableMessage, mutableMessage, mutable);\r
+        } else {\r
+            service.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);\r
+        }\r
+    });\r
+\r
+    findMutableMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConstMessagesSuccess = t.step_func(function (constMessages) {\r
+        assert_draft_message_equals(t, constMessages, constMessage);\r
+\r
+        foundConstMessage = constMessages[0];\r
+        if (foundConstMessage.body.loaded) {\r
+            testMessage(foundConstMessage, constMessage, consts);\r
+        } else {\r
+            service.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);\r
+        }\r
+    });\r
+\r
+    findConstMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);\r
+        service.messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);\r
+\r
+        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);\r
+        service.messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.isRead = true;\r
+            mutableMessage.isHighPriority = true;\r
+            mutableMessage.subject = "new mutableMessage.subject";\r
+            returnedValue = service.messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        mutableMessage = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: plainBodyToSetForMutableMessage,\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+        service.messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        constMessage = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: plainBodyToSetForConstMessage,\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+        constMessage.attachments = [\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE),\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)\r
+        ];\r
+\r
+        service.messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_without_successCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_email_updateMessages_without_successCallback.html
new file mode 100755 (executable)
index 0000000..2e1cccf
--- /dev/null
@@ -0,0 +1,115 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_email_updateMessages_without_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_email_updateMessages_without_successCallback\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly without successCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, service, mutableMessage,\r
+    constMessage, plainBodyToSetForMutableMessage = MESSAGE_BODY_PLAIN + "_mutable", plainBodyToSetForConstMessage = MESSAGE_BODY_PLAIN + "_const",\r
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.to = ["tomutableMessage1@something.com", "tomutableMessage2@something.com"];\r
+            mutableMessage.cc = ["ccmutableMessage1@something.com", "ccmutableMessage2@something.com"];\r
+            mutableMessage.bcc = ["bccmutableMessage1@something.com", "bccmutableMessage2@something.com"];\r
+            mutableMessage.body.plainBody = "new mutableMessage.plainBody";\r
+            mutableMessage.body.htmlBody = MESSAGE_BODY_HTML + "<img src='webapi-tizen-messaging-test_image.jpg'>";\r
+            mutableMessage.body.inlineAttachments = [\r
+                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE),\r
+                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE)\r
+            ];\r
+            mutableMessage.isRead = true;\r
+            mutableMessage.isHighPriority = true;\r
+            mutableMessage.subject = "new mutableMessage.subject";\r
+            mutableMessage.attachments = [\r
+                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE),\r
+                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)\r
+            ];\r
+            returnedValue = service.messageStorage.updateMessages([mutableMessage, constMessage]);\r
+            assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        mutableMessage = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: plainBodyToSetForMutableMessage,\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+        service.messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        constMessage = new tizen.Message("messaging.email", {\r
+            subject: generateSubject(),\r
+            to: [TEST_EMAIL_RECIPIENT_2],\r
+            plainBody: plainBodyToSetForConstMessage,\r
+            htmlBody: MESSAGE_BODY_HTML,\r
+            isHighPriority: false\r
+        });\r
+\r
+        constMessage.attachments = [\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", MESSAGE_ATTACHMENT_SOUND_MIME_TYPE),\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", MESSAGE_ATTACHMENT_IMAGE_MIME_TYPE)\r
+        ];\r
+\r
+        service.messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders.html
new file mode 100755 (executable)
index 0000000..3cd2fee
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders\r
+//==== PRIORITY P1\r
+//==== LABEL Check if MessageStorage.findFolders method works properly\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, filter, foldersSuccess, returnedValue = null;\r
+\r
+t.step(function () {\r
+    foldersSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        returnedValue = service.messageStorage.findFolders(filter, foldersSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..27151bf
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders_errorCallback_TypeMismatch\r
+//==== PRIORITY P2\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.findFolders method\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, foldersSuccess, foldersError,\r
+    exceptionName, conversionTable, filter, i;\r
+\r
+t.step(function () {\r
+    foldersSuccess = t.step_func(function () {\r
+        assert_unreached("findFolders success callback should not be called.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            foldersError = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                {name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.findFolders(filter, foldersSuccess, foldersError);\r
+                },\r
+                exceptionName + "should be thrown when incorrect error callback given."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..097d6ef
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders_errorCallback_invalid_cb\r
+//==== PRIORITY P2\r
+//==== LABEL Check if MessageStorage.findFolders method throws exception when errorCallback is invalid\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, findSuccess, filter, incorrectCallback;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function () {\r
+        assert_unreached("findFolders success callback should not be called.");\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("findFolders() incorrect error callback invoked");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.findFolders(filter, findSuccess, incorrectCallback);\r
+        }, "Given invalid error callback");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_filter_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..5ecbc23
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders_filter_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders_filter_TypeMismatch\r
+//==== PRIORITY P2\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.findFolders method\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceSuccess, serviceError, foldersSuccess, exceptionName, conversionTable, filter;\r
+\r
+t.step(function () {\r
+    foldersSuccess = t.step_func(function () {\r
+        assert_unreached("findFolders success callback should not be called.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            filter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws(\r
+                {name: exceptionName},\r
+                function () {\r
+                    service.messageStorage.findFolders(filter, foldersSuccess);\r
+                },\r
+                exceptionName + "should be thrown when incorrect filter given."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_filter_serviceId.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_filter_serviceId.html
new file mode 100755 (executable)
index 0000000..155b6a7
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findFolders_filter_serviceId</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findFolders_filter_serviceId\r
+//==== LABEL Check if MessageStorage.findFolders works properly for filter by serviceId\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, serviceIdFilter, returnedValue = null, findFoldersError, findFoldersSuccess;\r
+\r
+t.step(function () {\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        serviceIdFilter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        returnedValue = service.messageStorage.findFolders(serviceIdFilter, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_missarg.html
new file mode 100755 (executable)
index 0000000..d769859
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders_missarg\r
+//==== PRIORITY P2\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.findFolders\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, filter;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION,\r
+            function () {\r
+                service.messageStorage.findFolders();\r
+            },\r
+            "TypeMismatch expected when no argument given."\r
+        );\r
+\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION,\r
+            function () {\r
+                service.messageStorage.findFolders(filter);\r
+            },\r
+            "TypeMismatch expected when no success callback given."\r
+        );\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..5656dc1
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders_successCallback_TypeMismatch\r
+//==== PRIORITY P2\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.findFolders method\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, msgService, foldersSuccess,\r
+    exceptionName, conversionTable, filter, i;\r
+\r
+t.step(function () {\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("Failed to get MessageServices: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "No message service received.");\r
+        msgService = services[0];\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", msgService.id);\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            foldersSuccess = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(\r
+                {name: exceptionName},\r
+                function () {\r
+                    msgService.messageStorage.findFolders(filter, foldersSuccess);\r
+                },\r
+                exceptionName + "should be thrown when incorrect success callback given."\r
+            );\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..c3024fb
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders_successCallback_invalid_cb\r
+//==== PRIORITY P2\r
+//==== LABEL Check if MessageStorage.findFolders method throws exception when successCallback is invalid (email)\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, filter, incorrectCallback;\r
+\r
+t.step(function () {\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("findFolders() incorrect error callback invoked");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.findFolders(filter, incorrectCallback);\r
+        }, "Given invalid success callback");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findFolders_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..64bd822
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Marcin Kaminski <marcin.ka@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findFolders_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findFolders_with_errorCallback\r
+//==== PRIORITY P1\r
+//==== LABEL Check if MessageStorage.findFolders method works properly with errorCallback argument\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, filter, foldersError, foldersSuccess,\r
+    returnedValue = null;\r
+\r
+t.step(function () {\r
+    foldersSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    foldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        returnedValue = service.messageStorage.findFolders(filter, foldersSuccess, foldersError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessage_emailFilterWithoutErrorCb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessage_emailFilterWithoutErrorCb.html
new file mode 100755 (executable)
index 0000000..56618ac
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_findMessage_emailFilterWithoutErrorCb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_findMessage_emailFilterWithoutErrorCb\r
+//==== LABEL Check if MessageStorage.findMessages method works properly without errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, message, returnedValue = null,\r
+    addDraftSuccess, addDraftError, filter, findSuccess;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        returnedValue = service.messageStorage.findMessages(filter, findSuccess);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages.html
new file mode 100755 (executable)
index 0000000..1151fed
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_findMessages</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_findMessages\r
+//==== LABEL Check if MessageStorage.findMessages method works properly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    smsService, findSuccess, findError, filter,\r
+    serviceSuccess, addSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        smsService.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        smsService = services[0];\r
+\r
+        addSMSDraft(t, smsService, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html
new file mode 100755 (executable)
index 0000000..9fe9a81
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_errorCallback_TypeMismatch_1</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_errorCallback_TypeMismatch_1\r
+//==== LABEL Check MessageStorage.findMessages method when errorCallback is a number (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, findSuccess, filter;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function () {\r
+        assert_unreached("findMessages() success callback invoked");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findMessages(filter, findSuccess, 1);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_null.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_errorCallback_null.html
new file mode 100755 (executable)
index 0000000..c321b0e
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_errorCallback_null</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_errorCallback_null\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, typeFilter, findSuccess,\r
+    i, addSuccess, service, foundMessage = 0, addedMessage;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_equals(messages[i].type, "messaging.sms", "Incorrect type");\r
+            if (messages[i].id === addedMessage.id) {\r
+                foundMessage++;\r
+            }\r
+        }\r
+        assert_equals(foundMessage, 1, "Incorrect number of found messages");\r
+        t.done();\r
+    });\r
+\r
+    addSuccess = t.step_func(function (msg) {\r
+        addedMessage = msg;\r
+        typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        service.messageStorage.findMessages(typeFilter, findSuccess, null);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        service = services[0];\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_exist.html
new file mode 100755 (executable)
index 0000000..0c70708
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_findMessages_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_findMessages_exist\r
+//==== LABEL Check if method findMessages in MessageStorage\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        assert_true("findMessages" in services[0].messageStorage, "Messaging.MessageStorage.findMessages method does not exist");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_body_valid.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_body_valid.html
new file mode 100755 (executable)
index 0000000..359c27f
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_body_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_filter_body_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by plainBody\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    bodyFilter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", "mms text"),\r
+    mmsService, findSuccess, findError, addSuccess, serviceSuccess,\r
+    serviceError, i, initDict;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_true(messages.length > 0, "No messages found");\r
+        for(i = 0; i < messages.length; i++) {\r
+            assert_regexp_match(messages[i].body.plainBody, /mms text/i, "Incorrect body.plainBody.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function (msg) {\r
+        mmsService.messageStorage.findMessages(bodyFilter, findSuccess, findError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        mmsService = services[0];\r
+\r
+        initDict = {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "This is a mms text."\r
+        };\r
+\r
+        addMMSDraft(t, mmsService, initDict, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_folderId_valid.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_folderId_valid.html
new file mode 100755 (executable)
index 0000000..422b03c
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_folderId_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_filter_folderId_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by folderId equal to 3\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, addSuccess, findSuccess,\r
+    findError, filter, mmsService;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (err) {\r
+        assert_unreached("Could not find message: " + err.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        // The folderId of DRAFTS folder is 3\r
+        filter = new tizen.AttributeFilter("folderId", "EXACTLY", "3");\r
+        mmsService.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(services.length, 1, "One service should be received");\r
+        assert_equals(services[0].type, "messaging.mms", "Service type is incorrect");\r
+\r
+        mmsService = services[0];\r
+        addMMSDraft(t, mmsService, {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("Service error: " + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_from_valid.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_from_valid.html
new file mode 100755 (executable)
index 0000000..3bf4dd3
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_from_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_filter_from_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by from (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), msg, sendSuccess, sendError, filter, findSuccess, findError,\r
+    serviceSuccess, serviceError, mmsService;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function (messages) {\r
+        mmsService.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(services.length, 1, "One service should be received");\r
+        assert_equals(services[0].type, "messaging.mms", "Service type is incorrect");\r
+\r
+        mmsService = services[0];\r
+\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+        msg = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, mmsService, msg, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_hasAttachment_valid.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_hasAttachment_valid.html
new file mode 100755 (executable)
index 0000000..5485941
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_hasAttachment_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findMessages_filter_hasAttachment_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by hasAttachment equal to false\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    mmsService, serviceError, serviceSuccess, addError, addSuccess, findError, findSuccess,\r
+    hasAttachmentFilter = new tizen.AttributeFilter("hasAttachment", "EXACTLY", false);\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        mmsService.messageStorage.findMessages(hasAttachmentFilter, findSuccess, findError);\r
+    });\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        mmsService = services[0];\r
+        addMMSDraft(t, mmsService, {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_isRead_valid.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_isRead_valid.html
new file mode 100755 (executable)
index 0000000..fb1c833
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_isRead_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findMessages_filter_isRead_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by isRead equal to true\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    mmsService, readFilter = new tizen.AttributeFilter("isRead", "EXACTLY", true),\r
+    serviceError, serviceSuccess, addError, addSuccess, findError, findSuccess,\r
+    msg;\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        mmsService.messageStorage.findMessages(readFilter, findSuccess, findError);\r
+    });\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        mmsService = services[0];\r
+\r
+        msg = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        msg.isRead = true;\r
+\r
+        mmsService.messageStorage.addDraftMessage(msg, addSuccess, addError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_mms_valid.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_mms_valid.html
new file mode 100755 (executable)
index 0000000..62b64a0
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_mms_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_filter_mms_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by type\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), findSuccess, findError,\r
+    serviceSuccess, serviceError, service, addSuccess;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        service.messageStorage.findMessages(MMStypeFilter, findSuccess, findError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        addMMSDraft(t, service, {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_sms_valid.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_sms_valid.html
new file mode 100755 (executable)
index 0000000..7ad7187
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_sms_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_filter_sms_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by type (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), smsService, findSuccess, findError, typeFilter, serviceSuccess,\r
+    addSuccess, addedMessage, foundMessage = 0, returnedValue = null, i, serviceError;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_equals(messages[i].type, "messaging.sms", "Incorrect type");\r
+            if (messages[i].id === addedMessage.id) {\r
+                foundMessage++;\r
+            }\r
+        }\r
+        assert_equals(foundMessage, 1, "Incorrect number of found messages");\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function (message) {\r
+        addedMessage = message;\r
+        typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        returnedValue = smsService.messageStorage.findMessages(typeFilter, findSuccess, findError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        smsService = services[0];\r
+\r
+        addSMSDraft(t, smsService, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_subject_valid.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_subject_valid.html
new file mode 100755 (executable)
index 0000000..4bd2074
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_subject_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findMessages_filter_subject_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by subject (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), mmsService,\r
+    subject, subjectFilter, addedMessage, findSuccess, findError,\r
+    serviceSuccess, serviceError, returnedValue = null, addSuccess;\r
+\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Incorrect number of messages");\r
+        assert_equals(messages[0].id, addedMessage.id, "Incorrect message.id");\r
+        assert_equals(messages[0].subject, subject, "Incorrect message.subject");\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function (message) {\r
+        addedMessage = message;\r
+        subjectFilter = new tizen.AttributeFilter("subject", "EXACTLY", subject);\r
+        returnedValue = mmsService.messageStorage.findMessages(subjectFilter, findSuccess, findError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        mmsService = services[0];\r
+\r
+        subject = generateSubject();\r
+\r
+        addMMSDraft(t, mmsService, {\r
+            subject: subject,\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_timestamp_valid.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_timestamp_valid.html
new file mode 100755 (executable)
index 0000000..a0911a6
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_timestamp_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_filter_timestamp_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by timestamp\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), findSuccess, findError, serviceSuccess, serviceError,\r
+    returnedValue = null, i, msg, dateTime, before, after, filter, mmsService, sendSuccess, sendError;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_greater_than_equal(messages[i].timestamp.getFullYear(), dateTime.getFullYear(), "Incorrect year");\r
+            assert_less_than_equal(messages[i].timestamp.getFullYear(), dateTime.getFullYear() + 1, "Incorrect year");\r
+        }\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        dateTime = tizen.time.getCurrentDateTime();\r
+        before = new Date(dateTime.getFullYear(), dateTime.getMonth(), dateTime.getDate());\r
+        after = new Date(dateTime.getFullYear() + 1, dateTime.getMonth(), dateTime.getDate());\r
+        filter = new tizen.AttributeRangeFilter("timestamp", before, after);\r
+\r
+        returnedValue = mmsService.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(services.length, 1, "One service should be received");\r
+        assert_equals(services[0].type, "messaging.mms", "Service type is incorrect");\r
+\r
+        mmsService = services[0];\r
+\r
+        msg = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, mmsService, msg, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_to_valid.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_filter_to_valid.html
new file mode 100755 (executable)
index 0000000..d473c74
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_filter_to_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_filter_to_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by to\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceError, serviceSuccess, addSuccess, findSuccess,\r
+    findError, foundAddedMessage = 0, addedMessage, mmsService, toFilter, i;\r
+t.step(function () {\r
+\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        for(i = 0; i < messages.length; i++) {\r
+            assert_in_array(TEST_SMS_RECIPIENT, messages[i].to, "Recipient is not present.");\r
+            if (messages[i].id === addedMessage.id) {\r
+                foundAddedMessage++;\r
+            }\r
+        }\r
+        assert_equals(foundAddedMessage, 1, "Found invalid number of message");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function (message) {\r
+        addedMessage = message;\r
+        toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        mmsService.messageStorage.findMessages(toFilter, findSuccess, findError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        mmsService = services[0];\r
+\r
+        addMMSDraft(t, mmsService, {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_limit_valid.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_limit_valid.html
new file mode 100755 (executable)
index 0000000..5488001
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_limit_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_limit_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with limit\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), smsService, typeFilter, sortMode, limit = 5, serviceError,\r
+    serviceSuccess, addSuccess, findError, findSuccess, addSuccessCounter = 0, i;\r
+\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        assert_less_than_equal(messages.length, limit, "Received too many messages");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        addSuccessCounter++;\r
+        if (addSuccessCounter === limit + 1) {\r
+            typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+            sortMode = new tizen.SortMode("type", "ASC");\r
+\r
+            smsService.messageStorage.findMessages(typeFilter, findSuccess, findError, sortMode, limit);\r
+        }\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        smsService = services[0];\r
+\r
+        for (i = 0; i <= limit; i++) {\r
+            addSMSDraft(t, smsService, {\r
+                to: [TEST_SMS_RECIPIENT],\r
+                plainBody: generatePlainBody()\r
+            }, addSuccess);\r
+        }\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_missarg.html
new file mode 100755 (executable)
index 0000000..03c8881
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findMessages_missarg</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findMessages_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.findMessages (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, filter, serviceError, serviceSuccess, onSuccess;\r
+t.step(function () {\r
+\r
+    onSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.findMessages(filter);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, onSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_noarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_noarg.html
new file mode 100755 (executable)
index 0000000..3777c21
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_findMessages_noarg</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_noarg\r
+//==== LABEL Check without arguments - MessageStorage.findMessages (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), onSuccess;\r
+t.step(function () {\r
+    onSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "type of services is not Array");\r
+        if (services.length > 0) {\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                services[0].messageStorage.findMessages();\r
+            });\r
+        } else {\r
+            assert_unreached("list of services is empty");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", onSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_offset_valid.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_offset_valid.html
new file mode 100755 (executable)
index 0000000..d1a62c5
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_offset_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_findMessages_offset_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with valid offset\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), smsService, typeFilter, sortMode, limit = 10, offset = 2,\r
+    serviceSuccess, serviceError, addSuccess, findSuccess, findError, addSuccessCounter = 0, i;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        addSuccessCounter++;\r
+        if (addSuccessCounter === offset + 1) {\r
+            typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+            sortMode = new tizen.SortMode("type", "ASC");\r
+            smsService.messageStorage.findMessages(typeFilter, findSuccess, findError, sortMode, limit, offset);\r
+        }\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        smsService = services[0];\r
+\r
+        for (i = 0; i <= offset; i++) {\r
+            addSMSDraft(t, smsService, {\r
+                to: [TEST_SMS_RECIPIENT],\r
+                plainBody: generatePlainBody()\r
+            }, addSuccess);\r
+        }\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_sort_valid.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_findMessages_sort_valid.html
new file mode 100755 (executable)
index 0000000..63d23d0
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_findMessages_sort_valid</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_findMessages_sort_valid\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with sort\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, findSuccess, findError, addSuccess, typeFilter,\r
+    sortMode, serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        typeFilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        sortMode = new tizen.SortMode("type", "ASC");\r
+        service.messageStorage.findMessages(typeFilter, findSuccess, findError, sortMode);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..17d19a7
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch\r
+//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectChangeListener, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectChangeListener  = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addConversationsChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..0c12dc2
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addConversationChangeListener method throws exception when conversationsChangeCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTL\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectListeners, i, exceptionName, incorrectChangeListener;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        incorrectListeners = getListenerConversionExceptions(["conversationsadded", "conversationsupdated", "conversationsremoved"]);\r
+        for(i = 0; i < incorrectListeners.length; i++) {\r
+            incorrectChangeListener = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addConversationsChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addConversationsChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..bd600a2
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addConversationsChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addConversationsChangeListener_exist\r
+//==== LABEL Check if method addConversationsChangeListener of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addConversationsChangeListener" in messageStorage, "No addConversationsChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "addConversationsChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage.html
new file mode 100755 (executable)
index 0000000..e8b9c1c
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",\r
+    returnedValue = null, addDraftSuccess, addDraftError, filter, findMessagesSuccess, findMessagesError;\r
+t.step(function () {\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Received incorrect number of messages");\r
+        assert_equals(messages[0].subject, subjectToSet, "subject attribute is incorrect.");\r
+        assert_equals(messages[0].body.plainBody, plainBodyToSet, "plainBody attribute is incorrect.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+        filter = new tizen.AttributeFilter("subject", "EXACTLY", subjectToSet);\r
+        messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});\r
+        returnedValue = messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..de20bc6
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",\r
+    addDraftSuccess, conversionTable, i, exceptionName, incorrectCallback;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage() success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet});\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..17902b1
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",\r
+    addDraftSuccess, incorrectCallback, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage() success callback invoked.");\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet});\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_exist.html
new file mode 100755 (executable)
index 0000000..fcf5045
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_exist\r
+//==== LABEL Check if method addDraftMessage of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addDraftMessage" in messageStorage, "No addDraftMessage method in messageStorage");\r
+        check_method_exists(messageStorage, "addDraftMessage");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..9ecb889
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_message_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_message_TypeMismatch\r
+//==== LABEL Check type conversions for message argument of MessageStorage.addDraftMessage method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectMessage, conversionTable, i, exceptionName, addDraftSuccess, addDraftError;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage success callback invoked.");\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectMessage = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addDraftMessage(incorrectMessage, addDraftSuccess, addDraftError);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessage);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_message_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..33d3b40
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_message_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_message_invalid_obj\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when message is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    fakeMessage, exceptionName = "TypeMismatchError", addDraftSuccess, addDraftError;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage success callback invoked.");\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        fakeMessage = {\r
+            id: "123456",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.mms",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [ TEST_SMS_RECIPIENT ],\r
+            body: {\r
+                messageId: "123456",\r
+                loaded: true,\r
+                plainBody: "Sample content"\r
+            },\r
+            isRead: false,\r
+            hasAttachment: false,\r
+            subject: "",\r
+            inResponseTo: null,\r
+            messageStatus: "",\r
+            attachments: []\r
+        };\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            messageStorage.addDraftMessage(fakeMessage, addDraftSuccess, addDraftError);\r
+        }, exceptionName + " should be thrown - given incorrect Message");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_missarg.html
new file mode 100755 (executable)
index 0000000..3f080e2
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addDraftMessage (mms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_throws({name: exceptionName}, function () {\r
+            messageStorage.addDraftMessage();\r
+        }, exceptionName + " should be thrown - missing argument");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..c60112c
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",\r
+    incorrectCallback, addDraftError, conversionTable, exceptionName, i;\r
+t.step(function () {\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet});\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);\r
+            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..ac109cd
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",\r
+    incorrectCallback, addDraftError, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet});\r
+        assert_throws({name: exceptionName}, function () {\r
+            messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_without_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..bcd365f
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_without_errorCallback\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",\r
+    returnedValue = null, addDraftSuccess, filter, findMessagesSuccess, findMessagesError;\r
+t.step(function () {\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Received incorrect number of messages");\r
+        assert_equals(messages[0].subject, subjectToSet, "subject attribute is incorrect.");\r
+        assert_equals(messages[0].body.plainBody, plainBodyToSet, "plainBody attribute is incorrect.");\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("subject", "EXACTLY", subjectToSet);\r
+        messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});\r
+        returnedValue = messageStorage.addDraftMessage(message, addDraftSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_without_successCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addDraftMessage_without_successCallback.html
new file mode 100755 (executable)
index 0000000..08a4e16
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addDraftMessage_without_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addDraftMessage_without_successCallback\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly without successCallback argument (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), subjectToSet = currentDate.getTime().toString(), plainBodyToSet = "plainBody",\r
+    returnedValue = null, removeAllSuccess;\r
+t.step(function () {\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        message = new tizen.Message("messaging.mms", {subject: subjectToSet, plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});\r
+        setTimeout(\r
+            t.step_func(function () {\r
+                returnedValue = messageStorage.addDraftMessage(message);\r
+                assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+                removeAllMessages(t, messageService, removeAllSuccess);\r
+            }), 10000);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addFoldersChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addFoldersChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..a35e453
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addFoldersChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addFoldersChangeListener_exist\r
+//==== LABEL Check if method addFoldersChangeListener of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addFoldersChangeListener" in messageStorage, "No addFoldersChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "addFoldersChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..6014562
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTL\r
+\r
+setup({timeout: 300000});\r
+\r
+var t = async_test(document.title, {timeout: 300000}),\r
+    serviceSuccess, serviceError, incorrectListeners, folderChangeListener, i, exceptionName, filter;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", services.id);\r
+\r
+        incorrectListeners = getListenerConversionExceptions(["foldersadded", "foldersupdated", "foldersremoved"]);\r
+\r
+        for (i = 0; i < incorrectListeners.length; i++) {\r
+            folderChangeListener  = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                services[0].messageStorage.addFoldersChangeListener(folderChangeListener, filter);\r
+            }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMmsService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..d000e90
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addMessagesChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addMessagesChangeListener_exist\r
+//==== LABEL Check if method addMessagesChangeListener of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addMessagesChangeListener" in messageStorage, "No addMessagesChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "addMessagesChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..899ab91
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    changeCallback, conversionTable, incorrectFilter, exceptionName, i;\r
+t.step(function () {\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("memssagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectFilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName}, function () {\r
+                messageStorage.addMessagesChangeListener(changeCallback, incorrectFilter);\r
+            }, exceptionName + " should be thrown - given incorrect filter: " + incorrectFilter);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..5629312
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch\r
+//==== LABEL Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectChangeListener, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectChangeListener  = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addMessagesChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..978fb66
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTL\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectListeners, incorrectChangeListener, exceptionName, i;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        incorrectListeners = getListenerConversionExceptions(["messagesadded", "messagesupdated", "messagesremoved"]);\r
+        for(i = 0; i < incorrectListeners.length; i++) {\r
+            incorrectChangeListener = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addMessagesChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_missarg.html
new file mode 100755 (executable)
index 0000000..53efdae
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addMessagesChangeListener_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addMessagesChangeListener_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (mms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addMessagesChangeListener();\r
+            }, exceptionName + " should be thrown - missing argument.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_with_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_with_filter.html
new file mode 100755 (executable)
index 0000000..50f5f18
--- /dev/null
@@ -0,0 +1,115 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addMessagesChangeListener_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addMessagesChangeListener_with_filter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly with filter (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MAST MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),\r
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),\r
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),\r
+    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },\r
+    matchInitDict = initDict, mismatchInitDict = initDict,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, loadSuccess, loadError;\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);\r
+            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+        assert_type(subscriptionIdentifier, "long", "Incorrect returned value.");\r
+\r
+        mismatchInitDict.plainBody = mismatchPlainBodyToSet;\r
+        mismatchMessage = new tizen.Message("messaging.mms", mismatchInitDict);\r
+        messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);\r
+\r
+        matchInitDict.plainBody = matchPlainBodyToSet;\r
+        matchMessage = new tizen.Message("messaging.mms", matchInitDict);\r
+        messageStorage.addDraftMessage(matchMessage, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_without_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_addMessagesChangeListener_without_filter.html
new file mode 100755 (executable)
index 0000000..802f805
--- /dev/null
@@ -0,0 +1,111 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_addMessagesChangeListener_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_addMessagesChangeListener_without_filter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly without filter (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MMINA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, message, changeCallback, addDraftError, loadSuccess, loadError, i, plainBody = "sample plainBody";\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            if (subscriptionIdentifier) {\r
+                messageStorage.removeChangeListener(subscriptionIdentifier);\r
+            }\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, plainBody, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, message.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_greater_than(addedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < addedMessages.length; i++) {\r
+                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (addedMessages[i].id === message.id) {\r
+                    messageStorage.removeChangeListener(subscriptionIdentifier);\r
+                    messageService.loadMessageBody(addedMessages[i], loadSuccess, loadError);\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+        assert_type(subscriptionIdentifier, "long", "Incorrect returned value.");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: plainBody\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_extend.html
new file mode 100755 (executable)
index 0000000..7ec231b
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageStorage (MMS) can be extended with new property\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        check_extensibility(messageStorage);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_exist.html
new file mode 100755 (executable)
index 0000000..dd51c75
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findConversations_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findConversations_exist\r
+//==== LABEL Check if method findConversations of MessageStorage (MMS) exists\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("findConversations" in messageStorage, "No findConversations method in messageStorage");\r
+        check_method_exists(messageStorage, "findConversations");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (e) {\r
+        assert_unreached("getMessageServices() error callback: name:" + e.name + ", msg:" + e.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_from.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_from.html
new file mode 100755 (executable)
index 0000000..02e7376
--- /dev/null
@@ -0,0 +1,96 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_from</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_mms_findConversations_filter_from\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by from (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    returnedValue = null, findSuccess, fromFound, findError, addSuccess, addError,\r
+    serviceSuccess, service, datetime, message, messageStorage, serviceError, i;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        for (i = 0; i < conversations.length; i++) {\r
+            assert_not_equals(conversations[i].from, null, "from is null");\r
+            fromFound = conversations[i].from.indexOf(TEST_SMS_RECIPIENT);\r
+            assert_greater_than_equal(fromFound, 0, "Recipient not found");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        returnedValue = service.messageStorage.findConversations(fromFilter, findSuccess, findError);\r
+    });\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        datetime = new Date().getTime().toString();\r
+        message = new tizen.Message("messaging.mms", {\r
+            plainBody: datetime,\r
+            to: [ TEST_SMS_RECIPIENT ]\r
+        });\r
+\r
+        messageStorage = service.messageStorage;\r
+        service.messageStorage.addDraftMessage(message, addSuccess, addError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_id.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_id.html
new file mode 100755 (executable)
index 0000000..f7b20c8
--- /dev/null
@@ -0,0 +1,98 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_id</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_mms_findConversations_filter_id\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by id (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, message, addError, addSuccess,\r
+    idFilter, returnedValue = null, findError, findSuccess;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        assert_type(conversations, "array", "conversation is not an array");\r
+        assert_equals(conversations.length, 1, "Found many conversation for given id");\r
+\r
+        assert_equals(conversations[0].id, message.conversationId, "Incorrect conversation id");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        assert_type(message.conversationId, "string", "Message.conversationId is not a string");\r
+        assert_not_equals(message.conversationId, "", "Message.conversationId is empty");\r
+\r
+        idFilter = new tizen.AttributeFilter("id", "EXACTLY", message.conversationId);\r
+        returnedValue = service.messageStorage.findConversations(idFilter, findSuccess, findError);\r
+    });\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        service.messageStorage.addDraftMessage(message, addSuccess, addError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_messageCount.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_messageCount.html
new file mode 100755 (executable)
index 0000000..44d5f93
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_messageCount</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_mms_findConversations_filter_messageCount\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by messageCount (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, message, sendError, sendSuccess, messageCountFilter,\r
+    returnedValue = null, findError, findSuccess, i;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        assert_type(conversations, "array", "Not an array");\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        for(i = 0; i < conversations.length; i++) {\r
+            assert_type(conversations[i].messageCount, "unsigned long", "messageCount is not unsigned long");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        messageCountFilter = new tizen.AttributeFilter("messageCount", "EXISTS");\r
+        returnedValue = service.messageStorage.findConversations(messageCountFilter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_preview.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_preview.html
new file mode 100755 (executable)
index 0000000..40f873c
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_preview</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_mms_findConversations_filter_preview\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by preview (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, message, sendError, sendSuccess, previewFilter,\r
+    findError, findSuccess, i, returnedValue = null;\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        assert_type(conversations, "array", "Not an array");\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        for(i = 0; i < conversations.length; i++) {\r
+            assert_type(conversations[i].preview, "string", "preview is not a string");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        previewFilter = new tizen.AttributeFilter("preview", "EXISTS");\r
+        returnedValue = service.messageStorage.findConversations(previewFilter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_timestamp.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_timestamp.html
new file mode 100755 (executable)
index 0000000..910a961
--- /dev/null
@@ -0,0 +1,101 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_timestamp</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_mms_findConversations_filter_timestamp\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by timestamp (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, message, sendError, sendSuccess,\r
+    startDate, endDate, findError, findSuccess, i, timestampFilter, returnedValue = null;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        assert_type(conversations, "array", "Not an array");\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        for(i = 0; i < conversations.length; i++) {\r
+            assert_greater_than_equal(conversations[i].timestamp.getTime(), startDate.getTime(), "Incorrect date - too early");\r
+            assert_less_than_equal(conversations[i].timestamp.getTime(), endDate.getTime(), "Incorrect date - too late");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        timestampFilter = new tizen.AttributeRangeFilter("timestamp", startDate, endDate);\r
+        returnedValue = service.messageStorage.findConversations(timestampFilter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        startDate = new Date();\r
+        startDate.setHours(startDate.getHours() - 1);\r
+        endDate = new Date();\r
+        endDate.setHours(endDate.getHours() + 1);\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_to.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_to.html
new file mode 100755 (executable)
index 0000000..a857d4d
--- /dev/null
@@ -0,0 +1,108 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_to</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_mms_findConversations_filter_to\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by to (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    findSuccess, findError, serviceSuccess, messageService, sendSuccess, sendError, newMessage,\r
+    filter, serviceError, i, j, found = false;\r
+\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        for(i = 0; i < conversations.length; i++) {\r
+            for(j = 0; j < conversations[i].to.length; j++) {\r
+                if (conversations[i].to[j].indexOf(TEST_SMS_RECIPIENT) > -1) {\r
+                    found = true;\r
+                }\r
+            }\r
+            assert_true(found, "Recipient not found");\r
+            found = false;\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        messageService.messageStorage.findConversations(filter, findSuccess, findError);\r
+    });\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        newMessage = new tizen.Message(messageService.type, {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        sendMessage(t, messageService, newMessage, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_type.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_type.html
new file mode 100755 (executable)
index 0000000..170c132
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_type</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_mms_findConversations_filter_type\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by type (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceError, serviceSuccess, message, service, messageStorage, addDraftError, addDraftSuccess,\r
+    findError, findSuccess;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+        for(i = 0; i <conversations.length; i++) {\r
+            assert_equals(conversations[i].type, "messaging.mms", "Found incorrect type");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        messageStorage.findConversations(MMStypeFilter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        service = services[0];\r
+        messageStorage = service.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_unreadMessages.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findConversations_filter_unreadMessages.html
new file mode 100755 (executable)
index 0000000..27807a1
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_mms_findConversations_filter_unreadMessages</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_mms_findConversations_filter_unreadMessages\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by unreadMessages (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    unreadMessagesFilter, serviceSuccess, serviceError, findError, findSuccess;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "Not an array");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        unreadMessagesFilter = new tizen.AttributeFilter("unreadMessages", "EXACTLY", 0);\r
+        services[0].messageStorage.findConversations(unreadMessagesFilter, findSuccess, findError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findFolders_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findFolders_exist.html
new file mode 100755 (executable)
index 0000000..5abe152
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findFolders_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findFolders_exist\r
+//==== LABEL Check if method findFolders of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("findFolders" in messageStorage, "No findFolders method in messageStorage");\r
+        check_method_exists(messageStorage, "findFolders");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages.html
new file mode 100755 (executable)
index 0000000..c34e2a9
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages\r
+//==== LABEL Check if MessageStorage.findMessages method works properly (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, j;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_true(msg.length === 1, "Received incorrect number of messages: " + msg.length);\r
+        assert_own_property(msg[0], "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg[0].id, message.id, "Id is not equal");\r
+        assert_own_property(msg[0], "to", "Name to doesn't exist in provided object.");\r
+        for(j = 0; j < msg[0].to.length; j++){\r
+            assert_equals(msg[0].to[j], message.to[j], "to is not equal");\r
+        }\r
+        assert_own_property(msg[0], "subject", "Name subject doesn't exist in provided object.");\r
+        assert_equals(msg[0].subject, message.subject, "subject is not equal");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        messageStorage.findMessages(filter, findSuccessCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_exist.html
new file mode 100755 (executable)
index 0000000..dea71bb
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_exist\r
+//==== LABEL Check if method findMessages of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("findMessages" in messageStorage, "No findMessages method in messageStorage");\r
+        check_method_exists(messageStorage, "findMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_folderId_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_folderId_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..95c75d5
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_folderId_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_folderId_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by folderId (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++){\r
+            assert_equals(msg[i].folderId, message.folderId, "returned folderId is not equal");\r
+            assert_own_property(msg[i], "folderId", "Name folderId doesn't exist in provided object.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("folderId", "EXACTLY", message.folderId);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_from_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_from_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..56296d4
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_from_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_from_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by from\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    returnedValue = null, findSuccess, findError, addSuccess, addError, serviceSuccess,\r
+    serviceError, datetime, message, i, fromFound, service, messageStorage;\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (msg) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        for (i = 0; i < msg.length; i++) {\r
+            assert_not_equals(msg[i].from, null, "from is null");\r
+            fromFound = msg[i].from.indexOf(TEST_SMS_RECIPIENT);\r
+            assert_greater_than_equal(fromFound, 0, "Recipient not found");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        returnedValue = messageStorage.findMessages(fromFilter, findSuccess, findError);\r
+\r
+    });\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        datetime = tizen.time.getCurrentDateTime().toString();\r
+        message = new tizen.Message("messaging.mms", {\r
+            plainBody: datetime,\r
+            to: [ TEST_SMS_RECIPIENT ]\r
+        });\r
+\r
+        messageStorage = service.messageStorage;\r
+        service.messageStorage.addDraftMessage(message, addSuccess, addError);\r
+\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..0bebf3c
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_hasAttachment_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_hasAttachment_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by hasAttachment (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,\r
+    message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB, i;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++){\r
+            assert_own_property(msg[i], "hasAttachment", "Name hasAttachment doesn't exist in provided object.");\r
+            assert_equals(msg[i].hasAttachment, message.hasAttachment, "returned hasAttachment is not equal");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("hasAttachment", "EXACTLY", message.hasAttachment);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_id_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_id_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..5ade059
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_id_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_id_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by id (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_true(msg.length === 1, "Received incorrect number of messages: " + msg.length);\r
+        assert_own_property(msg[0], "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg[0].id, message.id, "Id is not equal");\r
+        t.done();\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_isRead_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_isRead_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..cfd5bfc
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_isRead_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_isRead_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by isRead (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++){\r
+            assert_own_property(msg[i], "isRead", "Name isRead doesn't exist in provided object.");\r
+            assert_equals(msg[i].isRead, message.isRead, "isRead is not equal");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("isRead", "EXACTLY", message.isRead);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..ead1a5a
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_plainBody_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_plainBody_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by plainBody (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, loadMessageSuccess, loadMessageError;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");\r
+\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++){\r
+            assert_equals(msg[i].body.plainBody, message.body.plainBody, "returned plainBody is not equal");\r
+            messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);\r
+        }\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", message.body.plainBody);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..a2f2934
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_timestamp_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_timestamp_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by timestamp (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, found = false;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++){\r
+            if(msg[i].id === message.id){\r
+                assert_own_property(msg[i], "timestamp", "Name timestamp doesn't exist in provided object.");\r
+                assert_equals(msg[i].timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");\r
+                found = true;\r
+            }\r
+        }\r
+        assert_true(found, "Message not found");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeRangeFilter("timestamp", new Date(message.timestamp.getTime()-2000), new Date(message.timestamp.getTime()+2000));\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_to_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_to_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..ea15966
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_to_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_to_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by to (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+//==== ONLOAD_DELAY 90\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, j, removeAllSuccess, foundRecipient = false;\r
+t.step(function () {\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++) {\r
+            assert_own_property(msg[i], "to", "Name to doesn't exist in provided object.");\r
+            assert_greater_than(msg[i].to.length, 0, "Recipient empty array");\r
+            for(j = 0; j < msg[i].to.length; j++) {\r
+                if (msg[i].to[j].indexOf(TEST_SMS_RECIPIENT) >= 0) {\r
+                    foundRecipient = true;\r
+                }\r
+            }\r
+        }\r
+        assert_true(foundRecipient, "Recipient not found");\r
+        removeAllMessages(t, messageService, removeAllSuccess);\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", message.to);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_type_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_findMessages_type_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..00302b9
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_findMessages_type_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_findMessages_type_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by type (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,\r
+    message, addDraftSuccessCB, addDraftErrorCB, findSuccessCB, findErrorCB, i, removeAllSuccess,\r
+    addedMessageFound = 0;\r
+t.step(function () {\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_greater_than(msg.length, 0, "Received empty msg array");\r
+        for(i = 0; i < msg.length; i++){\r
+            assert_equals(msg[i].type, "messaging.mms", "returned type is not equal");\r
+            if (msg[i].id === message.id) {\r
+                addedMessageFound++;\r
+            }\r
+        }\r
+        assert_equals(addedMessageFound, 1, "Id of message added to draft was not found or found multiple times.");\r
+        removeAllMessages(t, messageService, removeAllSuccess);\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        messageStorage.findMessages(MMStypeFilter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        message.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..2cbe035
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_removeChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_removeChangeListener_exist\r
+//==== LABEL Check if method removeChangeListener of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("removeChangeListener" in messageStorage, "No removeChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "removeChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeConversations_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeConversations_exist.html
new file mode 100755 (executable)
index 0000000..546954c
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_removeConversations_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_removeConversations_exist\r
+//==== LABEL Check if method removeConversations of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("removeConversations" in messageStorage, "No removeConversations method in messageStorage");\r
+        check_method_exists(messageStorage, "removeConversations");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeMessages_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_removeMessages_exist.html
new file mode 100755 (executable)
index 0000000..e303b49
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_removeMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_removeMessages_exist\r
+//==== LABEL Check if method removeMessages of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("removeMessages" in messageStorage, "No removeMessages method in messageStorage");\r
+        check_method_exists(messageStorage, "removeMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages.html
new file mode 100755 (executable)
index 0000000..0197269
--- /dev/null
@@ -0,0 +1,236 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MAST MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, messageService, messageStorage,\r
+    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(),\r
+    mutableMessage, constMessage,\r
+    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },\r
+    initDictForMutableMessage = initDict, initDictForConstMessage = initDict,\r
+    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable", plainBodyToSetForConstMessage = plainBodyToSet + "_const",\r
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null,\r
+    updateSuccess, updateError, mutableMessagefilter, constMessagefilter,\r
+    findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE",\r
+    findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST",\r
+    loadMutableSuccess, loadMutableError,\r
+    loadConstSuccess, loadConstError,\r
+    testMessage, testAttachment, testAttachmentCounter = 0;\r
+t.step(function () {\r
+\r
+    testAttachment = t.step_func(function (attachment, type) {\r
+        var j, foundAttachmenentCounter = 0;\r
+        if (type === mutable) {\r
+            for (j = 0; j < mutableMessage.attachments.length; j++) {\r
+                if (attachment.id === mutableMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, mutableMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, mutableMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, mutableMessage.id, type + " attachment.messageId (with message.id)");\r
+                    assert_equals(attachment.mimeType, mutableMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else if (type === consts) {\r
+            for (j = 0; j < constMessage.attachments.length; j++) {\r
+                if (attachment.id === constMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, constMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, constMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, constMessage.id, type + " attachment.messageId - (with message.id)");\r
+                    assert_equals(attachment.mimeType, constMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else {\r
+            assert_unreached("FIX your test - unknown type = " + type);\r
+        }\r
+\r
+        testAttachmentCounter++;\r
+        if (testAttachmentCounter === mutableMessage.attachments.length + constMessage.attachments.length) {\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    testMessage = t.step_func(function (messageToTest, originalMessage, type) {\r
+        var i;\r
+        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");\r
+        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");\r
+        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");\r
+\r
+        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");\r
+        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");\r
+\r
+        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");\r
+        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");\r
+        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");\r
+        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");\r
+\r
+        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");\r
+        assert_equals(messageToTest.hasAttachment, originalMessage.hasAttachment, type + " hasAttachment attribute.");\r
+        assert_equals(messageToTest.subject, originalMessage.subject, type + " subject attribute.");\r
+        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");\r
+        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");\r
+        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {\r
+            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");\r
+        } else {\r
+            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");\r
+        }\r
+\r
+        assert_equals(messageToTest.attachments.length, originalMessage.attachments.length, type + " incorrect length of attachments");\r
+        for (i = 0; i < messageToTest.attachments.length; i++) {\r
+            if (type === mutable) {\r
+                testAttachment(messageToTest.attachments[i], mutable);\r
+            } else if (type === consts) {\r
+                testAttachment(messageToTest.attachments[i], consts);\r
+            } else {\r
+                assert_unreached("FIX your test - unknown type = " + type);\r
+            }\r
+        }\r
+    });\r
+\r
+    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {\r
+        testMessage(loadedMutableMessage, mutableMessage, mutable);\r
+    });\r
+\r
+    loadMutableError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstSuccess = t.step_func(function (loadedConstMessage) {\r
+        testMessage(loadedConstMessage, constMessage, consts);\r
+    });\r
+\r
+    loadConstError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {\r
+        assert_equals(mutableMessages.length, 1, "incorrect number of messages.");\r
+        foundMutableMessage = mutableMessages[0];\r
+        if (foundMutableMessage.body.loaded) {\r
+            testMessage(foundMutableMessage, mutableMessage, mutable);\r
+        } else {\r
+            messageService.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);\r
+        }\r
+    });\r
+\r
+    findMutableMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConstMessagesSuccess = t.step_func(function (constMessages) {\r
+        assert_equals(constMessages.length, 1, "incorrect number of messages.");\r
+        foundConstMessage = constMessages[0];\r
+        if (foundConstMessage.body.loaded) {\r
+            testMessage(foundConstMessage, constMessage, consts);\r
+        } else {\r
+            messageService.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);\r
+        }\r
+    });\r
+\r
+    findConstMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+\r
+        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);\r
+        messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);\r
+\r
+        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);\r
+        messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);\r
+    });\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.to = [TEST_SMS_RECIPIENT_2];\r
+            mutableMessage.body.plainBody = "new mutableMessage.plainBody";\r
+            mutableMessage.isRead = true;\r
+            mutableMessage.subject = "new mutableMessage.subject";\r
+            mutableMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),\r
+                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess, updateError);\r
+        }\r
+\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;\r
+        mutableMessage = new tizen.Message("messaging.mms", initDictForMutableMessage);\r
+        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;\r
+        constMessage = new tizen.Message("messaging.mms", initDictForConstMessage);\r
+        constMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"), new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..01706f3
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.updateMessages method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, addDraftSuccess, addDraftError, exceptionName, updateSuccess, incorrectCallback, conversionTable, i;\r
+t.step(function () {\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_unreached("updateMessages() success callback invoked.");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], updateSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..a18403e
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", updateSuccess, incorrectCallback;\r
+t.step(function () {\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_unreached("updateMessages() success callback invoked.");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        incorrectCallback = {\r
+            onerror: t.step_func(function (error) {\r
+                assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);\r
+            })\r
+        };\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], updateSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_exist.html
new file mode 100755 (executable)
index 0000000..9bc64e8
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_exist\r
+//==== LABEL Check if method updateMessages of MessageStorage (MMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("updateMessages" in messageStorage, "No updateMessages method in messageStorage");\r
+        check_method_exists(messageStorage, "updateMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_messages_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_messages_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..6b4ff9e
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_messages_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_messages_TypeMismatch\r
+//==== LABEL Check type conversions for messages argument of MessageStorage.updateMessages method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName, updateSuccess, updateError, conversionTable, incorrectMessages, i;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        updateSuccess = t.step_func(function () {\r
+            assert_unreached("updateMessages() success callback invoked.");\r
+        });\r
+\r
+        updateError = t.step_func(function (error) {\r
+            assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+        });\r
+\r
+        conversionTable = getTypeConversionExceptions("array", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectMessages = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName}, function () {\r
+                messageStorage.updateMessages(incorrectMessages, updateSuccess, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessages);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_missarg.html
new file mode 100755 (executable)
index 0000000..25ad058
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.updateMessages (mms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            messageStorage.updateMessages();\r
+        }, exceptionName + " should be thrown - missing argument.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..ff0503d
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.updateMessages method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, addDraftSuccess, addDraftError, exceptionName, updateError, incorrectCallback, conversionTable, i;\r
+t.step(function () {\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], incorrectCallback, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..a93992f
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", updateError, incorrectCallback;\r
+t.step(function () {\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        incorrectCallback = {\r
+            onsuccess: t.step_func(function () {\r
+                assert_unreached("addDraftMessage() incorrect success callback invoked");\r
+            })\r
+        };\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], incorrectCallback, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_without_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..f1aa1e7
--- /dev/null
@@ -0,0 +1,230 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_without_errorCallback\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly without errorCallback argument (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, messageService, messageStorage,\r
+    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(),\r
+    mutableMessage, constMessage,\r
+    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },\r
+    initDictForMutableMessage = initDict, initDictForConstMessage = initDict,\r
+    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable", plainBodyToSetForConstMessage = plainBodyToSet + "_const",\r
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null,\r
+    updateSuccess, mutableMessagefilter, constMessagefilter,\r
+    findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE",\r
+    findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST",\r
+    loadMutableSuccess, loadMutableError,\r
+    loadConstSuccess, loadConstError,\r
+    testMessage, testAttachment, testAttachmentCounter = 0;\r
+t.step(function () {\r
+\r
+    testAttachment = t.step_func(function (attachment, type) {\r
+        var j, foundAttachmenentCounter = 0;\r
+        if (type === mutable) {\r
+            for (j = 0; j < mutableMessage.attachments.length; j++) {\r
+                if (attachment.id === mutableMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, mutableMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, mutableMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, mutableMessage.id, type + " attachment.messageId (with message.id)");\r
+                    assert_equals(attachment.mimeType, mutableMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else if (type === consts) {\r
+            for (j = 0; j < constMessage.attachments.length; j++) {\r
+                if (attachment.id === constMessage.attachments[j].id) {\r
+                    assert_equals(attachment.id, constMessage.attachments[j].id, type + " attachment.id");\r
+                    assert_equals(attachment.messageId, constMessage.attachments[j].messageId, type + " attachment.messageId");\r
+                    assert_equals(attachment.messageId, constMessage.id, type + " attachment.messageId - (with message.id)");\r
+                    assert_equals(attachment.mimeType, constMessage.attachments[j].mimeType, type + " attachment.mimeType");\r
+                    assert_type(attachment.filePath, "string",  type + " attachment.filePath is not a string");\r
+                    assert_not_equals(attachment.filePath, "", type + " attachment.filePath is empty");\r
+                    foundAttachmenentCounter++;\r
+                }\r
+            }\r
+            assert_equals(foundAttachmenentCounter, 1, type + " incorrect number of found attachement = " + foundAttachmenentCounter);\r
+        } else {\r
+            assert_unreached("FIX your test - unknown type = " + type);\r
+        }\r
+\r
+        testAttachmentCounter++;\r
+        if (testAttachmentCounter === mutableMessage.attachments.length + constMessage.attachments.length) {\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    testMessage = t.step_func(function (messageToTest, originalMessage, type) {\r
+        var i;\r
+        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");\r
+        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");\r
+        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");\r
+\r
+        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");\r
+        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");\r
+\r
+        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");\r
+        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");\r
+        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");\r
+        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");\r
+\r
+        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");\r
+        assert_equals(messageToTest.hasAttachment, originalMessage.hasAttachment, type + " hasAttachment attribute.");\r
+        assert_equals(messageToTest.subject, originalMessage.subject, type + " subject attribute.");\r
+        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");\r
+        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");\r
+        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {\r
+            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");\r
+        } else {\r
+            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");\r
+        }\r
+\r
+        assert_equals(messageToTest.attachments.length, originalMessage.attachments.length, type + " incorrect length of attachments");\r
+        for (i = 0; i < messageToTest.attachments.length; i++) {\r
+            if (type === mutable) {\r
+                testAttachment(messageToTest.attachments[i], mutable);\r
+            } else if (type === consts) {\r
+                testAttachment(messageToTest.attachments[i], consts);\r
+            } else {\r
+                assert_unreached("FIX your test - unknown type = " + type);\r
+            }\r
+        }\r
+    });\r
+\r
+    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {\r
+        testMessage(loadedMutableMessage, mutableMessage, mutable);\r
+    });\r
+\r
+    loadMutableError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstSuccess = t.step_func(function (loadedConstMessage) {\r
+        testMessage(loadedConstMessage, constMessage, consts);\r
+    });\r
+\r
+    loadConstError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {\r
+        assert_equals(mutableMessages.length, 1, "incorrect number of messages.");\r
+        foundMutableMessage = mutableMessages[0];\r
+        if (foundMutableMessage.body.loaded) {\r
+            testMessage(foundMutableMessage, mutableMessage, mutable);\r
+        } else {\r
+            messageService.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);\r
+        }\r
+    });\r
+\r
+    findMutableMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConstMessagesSuccess = t.step_func(function (constMessages) {\r
+        assert_equals(constMessages.length, 1, "incorrect number of messages.");\r
+        foundConstMessage = constMessages[0];\r
+        if (foundConstMessage.body.loaded) {\r
+            testMessage(foundConstMessage, constMessage, consts);\r
+        } else {\r
+            messageService.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);\r
+        }\r
+    });\r
+\r
+    findConstMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+\r
+        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);\r
+        messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);\r
+\r
+        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);\r
+        messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.to = [TEST_SMS_RECIPIENT_2];\r
+            mutableMessage.body.plainBody = "new mutableMessage.plainBody";\r
+            mutableMessage.isRead = true;\r
+            mutableMessage.subject = "new mutableMessage.subject";\r
+            mutableMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),\r
+                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+\r
+            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;\r
+        mutableMessage = new tizen.Message("messaging.mms", initDictForMutableMessage);\r
+        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;\r
+        constMessage = new tizen.Message("messaging.mms", initDictForConstMessage);\r
+        constMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"), new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpeg")];\r
+        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_without_successCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_mms_updateMessages_without_successCallback.html
new file mode 100755 (executable)
index 0000000..4ccf916
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_mms_updateMessages_without_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_mms_updateMessages_without_successCallback\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly without successCallback argument (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), mutableMessage, constMessage,\r
+    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },\r
+    initDictForMutableMessage = initDict, initDictForConstMessage = initDict,\r
+    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable",\r
+    plainBodyToSetForConstMessage = plainBodyToSet + "_const",\r
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,\r
+    returnedValue = null;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.to = [TEST_SMS_RECIPIENT_2];\r
+            mutableMessage.body.plainBody = "new mutableMessage.plainBody";\r
+            mutableMessage.isRead = true;\r
+            mutableMessage.subject = "new mutableMessage.subject";\r
+            mutableMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),\r
+                new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg")];\r
+            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage]);\r
+            assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty messaging array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;\r
+        mutableMessage = new tizen.Message("messaging.mms", initDictForMutableMessage);\r
+        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;\r
+        constMessage = new tizen.Message("messaging.mms", initDictForConstMessage);\r
+        constMessage.attachments = [new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"),\r
+            new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_noise.mp3", "audio/mp3"), new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "image/jpg")];\r
+        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_notexist.html
new file mode 100755 (executable)
index 0000000..c0b9399
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessageStorage exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA NIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessageStorage");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener.html
new file mode 100755 (executable)
index 0000000..aaad9ad
--- /dev/null
@@ -0,0 +1,105 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageStorage_removeChangeListener\r
+//==== LABEL Check if MessageStorage.removeChangeListener method works properly\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message1, message2, listenerId, i,\r
+    addDraftSuccess, addDraftError, messageChangeCallback, returnedValue = null;\r
+\r
+t.step(function () {\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            if (listenerId !== null){\r
+                service.messageStorage.removeChangeListener(listenerId);\r
+            }\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    messageChangeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array");\r
+            assert_greater_than(addedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < addedMessages.length; i++) {\r
+                if (addedMessages[i].id === message1.id) {\r
+                    returnedValue = service.messageStorage.removeChangeListener(listenerId);\r
+                    assert_equals(returnedValue, undefined, "Incorrect value returned.");\r
+                    listenerId = null;\r
+\r
+                    service.messageStorage.addDraftMessage(message2, addDraftSuccess, addDraftError);\r
+                }\r
+                assert_not_equals(addedMessages[i].id, message2.id, "second message is added");\r
+            }\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        listenerId = service.messageStorage.addMessagesChangeListener(messageChangeCallback);\r
+\r
+        message1 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        message2 = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message1, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..b2707c8
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeChangeListener_exist\r
+//==== LABEL Check if method removeChangeListener in MessageStorage\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        assert_true("removeChangeListener" in services[0].messageStorage, "Messaging.MessageStorage.removeChangeListener method does not exist");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forconversations.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forconversations.html
new file mode 100755 (executable)
index 0000000..8fbfdec
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_forconversations</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeChangeListener_forconversations\r
+//==== LABEL Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+      listenerId, listener, serviceSuccess, serviceError, service;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        conversationsupdated: t.step_func(function (conversations) {\r
+        }),\r
+        conversationsadded: t.step_func(function (conversations) {\r
+        }),\r
+        conversationsremoved: t.step_func(function (conversations) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);\r
+        service.messageStorage.removeChangeListener(listenerId);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forconversations_email.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forconversations_email.html
new file mode 100755 (executable)
index 0000000..e0d39f1
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_forconversations_email</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeChangeListener_forconversations_email\r
+//==== LABEL Check if MessageStorage::removeChangeListener method works properly - for conversation listener (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+      listenerId, listener, serviceSuccess, serviceError, service, returnValue;\r
+\r
+t.step(function () {\r
+\r
+    listener = {\r
+        conversationsupdated: t.step_func(function (conversations) {\r
+        }),\r
+        conversationsadded: t.step_func(function (conversations) {\r
+        }),\r
+        conversationsremoved: t.step_func(function (conversations) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);\r
+        returnValue = service.messageStorage.removeChangeListener(listenerId);\r
+        assert_equals(returnValue, undefined, "Incorrect returned value.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forfolder.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forfolder.html
new file mode 100755 (executable)
index 0000000..ff0c0ea
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!---->\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_forfolder</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeChangeListener_forfolder\r
+//==== LABEL Check if removeChangeListener method removes listener added by addFoldersChangeListener method\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    listener, serviceSuccess, serviceError, listenerId, service;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        foldersupdated: t.step_func(function (folders) {\r
+        }),\r
+        foldersadded: t.step_func(function (folders) {\r
+        }),\r
+        foldersremoved: t.step_func(function (folders) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addFoldersChangeListener(listener);\r
+        service.messageStorage.removeChangeListener(listenerId);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forfolder_email.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_forfolder_email.html
new file mode 100755 (executable)
index 0000000..e908102
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Zhao Dong<dong82.zhao@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_forfolder_email</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeChangeListener_forfolder_email\r
+//==== LABEL Check if removeChangeListener method removes listener added by addFoldersChangeListener method(email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    listener, serviceSuccess, serviceError, listenerId, service, returnValue;\r
+\r
+t.step(function () {\r
+\r
+    listener = {\r
+        foldersupdated: t.step_func(function (folders) {\r
+        }),\r
+        foldersadded: t.step_func(function (folders) {\r
+        }),\r
+        foldersremoved: t.step_func(function (folders) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addFoldersChangeListener(listener);\r
+        returnValue = service.messageStorage.removeChangeListener(listenerId);\r
+        assert_equals(returnValue, undefined, "Incorrect returned value.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_formessages.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_formessages.html
new file mode 100755 (executable)
index 0000000..2f5ac2b
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_formessages</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeChangeListener_formessages\r
+//==== LABEL Check if removeChangeListener method removes listener added by addMessagesChangeListener method\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    listenerId, listener, serviceSuccess, serviceError, service;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesupdated: t.step_func(function (messages) {\r
+        }),\r
+        messagesadded: t.step_func(function (messages) {\r
+        }),\r
+        messagesremoved: t.step_func(function (messages) {\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addMessagesChangeListener(listener);\r
+        service.messageStorage.removeChangeListener(listenerId);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_valid_argument.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_valid_argument.html
new file mode 100755 (executable)
index 0000000..9310fe0
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_valid_argument</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeChangeListener_valid_argument\r
+//==== LABEL Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    listenerId, service, serviceSuccess, serviceError, listener;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        foldersadded: function (folders) {\r
+        },\r
+        foldersupdated: function (folders) {\r
+        },\r
+        foldersremoved: function (folders) {\r
+        }\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addFoldersChangeListener(listener);\r
+        service.messageStorage.removeChangeListener(listenerId);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_with_watchId.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeChangeListener_with_watchId.html
new file mode 100755 (executable)
index 0000000..7fc0b43
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeChangeListener_with_watchId</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_removeChangeListener_with_watchId\r
+//==== LABEL Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess, foldersChangeCallback, watchId;\r
+t.step(function () {\r
+\r
+    foldersChangeCallback = {\r
+        foldersupdated: t.step_func(),\r
+        foldersadded: t.step_func(),\r
+        foldersremoved: t.step_func()\r
+    };\r
+\r
+    onSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "type of services is not Array");\r
+        if (services.length > 0) {\r
+            service = services[0];\r
+            watchId = service.messageStorage.addFoldersChangeListener(foldersChangeCallback);\r
+            service.messageStorage.removeChangeListener(watchId);\r
+        } else {\r
+            assert_unreached("list of services is empty");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", onSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations.html
new file mode 100755 (executable)
index 0000000..8a5af81
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations\r
+//==== LABEL Check if MessageStorage.removeConversations method works properly\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), returnedValue = null;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    returnedValue = service.messageStorage.removeConversations([conversation]);\r
+    assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_null.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_null.html
new file mode 100755 (executable)
index 0000000..8ddefee
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_removeConversations_arg_null</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_removeConversations_arg_null\r
+//==== LABEL Check MessageStorage.removeConversations method when conversations argument is null (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, removeError, removeSuccess, service;\r
+t.step(function () {\r
+\r
+    removeSuccess = t.step_func(function () {\r
+        assert_unreached("removeConversations() success callback invoked.");\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.removeConversations(null, removeSuccess, removeError);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_undefined.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_arg_undefined.html
new file mode 100755 (executable)
index 0000000..af7d2cd
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_removeConversations_arg_undefined</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_removeConversations_arg_undefined\r
+//==== LABEL Check MessageStorage.removeConversations method when conversations argument is undefined (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, removeError, removeSuccess, service;\r
+t.step(function () {\r
+\r
+    removeSuccess = t.step_func(function () {\r
+        assert_unreached("removeConversations() success callback invoked");\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.removeConversations(undefined, removeSuccess, removeError);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_conversations_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_conversations_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..c71bbc3
--- /dev/null
@@ -0,0 +1,60 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_conversations_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_conversations_TypeMismatch\r
+//==== LABEL Check type conversions for conversations argument of MessageStorage.removeConversations method\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), conversionTable, i,\r
+    exceptionName, conversations;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    conversionTable = getTypeConversionExceptions("array", false);\r
+    for (i = 0; i < conversionTable.length; i++) {\r
+        conversations = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName}, function () {\r
+            service.messageStorage.removeConversations(conversations);\r
+        }, "Given incorrect conversations");\r
+    }\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_conversations_number.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_conversations_number.html
new file mode 100755 (executable)
index 0000000..275ac09
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_removeConversations_conversations_number</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_removeConversations_conversations_number\r
+//==== LABEL Check MessageStorage.removeConversations method when conversations argument is a number (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, removeError, removeSuccess, service;\r
+t.step(function () {\r
+    removeSuccess = t.step_func(function () {\r
+        assert_unreached("removeConversations() success callback invoked");\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.removeConversations(1, removeSuccess, removeError);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..1cc5ae3
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_errorCallback_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.removeConversations method\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    conversionTable, successCallback, incorrectErrorCallback, exceptionName;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+\r
+    successCallback = t.step_func(function () {\r
+        assert_unreached("removeConversations() success callback invoked.");\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("functionObject", true);\r
+    for (i = 0; i < conversionTable.length; i++) {\r
+        incorrectErrorCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName}, function () {\r
+            service.messageStorage.removeConversations([conversation], successCallback, incorrectErrorCallback);\r
+        }, exceptionName + " should be thrown - given incorrect error callback.");\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..b56c493
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_errorCallback_invalid_cb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.removeConversations method throws exception when errorCallback is invalid\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    successCallback, errorCallback;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+\r
+    successCallback = t.step_func(function () {\r
+        assert_unreached("removeConversations() success callback invoked.");\r
+    });\r
+\r
+    errorCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("removeConversations() error callback invoked.");\r
+        })\r
+    };\r
+\r
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+        service.messageStorage.removeConversations([conversation], successCallback, errorCallback);\r
+    }, "TypeMismatchError should be thrown - given incorrect error callback.");\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_foremail.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_foremail.html
new file mode 100755 (executable)
index 0000000..afbd89c
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_foremail</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageStorage_removeConversations_foremail\r
+//==== PRIORITY P1\r
+//==== LABEL Check if MessageStorage.removeConversations method works properly (email)\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t =async_test(document.title, {timeout: 90000}), returnedValue;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    returnedValue = service.messageStorage.removeConversations([conversation]);\r
+    assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_formms.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_formms.html
new file mode 100755 (executable)
index 0000000..a96b453
--- /dev/null
@@ -0,0 +1,108 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_formms</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: MessageStorage_removeConversations_formms\r
+//==== PRIORITY P1\r
+//==== LABEL Check if MessageStorage.removeConversations works properly for mms\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, message, removeConversationsSuccess, removeConversationsError,\r
+    findConversationsSuccess, findConversationsError, messageSentSuccess, messageSentError,\r
+    serviceSuccess, serviceError, removeAllSuccess, returnedValue = null;\r
+\r
+t.step(function () {\r
+    removeConversationsSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    removeConversationsError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        returnedValue = service.messageStorage.removeConversations(conversations, removeConversationsSuccess, removeConversationsError);\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    messageSentSuccess = t.step_func(function (recipients) {\r
+        service.messageStorage.findConversations(MMStypeFilter, findConversationsSuccess, findConversationsError);\r
+    });\r
+\r
+    messageSentError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, service, message, messageSentSuccess, messageSentError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_forsms.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_forsms.html
new file mode 100755 (executable)
index 0000000..6d2a9fc
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_forsms</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_forsms\r
+//==== LABEL Check if MessageStorage.removeConversations method works properly with all callbacks (sms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, serviceError, serviceSuccess, filter, findError, findSuccess, removeError, removeSuccess,\r
+    onSuccess;\r
+\r
+t.step(function () {\r
+    removeSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        service.messageStorage.removeConversations(conversations, removeSuccess, removeError);\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    onSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        service.messageStorage.findConversations(filter, findSuccess, findError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, onSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_invalid_arg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_invalid_arg.html
new file mode 100755 (executable)
index 0000000..2079e11
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_invalid_arg</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_removeConversations_invalid_arg\r
+//==== LABEL Check MessageStorage.removeConversations method when conversations argument is invalid (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess;\r
+t.step(function () {\r
+\r
+    onSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "type of services is not Array");\r
+        if (services.length > 0) {\r
+            service = services[0];\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                service.messageStorage.removeConversations("sth");\r
+            });\r
+        } else {\r
+            assert_unreached("list of services is empty");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", onSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_missarg.html
new file mode 100755 (executable)
index 0000000..fa76c9b
--- /dev/null
@@ -0,0 +1,54 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_missarg</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.removeConversations\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000});\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+        service.messageStorage.removeConversations();\r
+    });\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_missarg_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_missarg_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..334ad6d
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_missarg_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_removeConversations_missarg_TypeMismatch\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.removeConversations (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess;\r
+t.step(function () {\r
+\r
+    onSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "type of services is not Array");\r
+        if (services.length > 0) {\r
+            service = services[0];\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                service.messageStorage.removeConversations();\r
+            });\r
+        } else {\r
+            assert_unreached("list of services is empty");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", onSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_sms.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_sms.html
new file mode 100755 (executable)
index 0000000..e886311
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_sms</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_sms\r
+//==== PRIORITY P1\r
+//==== LABEL Check if MessageStorage.removeConversations method works properly (sms)\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, msg, filter, removeSuccess, removeError, findSuccess, findError,\r
+    sendSuccess, serviceSuccess, serviceError, sendError;\r
+\r
+t.step(function () {\r
+    removeSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        service.messageStorage.removeConversations(conversations, removeSuccess, removeError);\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        service.messageStorage.findConversations(filter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        msg = new tizen.Message("messaging.sms", {plainBody: "test.", to: [TEST_SMS_RECIPIENT]});\r
+        sendMessage(t, service, msg, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..fe02791
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_successCallback_TypeMismatch</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.removeConversations method\r
+//==== PRIORITY: P2\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    conversionTable, incorrectCallback, exceptionName, i;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+    conversionTable = getTypeConversionExceptions("functionObject", true);\r
+    for (i = 0; i < conversionTable.length; i++) {\r
+        incorrectCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName}, function () {\r
+            service.messageStorage.removeConversations([conversation], incorrectCallback);\r
+        }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..de0a211
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_successCallback_invalid_cb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.removeConversations method throws exception when successCallback is invalid\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    incorrectSuccessCallback, exceptionName = "TypeMismatchError";\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+\r
+    incorrectSuccessCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("removeConversations() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    assert_throws({name: exceptionName}, function () {\r
+        service.messageStorage.removeConversations([conversation], incorrectSuccessCallback);\r
+    }, exceptionName + " should be thrown - given incorrect successCallback.");\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_number.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_successCallback_number.html
new file mode 100755 (executable)
index 0000000..d6de148
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_removeConversations_successCallback_number</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_removeConversations_successCallback_number\r
+//==== LABEL Check MessageStorage.removeConversations method when successCallback is a number (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, toFilter, sortMode, limit,\r
+    findConversationsSuccess, findConversationsError, foundConversation, sendSuccess, sendError, newMessage,\r
+    removeError, service;\r
+t.step(function () {\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "no conversations found");\r
+        foundConversation = conversations[0];\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.removeConversations(foundConversation, 1, removeError);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        sortMode = new tizen.SortMode("to", "ASC");\r
+        limit = 10;\r
+        service.messageStorage.findConversations(toFilter, findConversationsSuccess, findConversationsError, sortMode, limit);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        newMessage = new tizen.Message(service.type, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "[Test][findConversations] " + (new Date()).toString()\r
+        });\r
+\r
+        sendMessage(t, service, newMessage, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..3b6464a
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_with_errorCallback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_with_errorCallback\r
+//==== LABEL Check if MessageStorage.removeConversations method works properly with errorCallback argument\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    removeSuccess, removeError, returnedValue = null, findFilter, findSuccessAfterRemove, findErrorAfterRemove;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+\r
+    findSuccessAfterRemove = t.step_func(function (conversations) {\r
+        assert_equals(conversations.length, 0, "Conversations not removed");\r
+        t.done();\r
+    });\r
+\r
+    findErrorAfterRemove = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+\r
+        findFilter = new tizen.AttributeFilter("id", "EXACTLY", message.conversationId);\r
+        service.messageStorage.findConversations(findFilter, findSuccessAfterRemove, findErrorAfterRemove);\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    returnedValue = service.messageStorage.removeConversations([conversation], removeSuccess, removeError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_with_successCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeConversations_with_successCallback.html
new file mode 100755 (executable)
index 0000000..ccbfee5
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Beata Koziarek <b.koziarek@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeConversations_with_successCallback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeConversations_with_successCallback\r
+//==== LABEL Check if MessageStorage.removeConversations method works properly with successCallback argument\r
+//==== PRIORITY: P1\r
+//==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    removeSuccess, returnedValue = null;\r
+\r
+message_conversation_test(t, function (service, message, conversation) {\r
+\r
+    removeSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    returnedValue = service.messageStorage.removeConversations([conversation], removeSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessage_emailwithouterrcb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessage_emailwithouterrcb.html
new file mode 100755 (executable)
index 0000000..dc2ce74
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessage_emailwithouterrcb</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_removeMessage_emailwithouterrcb\r
+//==== LABEL Check if MessageStorage.removeMessages method works properly without errorCallback\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError, filter,\r
+    findSuccess, findError, removeSuccess;\r
+\r
+t.step(function () {\r
+    removeSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+\r
+        service.messageStorage.removeMessages(messages, removeSuccess);\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email.html
new file mode 100755 (executable)
index 0000000..a44cd8f
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email\r
+//==== LABEL Check if MessageStorage.removeMessages method works properly without non-optional arguments (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMINA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, returnedValue = null,\r
+    addDraftSuccess, addDraftError;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        returnedValue = service.messageStorage.removeMessages([message]);\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..ce61ffb
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.removeMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    successCallback, conversionTable, param, exceptionName, i;\r
+\r
+t.step(function () {\r
+    successCallback = t.step_func(function () {\r
+        assert_unreached("Invalid errorCallback invoked");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            param = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.removeMessages([message], successCallback, param);\r
+            }, exceptionName + " should be thrown - given incorrect.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..9bd34f3
--- /dev/null
@@ -0,0 +1,87 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.removeMessages method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    successCallback, incorrectCallback;\r
+\r
+t.step(function () {\r
+    successCallback = t.step_func(function () {\r
+        assert_unreached("Invalid errorCallback invoked");\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("Invalid errorCallback invoked");\r
+        })\r
+    };\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.removeMessages([message], successCallback, incorrectCallback);\r
+        }, "Incorrect error callback.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_messages_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_messages_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..f7f3e56
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_messages_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_messages_TypeMismatch\r
+//==== LABEL Check type conversions for messages argument of MessageStorage.removeMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    conversionTable, param, exceptionName, i;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("array", false);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            param = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.removeMessages(param);\r
+            }, exceptionName + " should be thrown - given incorrect.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_missarg.html
new file mode 100755 (executable)
index 0000000..7f57cea
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.removeMessages (email)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.removeMessages();\r
+        }, "Missing argument.");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..7fb0114
--- /dev/null
@@ -0,0 +1,85 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.removeMessages method (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    conversionTable, param, exceptionName, i;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            param = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                service.messageStorage.removeMessages([message], param);\r
+            }, exceptionName + " should be thrown - given incorrect.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..686556b
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.removeMessages method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, addDraftSuccess, addDraftError,\r
+    incorrectCallback;\r
+\r
+t.step(function () {\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("Invalid errorCallback invoked");\r
+        })\r
+    };\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            service.messageStorage.removeMessages([message], incorrectCallback);\r
+        }, "Given incorrect success callback.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..3b1fc32
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_with_errorCallback\r
+//==== LABEL Check if MessageStorage.removeMessages method works properly with errorCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, returnedValue = null,\r
+    addDraftSuccess, addDraftError, removeError, removeSuccess,\r
+    filter, findSuccess, findError, addedMessageId;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 0, "Message not removed");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", addedMessageId);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addedMessageId = message.id;\r
+        returnedValue = service.messageStorage.removeMessages([message], removeSuccess, removeError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_with_successCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_removeMessages_email_with_successCallback.html
new file mode 100755 (executable)
index 0000000..739932e
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Tomasz Paciorek <t.paciorek@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_removeMessages_email_with_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_removeMessages_email_with_successCallback\r
+//==== LABEL Check if MessageStorage.removeMessages method works properly with successCallback argument (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, message, returnedValue = null,\r
+    addDraftSuccess, addDraftError, removeSuccess, filter, findSuccess, findError, addedMessageId;\r
+\r
+t.step(function () {\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 0, "Message not removed");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", addedMessageId);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addedMessageId = message.id;\r
+        returnedValue = service.messageStorage.removeMessages([message], removeSuccess);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name: " + error.name + ", msg: " + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..946a071
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch\r
+//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectChangeListener, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectChangeListener  = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addConversationsChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..334997f
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTL\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectListeners, i, exceptionName, incorrectChangeListener;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        incorrectListeners = getListenerConversionExceptions(["conversationsadded", "conversationsupdated", "conversationsremoved"]);\r
+        for(i = 0; i < incorrectListeners.length; i++) {\r
+            incorrectChangeListener = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addConversationsChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener.");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addConversationsChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..a7de2e9
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addConversationsChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addConversationsChangeListener_exist\r
+//==== LABEL Check if method addConversationsChangeListener of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addConversationsChangeListener" in messageStorage, "No addConversationsChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "addConversationsChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage.html
new file mode 100755 (executable)
index 0000000..4ce191d
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), returnedValue = null,\r
+    addDraftSuccess, addDraftError, filter, findMessagesSuccess, findMessagesError;\r
+t.step(function () {\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Received incorrect number of messages");\r
+        assert_equals(messages[0].body.plainBody, plainBodyToSet, "plainBody attribute is incorrect.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+        filter = new tizen.AttributeFilter("body.plainBody", "EXACTLY", plainBodyToSet);\r
+        messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});\r
+        returnedValue = messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..4d1f950
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, plainBodyToSet = "plainBody", addDraftSuccess, conversionTable, i, exceptionName, incorrectCallback;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage() success callback invoked.");\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet});\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..96958f2
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, plainBodyToSet = "plainBody", addDraftSuccess, incorrectCallback, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage() success callback invoked.");\r
+    });\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function (error) {\r
+            assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet});\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_exist.html
new file mode 100755 (executable)
index 0000000..e22163a
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_exist\r
+//==== LABEL Check if method addDraftMessage of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addDraftMessage" in messageStorage, "No addDraftMessage method in messageStorage");\r
+        check_method_exists(messageStorage, "addDraftMessage");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..048a6ec
--- /dev/null
@@ -0,0 +1,81 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_message_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_message_TypeMismatch\r
+//==== LABEL Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectMessage, conversionTable, i, exceptionName, addDraftSuccess, addDraftError;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage success callback invoked.");\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectMessage = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addDraftMessage(incorrectMessage, addDraftSuccess, addDraftError);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessage);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_message_invalid_obj.html
new file mode 100755 (executable)
index 0000000..9a4619f
--- /dev/null
@@ -0,0 +1,93 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_message_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_message_invalid_obj\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    fakeMessage, exceptionName = "TypeMismatchError", addDraftSuccess, addDraftError;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_unreached("addDraftMessage success callback invoked.");\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        fakeMessage = {\r
+            id: "123456",\r
+            conversationId: null,\r
+            folderId: null,\r
+            type: "messaging.sms",\r
+            timestamp: null,\r
+            from: null,\r
+            to: [ TEST_SMS_RECIPIENT ],\r
+            body: {\r
+                messageId: "123456",\r
+                loaded: true,\r
+                plainBody: "Sample content"\r
+            },\r
+            isRead: false,\r
+            inResponseTo: null,\r
+            messageStatus: ""\r
+        };\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            messageStorage.addDraftMessage(fakeMessage, addDraftSuccess, addDraftError);\r
+        }, exceptionName + " should be thrown - given incorrect Message");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_missarg.html
new file mode 100755 (executable)
index 0000000..f3891ee
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage();\r
+            }, exceptionName + " should be thrown - missing argument");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..d1fcfed
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, plainBodyToSet = "plainBody", incorrectCallback, addDraftError, conversionTable, exceptionName, i;\r
+t.step(function () {\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet});\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);\r
+            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..eb0331c
--- /dev/null
@@ -0,0 +1,78 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, plainBodyToSet = "plainBody", incorrectCallback, addDraftError, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet});\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);\r
+            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..0c06546
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_without_errorCallback\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), returnedValue = null,\r
+    addDraftSuccess, filter, findMessagesSuccess, findMessagesError;\r
+t.step(function () {\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Received incorrect number of messages");\r
+        assert_equals(messages[0].body.plainBody, plainBodyToSet, "plainBody attribute is incorrect.");\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("body.plainBody", "EXACTLY", plainBodyToSet);\r
+        messageStorage.findMessages(filter, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet, to: [TEST_SMS_RECIPIENT]});\r
+        returnedValue = messageStorage.addDraftMessage(message, addDraftSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_successCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addDraftMessage_without_successCallback.html
new file mode 100755 (executable)
index 0000000..a80d943
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addDraftMessage_without_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addDraftMessage_without_successCallback\r
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, returnedValue = null;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        returnedValue = messageStorage.addDraftMessage(message);\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..66c6bf0
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addFoldersChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addFoldersChangeListener_exist\r
+//==== LABEL Check if method addFoldersChangeListener of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addFoldersChangeListener" in messageStorage, "No addFoldersChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "addFoldersChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..6089b85
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addFoldersChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MTL\r
+\r
+setup({timeout: 300000});\r
+\r
+var t = async_test(document.title, {timeout: 300000}), serviceSuccess, serviceError, messageService, messageStorage, \r
+    incorrectListeners, i, incorrectChangeListener, exceptionName;\r
+\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        incorrectListeners = getListenerConversionExceptions(["conversationsadded", "conversationsupdated", "conversationsremoved"]);\r
+        for(i = 0; i < incorrectListeners.length; i++) {\r
+            incorrectChangeListener = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addConversationsChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+       assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..d7814ab
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addMessagesChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addMessagesChangeListener_exist\r
+//==== LABEL Check if method addMessagesChangeListener of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("addMessagesChangeListener" in messageStorage, "No addMessagesChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "addMessagesChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..028b02c
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    changeCallback, conversionTable, incorrectFilter, exceptionName, i;\r
+t.step(function () {\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("memssagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectFilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName}, function () {\r
+                messageStorage.addMessagesChangeListener(changeCallback, incorrectFilter);\r
+            }, exceptionName + " should be thrown - given incorrect filter: " + incorrectFilter);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..e4930b3
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch\r
+//==== LABEL Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectChangeListener, exceptionName, i, conversionTable;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectChangeListener  = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addMessagesChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..7bdc83a
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTL\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    incorrectListeners, incorrectChangeListener, exceptionName, i;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        incorrectListeners = getListenerConversionExceptions(["messagesadded", "messagesupdated", "messagesremoved"]);\r
+        for(i = 0; i < incorrectListeners.length; i++) {\r
+            incorrectChangeListener = incorrectListeners[i][0];\r
+            exceptionName = incorrectListeners[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.addMessagesChangeListener(incorrectChangeListener);\r
+                }, exceptionName + " should be thrown - given incorrect listener.");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_missarg.html
new file mode 100755 (executable)
index 0000000..9e0dce1
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addMessagesChangeListener_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addMessagesChangeListener_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.addMessagesChangeListener();\r
+            }, exceptionName + " should be thrown - missing argument.");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_with_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_with_filter.html
new file mode 100755 (executable)
index 0000000..01174b3
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addMessagesChangeListener_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addMessagesChangeListener_with_filter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),\r
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),\r
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),\r
+    smsMessageInitDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },\r
+    matchInitDict = smsMessageInitDict, mismatchInitDict = smsMessageInitDict,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, loadSuccess, loadError;\r
+t.step(function () {\r
+\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);\r
+            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+        assert_type(subscriptionIdentifier, "long", "Incorrect returned value.");\r
+\r
+        mismatchInitDict.plainBody = mismatchPlainBodyToSet;\r
+        mismatchMessage = new tizen.Message("messaging.sms", mismatchInitDict);\r
+        messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);\r
+\r
+        matchInitDict.plainBody = matchPlainBodyToSet;\r
+        matchMessage = new tizen.Message("messaging.sms", matchInitDict);\r
+        messageStorage.addDraftMessage(matchMessage, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_without_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_addMessagesChangeListener_without_filter.html
new file mode 100755 (executable)
index 0000000..34f85b2
--- /dev/null
@@ -0,0 +1,111 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_addMessagesChangeListener_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_addMessagesChangeListener_without_filter\r
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MMINA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, message, changeCallback, addDraftError, loadSuccess, loadError, plainBody;\r
+t.step(function () {\r
+\r
+    //cleanup after TC\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, plainBody, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, message.id, "Incorrect id.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);\r
+            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+        assert_type(subscriptionIdentifier, "long", "Incorrect returned value.");\r
+\r
+        plainBody = generatePlainBody();\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: plainBody\r
+        });\r
+        messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_extend.html
new file mode 100755 (executable)
index 0000000..e170a47
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface MessageStorage (SMS) can be extended with new property\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        check_extensibility(messageStorage);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations.html
new file mode 100755 (executable)
index 0000000..57ca491
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations\r
+//==== LABEL Check if MessageStorage.findConversations method works properly (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError,\r
+    addSuccess, addError,\r
+    conversationSuccess, conversationError,\r
+    service, newMessage, filter, returnedValue = null, removeAllSuccess;\r
+t.step(function () {\r
+\r
+    conversationSuccess = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "conversations");\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+\r
+        assert_equals(returnedValue, undefined, "findConversations should return undefined");\r
+        t.done();\r
+    });\r
+\r
+    conversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", newMessage.conversationId);\r
+\r
+        returnedValue = service.messageStorage.findConversations(filter, conversationSuccess, conversationError);\r
+    });\r
+\r
+    addError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        newMessage = new tizen.Message(service.type, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "[Test][findConversations] " + (new Date()).toString()\r
+        });\r
+\r
+        service.messageStorage.addDraftMessage(newMessage, addSuccess, addError);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..4ce60b2
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectCallback, conversionTable, exceptionName;\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({\r
+                name: exceptionName\r
+            }, function () {\r
+                services[0].messageStorage.findConversations(toFilter, findConversationsCallback, incorrectCallback);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..4fa03d0
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, getMessagingServicesCallback,\r
+    onError, invalidCallback, conversionTable;\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    invalidCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("Unexpected onerror");\r
+        })\r
+    };\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(toFilter, findConversationsCallback, invalidCallback);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_exist.html
new file mode 100755 (executable)
index 0000000..8888226
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findConversations_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findConversations_exist\r
+//==== LABEL Check if method findConversations of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("findConversations" in messageStorage, "No findConversations method in messageStorage");\r
+        check_method_exists(messageStorage, "findConversations");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (e) {\r
+        assert_unreached("getMessageServices() error callback: name:" + e.name + ", msg:" + e.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..909778f
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.findConversations method (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectFilter, conversionTable, exceptionName;\r
+t.step(function () {\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_not_equals(services.length, 0, "getMessageServices services.length");\r
+\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectFilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                services[0].messageStorage.findConversations(incorrectFilter, findConversationsCallback, errorCallback);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_id.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_id.html
new file mode 100755 (executable)
index 0000000..b680099
--- /dev/null
@@ -0,0 +1,114 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_id</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_filter_id\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by id (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, returnedValue = null,\r
+    addDraftSuccess, addDraftError,\r
+    findMessageSuccess, findMessageError,\r
+    conversationSuccess, conversationError,\r
+    service, newMessage, convId, filter,\r
+    recipient = TEST_SMS_RECIPIENT;\r
+t.step(function () {\r
+\r
+    conversationSuccess = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "conversations is not an array");\r
+        assert_equals(conversations.length, 1, "should find exactly one conversation");\r
+        assert_equals(conversations[0].id, convId, "conversationId should match");\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    conversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Should find exactly one message");\r
+        convId = messages[0].conversationId;\r
+\r
+        filter = new tizen.AttributeFilter(\r
+            "id", "EXACTLY", convId);\r
+        returnedValue = service.messageStorage.findConversations(filter, conversationSuccess, conversationError);\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        service.messageStorage.findMessages(\r
+            new tizen.AttributeFilter("id", "EXACTLY", newMessage.id),\r
+            findMessageSuccess,\r
+            findMessageError\r
+        );\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        newMessage = new tizen.Message(service.type, {\r
+            to: [recipient],\r
+            plainBody: "[Test][findConversations] " + (new Date()).toString()\r
+        });\r
+\r
+        service.messageStorage.addDraftMessage(newMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_invalid_obj.html
new file mode 100755 (executable)
index 0000000..8d04d78
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_invalid_obj</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_filter_invalid_obj\r
+//==== LABEL Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, invalidFilter;\r
+t.step(function () {\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_not_equals(services.length, 0, "getMessageServices services.length");\r
+\r
+        invalidFilter = {\r
+            attributeName: "type",\r
+            matchFlag: "EXACTLY",\r
+            matchValue: services[0].type\r
+        };\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(invalidFilter, findConversationsCallback, errorCallback);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to.html
new file mode 100755 (executable)
index 0000000..94fe837
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_to</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_filter_to\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by to (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, returnedValue = null, sendSuccess,\r
+    sendError, conversationSuccess, conversationError, service, newMessage, filter, recipient = TEST_SMS_RECIPIENT;\r
+t.step(function () {\r
+\r
+    conversationSuccess = t.step_func(function (conversations) {\r
+        assert_type(conversations, "array", "conversations");\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        assert_not_equals(conversations[0].to[0].indexOf(TEST_SMS_RECIPIENT), -1,\r
+            "conversation.to should contain the value we were looking for");\r
+\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        t.done();\r
+    });\r
+\r
+    conversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", recipient);\r
+\r
+        returnedValue = service.messageStorage.findConversations(filter, conversationSuccess, conversationError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        newMessage = new tizen.Message(service.type, {\r
+            to: [recipient],\r
+            plainBody: "[Test][findConversations] " + (new Date()).toString()\r
+        });\r
+\r
+        service.sendMessage(newMessage, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_endswith.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_endswith.html
new file mode 100755 (executable)
index 0000000..ceb79a4
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_to_endswith</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findConversations_filter_to_endswith\r
+//==== LABEL Check if MessageStorage::findConversations method works properly with filter: to endswith.\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError,\r
+    addDraftSuccess, addDraftError,\r
+    conversationSuccess, conversationError,\r
+    service, newMessage, filter, sortMode, removeAllSuccess;\r
+\r
+t.step(function () {\r
+\r
+    conversationSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        t.done();\r
+    });\r
+\r
+    conversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "ENDSWITH", "0086");\r
+        sortMode = new tizen.SortMode("to", "ASC");\r
+        try {\r
+            service.messageStorage.findConversations(filter, conversationSuccess, conversationError, sortMode);\r
+        } catch (e) {\r
+            assert_unreached("findConversations() error callback: name:" + e.name + ", msg:" + e.message);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        newMessage = new tizen.Message(service.type, {\r
+            plainBody: "I will arrive in 10 minutes.",\r
+            to: [ "+18606666666", "+18608888888", "+10086"]\r
+        });\r
+        service.messageStorage.addDraftMessage(newMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_exist.html
new file mode 100755 (executable)
index 0000000..b4c5d53
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_to_exist</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findConversations_filter_to_exist\r
+//==== LABEL Check if MessageStorage::findConversations method works properly with filter: to exist.\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError,\r
+    addDraftSuccess, addDraftError,\r
+    conversationSuccess, conversationError,\r
+    service, newMessage, filter, sortMode, removeAllSuccess;\r
+\r
+t.step(function () {\r
+\r
+    conversationSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        t.done();\r
+    });\r
+\r
+    conversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "EXISTS", "008");\r
+        sortMode = new tizen.SortMode("to", "ASC");\r
+        service.messageStorage.findConversations(filter, conversationSuccess, conversationError, sortMode);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        newMessage = new tizen.Message(service.type, {\r
+            plainBody: "I will arrive in 10 minutes.",\r
+            to: [ "+18606666666", "+18608888888", "+10086"]\r
+        });\r
+        service.messageStorage.addDraftMessage(newMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_startswith.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_to_startswith.html
new file mode 100755 (executable)
index 0000000..b54cda2
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_to_startswith</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findConversations_filter_to_startswith\r
+//==== LABEL Check if MessageStorage::findConversations method works properly with filter: to startswith.\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError,\r
+    addDraftSuccess, addDraftError,\r
+    conversationSuccess, conversationError,\r
+    service, newMessage, filter, sortMode, removeAllSuccess;\r
+t.step(function () {\r
+\r
+    conversationSuccess = t.step_func(function (conversations) {\r
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");\r
+        t.done();\r
+    });\r
+\r
+    conversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "STARTSWITH", "+1008");\r
+        sortMode = new tizen.SortMode("to", "ASC");\r
+        try {\r
+            service.messageStorage.findConversations(filter, conversationSuccess, conversationError, sortMode);\r
+        } catch (e) {\r
+            assert_unreached("findConversations() error callback: name:" + e.name + ", msg:" + e.message);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        newMessage = new tizen.Message(service.type, {\r
+            plainBody: "I will arrive in 10 minutes.",\r
+            to: [ "+18606666666", "+18608888888", "+10086"]\r
+        });\r
+        service.messageStorage.addDraftMessage(newMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        removeAllMessages(t, service, removeAllSuccess);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_type.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_filter_type.html
new file mode 100755 (executable)
index 0000000..637f5b5
--- /dev/null
@@ -0,0 +1,104 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_filter_type</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_filter_type\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by type (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, returnedValue = null, sendSuccess,\r
+    sendError, resendError, conversationSuccess, conversationError, i, service, filter, newMessage;\r
+t.step(function () {\r
+\r
+    conversationSuccess = t.step_func(function (conversations) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+        assert_type(conversations, "array", "conversations");\r
+        assert_not_equals(conversations.length, 0,\r
+            "Converation of type " + service.type + " not found. Please prepare it.");\r
+        for (i = 0; i < conversations.length; i++) {\r
+            assert_equals(conversations[i].type, service.type, "conversation.type should match");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    conversationError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    resendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function (recipients) {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", service.type);\r
+\r
+        returnedValue = service.messageStorage.findConversations(filter, conversationSuccess, conversationError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        setTimeout(\r
+            t.step_func(function () {\r
+                service.sendMessage(newMessage, sendSuccess, resendError);\r
+            }, 10000));\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        newMessage = new tizen.Message(service.type, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "[Test][findConversations] " + (new Date()).toString()\r
+        });\r
+\r
+        service.sendMessage(newMessage, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_missarg.html
new file mode 100755 (executable)
index 0000000..3ea23b9
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findConversations_missarg</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.findConversations (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess, filter;\r
+t.step(function () {\r
+\r
+    filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+\r
+    onSuccess = t.step_func(function (services) {\r
+        assert_type(services, "array", "type of services is not Array");\r
+        if (services.length > 0) {\r
+            service = services[0];\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                service.messageStorage.findConversations(filter);\r
+            });\r
+        } else {\r
+            assert_unreached("list of services is empty");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", onSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..4d583cf
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_sort_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_sort_TypeMismatch\r
+//==== LABEL Check type conversions for sort argument of MessageStorage.findConversations method (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectSort, conversionTable, exceptionName;\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectSort = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                services[0].messageStorage.findConversations(toFilter, findConversationsCallback, errorCallback, incorrectSort);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_sort_invalid_obj.html
new file mode 100755 (executable)
index 0000000..68c4b0f
--- /dev/null
@@ -0,0 +1,83 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_sort_invalid_obj</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_sort_invalid_obj\r
+//==== LABEL Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback,\r
+    onError, invalidSort;\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+    findConversationsCallback = t.step_func(function () {\r
+        assert_unreached("Unexpected findConversationsCallback");\r
+    });\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    invalidSort = {\r
+        attributeName: "id",\r
+        order: "ASC"\r
+    };\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(toFilter, findConversationsCallback, errorCallback, invalidSort);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..51603a6
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, errorCallback, getMessagingServicesCallback,\r
+    onError, i, incorrectCallback, conversionTable, exceptionName;\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+\r
+        for (i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+                services[0].messageStorage.findConversations(toFilter, incorrectCallback, errorCallback);\r
+            });\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..c9f0dd1
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_successCallback_invalid_cb</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), toFilter, errorCallback, getMessagingServicesCallback,\r
+    onError, invalidCallback;\r
+t.step(function () {\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+    errorCallback = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback: " + err.message);\r
+    });\r
+\r
+    invalidCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("Unexpected onsuccess");\r
+        })\r
+    };\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "services not found");\r
+\r
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {\r
+            services[0].messageStorage.findConversations(toFilter, invalidCallback, errorCallback);\r
+        });\r
+\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected onError: " + err.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_limit.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_limit.html
new file mode 100755 (executable)
index 0000000..bb52680
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_with_limit</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_with_limit\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with limit (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, service, onSuccess, filter, limit = 1, findError, findSuccess;\r
+\r
+t.step(function () {\r
+\r
+    findSuccess = t.step_func(function (conversations) {\r
+        assert_equals(conversations.length, 1, "conversations.length should be 1 when using limit");\r
+        t.done();\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    onSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        service.messageStorage.findConversations(filter, findSuccess, findError, null, limit);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, onSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_offset.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_offset.html
new file mode 100755 (executable)
index 0000000..cc5a4a6
--- /dev/null
@@ -0,0 +1,114 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_with_offset</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findConversations_with_offset\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with offset (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), service, typeFilter, sortById = new tizen.SortMode("id",\r
+    "DESC"), i, conversationIDs = [], offsetIDs = [], serviceSuccess, serviceError, addSuccess, addSuccessCounter = 0,\r
+    findAllConversationsSuccess, findAllConversationsError, findConversationsSuccess, findConversationsError;\r
+t.step(function () {\r
+\r
+    findConversationsSuccess = t.step_func(function (conversations) {\r
+        for (i = 0; i < conversations.length; i++) {\r
+            offsetIDs.push(conversations[i].id);\r
+        }\r
+\r
+        assert_array_equals(offsetIDs, conversationIDs,\r
+            "offset=1 should give one less than all conversations;");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findConversationsError = t.step_func(function (error) {\r
+        assert_unreached("Second findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findAllConversationsSuccess = t.step_func(function (conversations) {\r
+        assert_true(conversations.length > 1,\r
+            "Please prepare at least two conversations (found " + conversations.length + ")");\r
+\r
+        // create an array of IDs, first one is skipped\r
+        for (i = 1; i < conversations.length; i++) {\r
+            conversationIDs.push(conversations[i].id);\r
+        }\r
+\r
+        service.messageStorage.findConversations(\r
+            typeFilter, findConversationsSuccess, findConversationsError, sortById, null, 1);\r
+    });\r
+\r
+    findAllConversationsError = t.step_func(function (error) {\r
+        assert_unreached("First findConversations() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addSuccess = t.step_func(function () {\r
+        addSuccessCounter++;\r
+        if (addSuccessCounter === 2) {\r
+            typeFilter = new tizen.AttributeFilter("type", "EXACTLY", service.type);\r
+\r
+            service.messageStorage.findConversations(\r
+                typeFilter, findAllConversationsSuccess, findAllConversationsError, sortById);\r
+        }\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT_2],\r
+            plainBody: generatePlainBody()\r
+        }, addSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_sort_to.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findConversations_with_sort_to.html
new file mode 100755 (executable)
index 0000000..6ea6a4a
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>MessageStorage_sms_findConversations_with_sort_to</title>\r
+<meta charset="utf-8">\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+\r
+//==== TEST: MessageStorage_sms_findConversations_with_sort_to\r
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, onError, toFilter, sortMode,\r
+    getMessagingServicesCallback;\r
+t.step(function () {\r
+\r
+    findConversationsCallback = t.step_func(function (conversations) {\r
+        t.done();\r
+    });\r
+\r
+    onError = t.step_func(function (err) {\r
+        assert_unreached("Unexpected errorCallback arrived: " + err.message);\r
+    });\r
+\r
+    toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);\r
+\r
+    sortMode = new tizen.SortMode("to", "ASC");\r
+\r
+    getMessagingServicesCallback = t.step_func(function (services) {\r
+        assert_not_equals(services.length, 0, "Can't find MessageService");\r
+\r
+        services[0].messageStorage.findConversations(toFilter, findConversationsCallback, onError, sortMode);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, onError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders.html
new file mode 100755 (executable)
index 0000000..c8dfbf1
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+        Le Qi <le82.qi@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findFolders</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findFolders\r
+//==== PRIORITY P1\r
+//==== LABEL Check if MessageStorage::findFolders method works properly with successCallback\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA MOA MR\r
+\r
+setup({timeout: 300000});\r
+\r
+var t = async_test(document.title, {timeout: 300000}), service, onSuccess,\r
+    serviceError, serviceSuccess, filter, foldersSuccess, foldersError;\r
+\r
+t.step(function () {\r
+    foldersSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    foldersError = t.step_func(function(error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    onSuccess = t.step_func(function() {\r
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);\r
+        try {\r
+            service.messageStorage.findFolders(filter, foldersSuccess, foldersError);\r
+        } catch (e) {\r
+            assert_unreached("find Folders fail, blocked" + e.message);\r
+        }\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        addSMSDraft(t, service, {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        }, onSuccess);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    try {\r
+        tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+    } catch (e) {\r
+        assert_unreached("get message service fail, blocked" + e.message);\r
+    }\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>
\ No newline at end of file
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findFolders_exist.html
new file mode 100755 (executable)
index 0000000..a66c05b
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findFolders_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findFolders_exist\r
+//==== LABEL Check if method findFolders of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findFolders M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("findFolders" in messageStorage, "No findFolders method in messageStorage");\r
+        check_method_exists(messageStorage, "findFolders");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages.html
new file mode 100755 (executable)
index 0000000..abd5d92
--- /dev/null
@@ -0,0 +1,117 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages\r
+//==== LABEL Check if MessageStorage.findMessages method works properly (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, i, loadMessageSuccess,\r
+    loadMessageError;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");\r
+        assert_equals(msg.conversationId, message.conversationId, "conversationId is not equal");\r
+        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");\r
+        assert_equals(msg.folderId, message.folderId, "folderId is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, message.type, "type is not equal");\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");\r
+        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");\r
+        assert_equals(msg.from, message.from, "from is not equal");\r
+        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");\r
+        for(i = 0; i < msg.to.length; i++) {\r
+            assert_equals(msg.to[i], message.to[i], "to is not equal");\r
+        }\r
+        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");\r
+        assert_equals(msg.body.messageId, message.body.messageId, "body.messageId is not equal");\r
+        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");\r
+        assert_equals(msg.body.loaded, message.body.loaded, "loaded is not equal");\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");\r
+        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");\r
+        assert_equals(msg.isRead, message.isRead, "isRead is not equal");\r
+        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");\r
+        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");\r
+\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_true(msg.length === 1, "Received incorrect number of messages: " + msg.length);\r
+        messageService.loadMessageBody(msg[0], loadMessageSuccess, loadMessageError);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        messageStorage.findMessages(filter, findSuccessCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..8d52a5d
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,\r
+    incorrectCallback, findSuccessCB;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(filter, findSuccessCB, incorrectCallback);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..5f6cef3
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError",\r
+    incorrectCallback, findSuccessCB;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.findMessages(filter, findSuccessCB, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_exist.html
new file mode 100755 (executable)
index 0000000..7849935
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_exist\r
+//==== LABEL Check if method findMessages of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("findMessages" in messageStorage, "No findMessages method in messageStorage");\r
+        check_method_exists(messageStorage, "findMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_filter_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_filter_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..c9f7eaa
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_filter_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_filter_TypeMismatch\r
+//==== LABEL Check type conversions for filter argument of MessageStorage.findMessages method (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, incorrectFilter, conversionTable,\r
+    i, exceptionName, findSuccessCB, findErrorCB;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("object", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectFilter = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(incorrectFilter, findSuccessCB, findErrorCB);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectFilter);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_folderId_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_folderId_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..8a339dd
--- /dev/null
@@ -0,0 +1,125 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_folderId_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_folderId_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by folderId (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, j, loadMessageSuccess, loadMessageError;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_own_property(msg, "conversationId", "Name conversationId doesn't exist in provided object.");\r
+        assert_equals(msg.conversationId, message.conversationId, "conversationId is not equal");\r
+        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");\r
+        assert_equals(msg.folderId, message.folderId, "folderId is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, message.type, "type is not equal");\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");\r
+        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");\r
+        assert_equals(msg.from, message.from, "from is not equal");\r
+        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");\r
+        for(j = 0; j < msg.to.length; j++) {\r
+            assert_equals(msg.to[j], message.to[j], "to is not equal");\r
+        }\r
+        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");\r
+        assert_equals(msg.body.messageId, message.body.messageId, "body.messageId is not equal");\r
+        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");\r
+        assert_equals(msg.body.loaded, message.body.loaded, "loaded is not equal");\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");\r
+        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");\r
+        assert_equals(msg.isRead, message.isRead, "isRead is not equal");\r
+        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");\r
+        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++) {\r
+            assert_equals(msg[i].folderId, message.folderId, "returned folderId is not equal");\r
+            if(msg[i].id === message.id) {\r
+                messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);\r
+            }\r
+        }\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("folderId", "EXACTLY", message.folderId);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_from_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_from_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..59b996c
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_from_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_from_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by from (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA MR\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, returnedValue = null, filter, findSuccessCB, findErrorCB,\r
+    fromFound, i;\r
+\r
+t.step(function () {\r
+    findSuccessCB = t.step_func(function (messages) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+\r
+        for (i = 0; i < messages.length; i++) {\r
+            assert_not_equals(messages[i].from, null, "from is null");\r
+            fromFound = messages[i].from.indexOf(TEST_SMS_RECIPIENT);\r
+            assert_greater_than_equal(fromFound, 0, "Recipient not found");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        filter = new tizen.AttributeFilter("from", "CONTAINS", TEST_SMS_RECIPIENT);\r
+        returnedValue = service.messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_id_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_id_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..92e55bb
--- /dev/null
@@ -0,0 +1,112 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_id_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_id_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by id (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    loadMessageSuccess, loadMessageError;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");\r
+        assert_equals(msg.folderId, message.folderId, "folderId is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, message.type, "type is not equal");\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");\r
+        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");\r
+        assert_equals(msg.from, message.from, "from is not equal");\r
+        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");\r
+        assert_array_equals(msg.to, message.to, "to is not equal");\r
+        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");\r
+        assert_equals(msg.isRead, message.isRead, "isRead is not equal");\r
+        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");\r
+        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");\r
+\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_true(msg.length === 1, "Received incorrect number of messages: " + msg.length);\r
+        messageService.loadMessageBody(msg[0], loadMessageSuccess, loadMessageError);\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_isRead_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_isRead_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..fb80c19
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_isRead_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_isRead_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by isRead (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_true(msg.length >= 1, "No messages found");\r
+        for(i = 0; i < msg.length; i++) {\r
+            assert_equals(msg[i].isRead, message.isRead, "isRead is not equal");\r
+            assert_equals(msg[i].type, message.type, "type is not equal");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("isRead", "EXACTLY", message.isRead);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_missarg.html
new file mode 100755 (executable)
index 0000000..792e8c6
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_missarg\r
+//==== LABEL Check without arguments - MessageStorage.findMessages\r
+//==== PRIORITY P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        assert_throws({name: exceptionName}, function () {\r
+            messageStorage.findMessages();\r
+        }, exceptionName + " should be thrown - missing argument");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..c46e835
--- /dev/null
@@ -0,0 +1,133 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter1,\r
+    filter2, composite, findSuccessCB, findErrorCB, loadMessageSuccess, loadMessageError, commonPlainBody;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_own_property(msg, "folderId", "Name folderId doesn't exist in provided object.");\r
+        assert_equals(msg.folderId, message.folderId, "folderId is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, message.type, "type is not equal");\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");\r
+        assert_own_property(msg, "from", "Name from doesn't exist in provided object.");\r
+        assert_equals(msg.from, message.from, "from is not equal");\r
+        assert_own_property(msg, "to", "Name to doesn't exist in provided object.");\r
+        assert_array_equals(msg.to, message.to, "to is not equal");\r
+        assert_own_property(msg.body, "messageId", "Name body.messageId doesn't exist in provided object.");\r
+        assert_equals(msg.body.messageId, message.body.messageId, "body.messageId is not equal");\r
+        assert_own_property(msg.body, "loaded", "Name loaded doesn't exist in provided object.");\r
+        assert_equals(msg.body.loaded, message.body.loaded, "loaded is not equal");\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");\r
+        assert_own_property(msg, "isRead", "Name isRead doesn't exist in provided object.");\r
+        assert_equals(msg.isRead, message.isRead, "isRead is not equal");\r
+        assert_own_property(msg, "inResponseTo", "Name inResponseTo doesn't exist in provided object.");\r
+        assert_equals(msg.inResponseTo, message.inResponseTo, "inResponseTo is not equal");\r
+\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_equals(msg.length, 1, "No messages found");\r
+        assert_equals(msg[0].id, message.id, "Id is not equal");\r
+        messageService.loadMessageBody(msg[0], loadMessageSuccess, loadMessageError);\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        count++;\r
+        if (count === 2) {\r
+            filter1 = new tizen.AttributeFilter("body.plainBody", "CONTAINS", message.body.plainBody);\r
+            filter2 = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+\r
+            composite = new tizen.CompositeFilter("INTERSECTION", [filter1, filter2]);\r
+            messageStorage.findMessages(composite, findSuccessCB, findErrorCB);\r
+        }\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        commonPlainBody = generatePlainBody();\r
+\r
+        messageOne = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+        messageOne.body.plainBody = "new plainBody";\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..34adbbe
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_plainBody_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_plainBody_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, loadMessageSuccess, loadMessageError;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, message.body.plainBody, "plainBody is not equal");\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++) {\r
+            assert_true(msg[i].body.plainBody.indexOf(message.body.plainBody) !== -1, "plainBody is not equal");\r
+            if(msg[i].id === message.id) {\r
+                messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);\r
+            }\r
+        }\r
+\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", message.body.plainBody);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..b1ecac7
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_sort_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_sort_TypeMismatch\r
+//==== LABEL Check type conversions for sort argument of MessageStorage.findMessages method (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,\r
+    incorrect, findSuccessCB, findErrorCB;\r
+t.step(function () {\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        conversionTable = getTypeConversionExceptions("object", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrect = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(filter, findSuccessCB, findErrorCB, incorrect);\r
+                }, exceptionName + " should be thrown - given incorrect sort mode: " + incorrect);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_invalid_obj.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_sort_invalid_obj.html
new file mode 100755 (executable)
index 0000000..96b49c7
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_sort_invalid_obj</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_sort_invalid_obj\r
+//==== LABEL Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTO\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError",\r
+    incorrectMode, findSuccessCB, findErrorCB;\r
+t.step(function () {\r
+\r
+    incorrectMode = {\r
+        attributeName: "id",\r
+        order: "ASC"\r
+    };\r
+\r
+    findSuccessCB = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.findMessages(filter, findSuccessCB, findErrorCB, incorrectMode);\r
+            }, exceptionName + " should be thrown - given incorrect mode - " + incorrectMode);\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..440a89d
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,\r
+    incorrectCallback, findErrorCB;\r
+t.step(function () {\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        conversionTable = getTypeConversionExceptions("functionObject", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName},\r
+                function () {\r
+                    messageStorage.findMessages(filter, incorrectCallback, findErrorCB);\r
+                }, exceptionName + " should be thrown - given incorrect Message: " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..2d91f06
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError",\r
+    incorrectCallback, findErrorCB;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.findMessages(filter, incorrectCallback, findErrorCB);\r
+            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+        t.done();\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..6c97b0b
--- /dev/null
@@ -0,0 +1,104 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_timestamp_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_timestamp_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, loadMessageSuccess, loadMessageError;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+\r
+        assert_own_property(msg, "timestamp", "Name timestamp doesn't exist in provided object.");\r
+        assert_equals(msg.timestamp.getTime(), message.timestamp.getTime(), "timestamp is not equal");\r
+\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++) {\r
+            if(msg[i].id === message.id) {\r
+                messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);\r
+            }\r
+        }\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeRangeFilter("timestamp", new Date(message.timestamp.getTime()-2000), new Date(message.timestamp.getTime()+2000));\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_to_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_to_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..f288b84
--- /dev/null
@@ -0,0 +1,109 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_to_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_to_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by to (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, j, loadMessageSuccess, loadMessageError, foundRecipient = false, addedMessage;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_true(foundRecipient, "Recipient not found");\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++) {\r
+            assert_greater_than(msg[i].to.length, 0, "Recipient empty array");\r
+            for(j = 0; j < msg[i].to.length; j++) {\r
+                if (msg[i].to[j].indexOf(TEST_SMS_RECIPIENT) >= 0) {\r
+                    foundRecipient = true;\r
+                }\r
+            }\r
+            if(msg[i].id === message.id) {\r
+                addedMessage = msg[i];\r
+            }\r
+        }\r
+        assert_true(addedMessage instanceof tizen.Message, "Not a message.");\r
+        messageService.loadMessageBody(addedMessage, loadMessageSuccess, loadMessageError);\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("to", "CONTAINS", message.to);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_type_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_type_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..b2b9818
--- /dev/null
@@ -0,0 +1,104 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_type_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_type_with_errorCallback\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by type\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,\r
+    i, loadMessageSuccess, loadMessageError;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        assert_own_property(msg, "id", "Name id doesn't exist in provided object.");\r
+        assert_equals(msg.id, message.id, "Id is not equal");\r
+        assert_own_property(msg, "type", "Name type doesn't exist in provided object.");\r
+        assert_equals(msg.type, message.type, "type is not equal");\r
+        t.done();\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        for(i = 0; i < msg.length; i++) {\r
+            assert_equals(msg[i].type, message.type, "returned type is not equal");\r
+            if(msg[i].id === message.id) {\r
+                messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);\r
+            }\r
+        }\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("type", "EXACTLY", message.type);\r
+        messageStorage.findMessages(filter, findSuccessCB, findErrorCB);\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_limit.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_limit.html
new file mode 100755 (executable)
index 0000000..198ad33
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_with_limit</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_with_limit\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with limit (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter,\r
+    sortMode, findSuccessCB, findErrorCB, removeAllSuccess, commonPlainBody;\r
+t.step(function () {\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_equals(msg.length, 1, "More then one message one");\r
+        removeAllMessages(t, messageService, removeAllSuccess);\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        count++;\r
+        if(count === 2) {\r
+            filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", message.body.plainBody);\r
+            sortMode = new tizen.SortMode("id", "DESC");\r
+            messageStorage.findMessages(filter, findSuccessCB, findErrorCB, sortMode, 1);\r
+        }\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+\r
+        commonPlainBody = generatePlainBody();\r
+\r
+        messageOne = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+\r
+        assert_true(services.length > 0, "No services was return");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_offset.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_offset.html
new file mode 100755 (executable)
index 0000000..fbb5cfc
--- /dev/null
@@ -0,0 +1,122 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_with_offset</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_with_offset\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with offset (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter,\r
+    sortMode, findSuccessCB, findErrorCB, i, loadMessageSuccess, loadMessageError, findCounter = 0, loadCounter = 0,\r
+    removeAllSuccess, commonPlainBody;\r
+t.step(function () {\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        loadCounter++;\r
+\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_equals(msg.body.plainBody, commonPlainBody, "plainBody is not equal");\r
+\r
+        if (findCounter === loadCounter) {\r
+            removeAllMessages(t, messageService, removeAllSuccess);\r
+        }\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMEssageError() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_not_equals(msg.length, 0, "No messages found");\r
+        findCounter = msg.length;\r
+\r
+        for(i = 0; i < msg.length; i++) {\r
+            messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);\r
+        }\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        count++;\r
+        if(count === 2) {\r
+            filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", commonPlainBody);\r
+            sortMode = new tizen.SortMode("id", "DESC");\r
+            messageStorage.findMessages(filter, findSuccessCB, findErrorCB, sortMode, 2, 1);\r
+        }\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        commonPlainBody = generatePlainBody();\r
+\r
+        messageOne = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_sort.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_findMessages_with_sort.html
new file mode 100755 (executable)
index 0000000..56a066f
--- /dev/null
@@ -0,0 +1,125 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_findMessages_with_sort</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_findMessages_with_sort\r
+//==== LABEL Check if MessageStorage.findMessages method works properly with sort (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,\r
+    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter,\r
+    sortMode, findSuccessCB, findErrorCB, i, loadMessageSuccess, loadMessageError, findCounter = 0, loadCounter = 0,\r
+    returnedValue = null, commonPlainBody;\r
+t.step(function () {\r
+\r
+    loadMessageSuccess = t.step_func(function (msg) {\r
+        loadCounter++;\r
+\r
+        assert_own_property(msg.body, "plainBody", "Name plainBody doesn't exist in provided object.");\r
+        assert_greater_than_equal(msg.body.plainBody.indexOf(commonPlainBody), 0, "plainBody not found");\r
+\r
+        if (findCounter === loadCounter) {\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    loadMessageError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccessCB = t.step_func(function (msg) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value");\r
+\r
+        assert_greater_than(msg.length, 1, "Received empty msg array");\r
+        findCounter = msg.length;\r
+\r
+        for(i = 0; i < msg.length; i++) {\r
+            // messages should be sorted in ascending order\r
+            if(i > 0) {\r
+                assert_true(msg[i-1].id < msg[i].id, "Messages are not sorted properly.");\r
+            }\r
+            messageService.loadMessageBody(msg[i], loadMessageSuccess, loadMessageError);\r
+        }\r
+    });\r
+\r
+    findErrorCB = t.step_func(function (error) {\r
+        assert_unreached("findMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccessCB = t.step_func(function () {\r
+        count++;\r
+        if(count === 2) {\r
+            filter = new tizen.AttributeFilter("body.plainBody", "CONTAINS", commonPlainBody);\r
+            sortMode = new tizen.SortMode("id", "ASC");\r
+            returnedValue = messageStorage.findMessages(filter, findSuccessCB, findErrorCB, sortMode);\r
+        }\r
+    });\r
+\r
+    addDraftErrorCB = t.step_func(function (error) {\r
+        assert_unreached("addDraftErrorCB() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getMessageServicesSuccessCB = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        commonPlainBody = generatePlainBody();\r
+\r
+        messageOne = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: commonPlainBody\r
+        });\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);\r
+        messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);\r
+    });\r
+\r
+    getMessageServicesErrorCB = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", getMessageServicesSuccessCB, getMessageServicesErrorCB);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeChangeListener_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeChangeListener_exist.html
new file mode 100755 (executable)
index 0000000..ebbc212
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_removeChangeListener_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_removeChangeListener_exist\r
+//==== LABEL Check if method removeChangeListener of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("removeChangeListener" in messageStorage, "No removeChangeListener method in messageStorage");\r
+        check_method_exists(messageStorage, "removeChangeListener");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeConversations_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeConversations_exist.html
new file mode 100755 (executable)
index 0000000..29ba076
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_removeConversations_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_removeConversations_exist\r
+//==== LABEL Check if method removeConversations of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("removeConversations" in messageStorage, "No removeConversations method in messageStorage");\r
+        check_method_exists(messageStorage, "removeConversations");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeMessages_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_removeMessages_exist.html
new file mode 100755 (executable)
index 0000000..45bc189
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_removeMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_removeMessages_exist\r
+//==== LABEL Check if method removeMessages of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("removeMessages" in messageStorage, "No removeMessages method in messageStorage");\r
+        check_method_exists(messageStorage, "removeMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages.html
new file mode 100755 (executable)
index 0000000..fd2e655
--- /dev/null
@@ -0,0 +1,179 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), mutableMessage, constMessage,\r
+    smsMessageInitDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },\r
+    initDictForMutableMessage = smsMessageInitDict, initDictForConstMessage = smsMessageInitDict,\r
+    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable",\r
+    plainBodyToSetForConstMessage = plainBodyToSet + "_const",\r
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,\r
+    returnedValue = null, updateSuccess, updateError, mutableMessagefilter, constMessagefilter, findMutableMessagesSuccess,\r
+    findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE", findConstMessagesSuccess, findConstMessagesError,\r
+    foundConstMessage, consts = "CONST", loadMutableSuccess, loadMutableError, loadConstSuccess, loadConstError,\r
+    testMessage, testMessageCounter = 0;\r
+t.step(function () {\r
+\r
+    testMessage = t.step_func(function (messageToTest, originalMessage, type) {\r
+        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");\r
+        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");\r
+        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");\r
+\r
+        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");\r
+        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");\r
+\r
+        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");\r
+        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");\r
+        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");\r
+        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");\r
+\r
+        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");\r
+        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");\r
+        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");\r
+        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {\r
+            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");\r
+        } else {\r
+            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");\r
+        }\r
+\r
+        testMessageCounter++;\r
+        if (testMessageCounter === 2) {\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {\r
+        testMessage(loadedMutableMessage, mutableMessage, mutable);\r
+    });\r
+\r
+    loadMutableError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstSuccess = t.step_func(function (loadedConstMessage) {\r
+        testMessage(loadedConstMessage, constMessage, consts);\r
+    });\r
+\r
+    loadConstError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {\r
+        assert_equals(mutableMessages.length, 1, "incorrect number of messages.");\r
+        foundMutableMessage = mutableMessages[0];\r
+        if (foundMutableMessage.body.loaded) {\r
+            testMessage(foundMutableMessage, mutableMessage, mutable);\r
+        } else {\r
+            messageService.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);\r
+        }\r
+    });\r
+\r
+    findMutableMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConstMessagesSuccess = t.step_func(function (constMessages) {\r
+        assert_equals(constMessages.length, 1, "incorrect number of messages.");\r
+        foundConstMessage = constMessages[0];\r
+        if (foundConstMessage.body.loaded) {\r
+            testMessage(foundConstMessage, constMessage, consts);\r
+        } else {\r
+            messageService.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);\r
+        }\r
+    });\r
+\r
+    findConstMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);\r
+        messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);\r
+\r
+        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);\r
+        messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);\r
+    });\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.to = [TEST_SMS_RECIPIENT_2];\r
+            mutableMessage.body.plainBody = "new mutableMessage.plainBody";\r
+            mutableMessage.isRead = true;\r
+            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess, updateError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;\r
+        mutableMessage = new tizen.Message("messaging.sms", initDictForMutableMessage);\r
+        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;\r
+        constMessage = new tizen.Message("messaging.sms", initDictForConstMessage);\r
+        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..94db554
--- /dev/null
@@ -0,0 +1,90 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, addDraftSuccess, addDraftError, exceptionName, updateSuccess, incorrectCallback, conversionTable, i;\r
+t.step(function () {\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_unreached("updateMessages() success callback invoked.");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], updateSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..1e73aad
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", updateSuccess, incorrectCallback;\r
+t.step(function () {\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_unreached("updateMessages() success callback invoked.");\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        incorrectCallback = {\r
+            onerror: t.step_func(function (error) {\r
+                assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);\r
+            })\r
+        };\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], updateSuccess, incorrectCallback);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_exist.html
new file mode 100755 (executable)
index 0000000..9b724de
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_exist\r
+//==== LABEL Check if method updateMessages of MessageStorage (SMS) exists\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_true("updateMessages" in messageStorage, "No updateMessages method in messageStorage");\r
+        check_method_exists(messageStorage, "updateMessages");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_messages_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_messages_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..831a7eb
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_messages_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_messages_TypeMismatch\r
+//==== LABEL Check type conversions for messages argument of MessageStorage.updateMessages method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName, updateSuccess, updateError, conversionTable, incorrectMessages, i;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        updateSuccess = t.step_func(function () {\r
+            assert_unreached("updateMessages() success callback invoked.");\r
+        });\r
+\r
+        updateError = t.step_func(function (error) {\r
+            assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+        });\r
+\r
+        conversionTable = getTypeConversionExceptions("array", false);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectMessages = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+            assert_throws({name: exceptionName}, function () {\r
+                messageStorage.updateMessages(incorrectMessages, updateSuccess, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessages);\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_missarg.html
new file mode 100755 (executable)
index 0000000..d4b429b
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_missarg\r
+//==== LABEL Check with missing non-optional argument - MessageStorage.updateMessages (sms)\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MMA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    exceptionName = "TypeMismatchError";\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            messageStorage.updateMessages();\r
+        }, exceptionName + " should be thrown - missing argument.");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..e2c4c77
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, messageService, messageStorage, message,\r
+    addDraftSuccess, addDraftError, exceptionName,\r
+    updateError, incorrectCallback, conversionTable, i;\r
+\r
+t.step(function () {\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+\r
+        conversionTable = getTypeConversionExceptions("functionObject", true);\r
+        for(i = 0; i < conversionTable.length; i++) {\r
+            incorrectCallback = conversionTable[i][0];\r
+            exceptionName = conversionTable[i][1];\r
+\r
+            assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], incorrectCallback, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..4aa0c2f
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_successCallback_invalid_cb\r
+//==== LABEL Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    message, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", updateError, incorrectCallback;\r
+t.step(function () {\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        incorrectCallback = {\r
+            onsuccess: t.step_func(function () {\r
+                assert_unreached("addDraftMessage() incorrect success callback invoked");\r
+            })\r
+        };\r
+        assert_throws({name: exceptionName},\r
+            function () {\r
+                messageStorage.updateMessages([message], incorrectCallback, updateError);\r
+            }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_errorCallback.html
new file mode 100755 (executable)
index 0000000..a9bac38
--- /dev/null
@@ -0,0 +1,173 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_without_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_without_errorCallback\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MOA MAST\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), mutableMessage, constMessage,\r
+    smsMessageInitDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },\r
+    initDictForMutableMessage = smsMessageInitDict, initDictForConstMessage = smsMessageInitDict,\r
+    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable", plainBodyToSetForConstMessage = plainBodyToSet + "_const",\r
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,\r
+    returnedValue = null, updateSuccess, mutableMessagefilter, constMessagefilter, findMutableMessagesSuccess,\r
+    findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE", findConstMessagesSuccess, findConstMessagesError,\r
+    foundConstMessage, consts = "CONST", loadMutableSuccess, loadMutableError, loadConstSuccess, loadConstError,\r
+    testMessage, testMessageCounter = 0;\r
+t.step(function () {\r
+\r
+    testMessage = t.step_func(function (messageToTest, originalMessage, type) {\r
+        assert_equals(messageToTest.id, originalMessage.id, type + " id attribute.");\r
+        assert_equals(messageToTest.folderId, originalMessage.folderId, type + " folderId attribute.");\r
+        assert_equals(messageToTest.type, originalMessage.type, type + " type attribute.");\r
+\r
+        assert_equals(messageToTest.from, originalMessage.from, type + " from attribute.");\r
+        assert_array_equals(messageToTest.to, originalMessage.to, type + " to attribute.");\r
+\r
+        assert_equals(messageToTest.body.messageId, originalMessage.body.messageId, type + " body.messageId attribute.");\r
+        assert_equals(messageToTest.body.messageId, originalMessage.id, type + " body.messageId attribute (with message.id).");\r
+        assert_equals(messageToTest.body.loaded, originalMessage.body.loaded, type + " body.loaded attribute.");\r
+        assert_equals(messageToTest.body.plainBody, originalMessage.body.plainBody, type + " body.plainBody attribute.");\r
+\r
+        assert_equals(messageToTest.isRead, originalMessage.isRead, type + " isRead attribute.");\r
+        assert_equals(messageToTest.messageStatus, originalMessage.messageStatus, type + " messageStatus attribute.");\r
+        assert_equals(messageToTest.inResponseTo, originalMessage.inResponseTo, type + " inResponseTo attribute.");\r
+        if (messageToTest.timestamp !== null && originalMessage.timestamp !== null) {\r
+            assert_equals(messageToTest.timestamp.getTime(), originalMessage.timestamp.getTime(), type + " timestamp attribute.");\r
+        } else {\r
+            assert_equals(messageToTest.timestamp, originalMessage.timestamp, type + " timestamp attribute.");\r
+        }\r
+\r
+        testMessageCounter++;\r
+        if (testMessageCounter === 2) {\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    loadMutableSuccess = t.step_func(function (loadedMutableMessage) {\r
+        testMessage(loadedMutableMessage, mutableMessage, mutable);\r
+    });\r
+\r
+    loadMutableError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    loadConstSuccess = t.step_func(function (loadedConstMessage) {\r
+        testMessage(loadedConstMessage, constMessage, consts);\r
+    });\r
+\r
+    loadConstError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findMutableMessagesSuccess = t.step_func(function (mutableMessages) {\r
+        assert_equals(mutableMessages.length, 1, "incorrect number of messages.");\r
+        foundMutableMessage = mutableMessages[0];\r
+        if (foundMutableMessage.body.loaded) {\r
+            testMessage(foundMutableMessage, mutableMessage, mutable);\r
+        } else {\r
+            messageService.loadMessageBody(foundMutableMessage, loadMutableSuccess, loadMutableError);\r
+        }\r
+    });\r
+\r
+    findMutableMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findConstMessagesSuccess = t.step_func(function (constMessages) {\r
+        assert_equals(constMessages.length, 1, "incorrect number of messages.");\r
+        foundConstMessage = constMessages[0];\r
+        if (foundConstMessage.body.loaded) {\r
+            testMessage(foundConstMessage, constMessage, consts);\r
+        } else {\r
+            messageService.loadMessageBody(foundConstMessage, loadConstSuccess, loadConstError);\r
+        }\r
+    });\r
+\r
+    findConstMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+        mutableMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", mutableMessage.id);\r
+        messageStorage.findMessages(mutableMessagefilter, findMutableMessagesSuccess, findMutableMessagesError);\r
+\r
+        constMessagefilter = new tizen.AttributeFilter("id", "EXACTLY", constMessage.id);\r
+        messageStorage.findMessages(constMessagefilter, findConstMessagesSuccess, findConstMessagesError);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.to = [TEST_SMS_RECIPIENT_2];\r
+            mutableMessage.body.plainBody = "new mutableMessage.plainBody";\r
+            mutableMessage.isRead = true;\r
+            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage], updateSuccess);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        initDictForMutableMessage.plainBody = plainBodyToSetForMutableMessage;\r
+        mutableMessage = new tizen.Message("messaging.sms", initDictForMutableMessage);\r
+        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        initDictForConstMessage.plainBody = plainBodyToSetForConstMessage;\r
+        constMessage = new tizen.Message("messaging.sms", initDictForConstMessage);\r
+        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_successCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_sms_updateMessages_without_successCallback.html
new file mode 100755 (executable)
index 0000000..6d359b3
--- /dev/null
@@ -0,0 +1,91 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessageStorage_sms_updateMessages_without_successCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessageStorage_sms_updateMessages_without_successCallback\r
+//==== LABEL Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    mutableMessage, constMessage, addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,\r
+    returnedValue = null;\r
+t.step(function () {\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            mutableMessage.to = [TEST_SMS_RECIPIENT_2];\r
+            mutableMessage.body.plainBody = "new mutableMessage.plainBody";\r
+            mutableMessage.isRead = true;\r
+            returnedValue = messageStorage.updateMessages([mutableMessage, constMessage]);\r
+            assert_equals(returnedValue, undefined, "Incorrect returned value from updateMessages");\r
+            t.done();\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        mutableMessage = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(mutableMessage, addDraftSuccess, addDraftError);\r
+\r
+        constMessage = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(constMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_updateMessages.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessageStorage_updateMessages.html
new file mode 100755 (executable)
index 0000000..3d5adca
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessageStorage_updateMessages</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessageStorage_updateMessages\r
+//==== LABEL Check if MessageStorage.updateMessages method works correctly wihtout error callback\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    service, messageSentSuccess, messageSentError, updateSuccess,\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    messageSentSuccess = t.step_func(function (recipients) {\r
+        message.isRead = !message.isRead;\r
+        service.messageStorage.updateMessages([message], updateSuccess);\r
+    });\r
+\r
+    messageSentError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        message = new tizen.Message("messaging.sms", {plainBody: "test.", to: [TEST_SMS_RECIPIENT_2]});\r
+        service.sendMessage(message, messageSentSuccess, messageSentError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_addUpdateRemove.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_addUpdateRemove.html
new file mode 100755 (executable)
index 0000000..a626b1c
--- /dev/null
@@ -0,0 +1,117 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+\r
+<head>\r
+<title>Message_addUpdateRemove</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_addUpdateRemove\r
+//==== LABEL Check: Add a draft message and update it, and then remove it\r
+//==== PRIORITY P3\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:Message U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA\r
+\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), service, message, msgs,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError, filter,\r
+    findSuccess, findError, updateSuccess, updateError, removeSuccess, removeError;\r
+\r
+t.step(function () {\r
+\r
+    removeSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    updateSuccess = t.step_func(function () {\r
+        service.messageStorage.removeMessages(msgs, removeSuccess, removeError);\r
+    });\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_draft_message_equals(t, messages, message);\r
+        msgs = messages;\r
+        messages[0].subject = generateSubject();\r
+        service.messageStorage.updateMessages(messages, updateSuccess, updateError);\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filter, findSuccess, findError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_attachments_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_attachments_exist.html
new file mode 100755 (executable)
index 0000000..feb36d8
--- /dev/null
@@ -0,0 +1,77 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification, \r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list \r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice, \r
+  this list of conditions and the following disclaimer in the documentation \r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors \r
+  may be used to endorse or promote products derived from this work without \r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" \r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE \r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE \r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, \r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY \r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING \r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  \r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+\r
+<head>\r
+<title>Message_attachments_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_attachments_exist\r
+//==== LABEL Check if the attribute attachments in Message\r
+//==== PRIORITY P0\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:attachments A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+        assert_true("attachments" in message, "attachments attribute not found");\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_attachments_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_attachments_attribute.html
new file mode 100755 (executable)
index 0000000..e9227a7
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_attachments_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_attachments_attribute\r
+//==== LABEL Check if attribute attachments of Message (email) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:attachments A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ADV\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.email"), sampleVal;\r
+\r
+    assert_true("attachments" in message, "No 'attachments' attribute in message");\r
+    assert_type(message.attachments, "array", "'attachments' type should be array");\r
+    assert_array_equals(message.attachments, [], "'attachments' should be [] by default");\r
+\r
+    message.attachments = null;\r
+    assert_array_equals(message.attachments, [], "'attachments' should not accept null as value");\r
+\r
+    sampleVal = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+    message.attachments = [sampleVal];\r
+    assert_equals(message.attachments.length, 1, "'attachments' should accept a valid value (array length mismatch)");\r
+    assert_equals(message.attachments[0].filePath, TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "'attachments' should accept a valid value (file path mismatch)");\r
+\r
+    check_invalid_array_assignments(message, "attachments", false);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_bcc_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_bcc_attribute.html
new file mode 100755 (executable)
index 0000000..11d52b8
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_bcc_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_bcc_attribute\r
+//==== LABEL Check if attribute bcc of Message (email) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:bcc A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ASG\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("bcc" in message, "No 'bcc' attribute in message");\r
+        assert_type(message.bcc, "array", "'bcc' should be an array");\r
+        assert_array_equals(message.bcc, [], "'bcc' should be [] by default");\r
+\r
+        message.bcc = null;\r
+        assert_array_equals(message.bcc, [], "'bcc' should not accept null as value");\r
+\r
+        message.bcc = [TEST_EMAIL_RECIPIENT_1];\r
+        assert_array_equals(message.bcc, [TEST_EMAIL_RECIPIENT_1], "'bcc' should accept a valid value");\r
+\r
+        check_invalid_array_assignments(message, "bcc", false);\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_body_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_body_attribute.html
new file mode 100755 (executable)
index 0000000..99a18a0
--- /dev/null
@@ -0,0 +1,97 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_body_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_body_attribute\r
+//==== LABEL Check if attribute body of Message (email) exists, has type MessageBody\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:body A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ASG\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.email"),\r
+        invalidArgs, sampleBody, i;\r
+\r
+    assert_true("body" in message, "No 'body' attribute in message");\r
+\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_type(message.body.loaded, "boolean", "message.body.loaded type should be boolean");\r
+    assert_type(message.body.plainBody, "string", "message.body.plainBody type should be string");\r
+    assert_type(message.body.htmlBody, "string", "message.body.htmlBody type should be string");\r
+    assert_type(message.body.inlineAttachments, "array", "message.body.inlineAttachments type should be array");\r
+\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");\r
+    assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");\r
+    assert_equals(message.body.htmlBody, "", "'body.htmlBody' should be \"\" by default");\r
+    assert_array_equals(message.body.inlineAttachments, [], "'body.inlineAttachments' should be [] by default");\r
+\r
+    sampleBody = {\r
+        messageId: tizen.time.getCurrentDateTime().toString(),\r
+        loaded: false,\r
+        plainBody: MESSAGE_BODY_PLAIN,\r
+        htmlBody: MESSAGE_BODY_HTML,\r
+        inlineAttachments: []\r
+    };\r
+\r
+    // field messageId and loaded are readonly\r
+    message.body.plainBody = sampleBody.plainBody;\r
+    message.body.htmlBody = sampleBody.htmlBody;\r
+    message.body.inlineAttachments = sampleBody.inlineAttachments;\r
+\r
+    assert_equals(message.body.plainBody, sampleBody.plainBody, "'body.plainBody' should accept a valid value");\r
+    assert_equals(message.body.htmlBody, sampleBody.htmlBody, "'body.htmlBody' should accept a valid value");\r
+    assert_array_equals(message.body.inlineAttachments, sampleBody.inlineAttachments, "'body.inlineAttachments' should accept a valid value");\r
+\r
+    message.body = null;\r
+    assert_not_equals(message.body, null, "'body' should not accept null as value");\r
+\r
+    invalidArgs = [undefined, true, false, NaN, 0, "TIZEN", function () {}];\r
+    for (i = 0 ; i < invalidArgs.length ; i++) {\r
+        message.body = invalidArgs[i];\r
+\r
+        assert_true("plainBody" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+        assert_true("htmlBody" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+        assert_true("inlineAttachments" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+\r
+        assert_equals(message.body.plainBody, sampleBody.plainBody, "'plainBody' modified after setting the object to " + invalidArgs[i]);\r
+        assert_equals(message.body.htmlBody, sampleBody.htmlBody, "'htmlBody' modified after setting the object to " + invalidArgs[i]);\r
+        assert_type(message.body.inlineAttachments, "array", "'inlineAttachments' modified after setting the object to " + invalidArgs[i]);\r
+        assert_array_equals(message.body.inlineAttachments, sampleBody.inlineAttachments,\r
+            "'messageId' modified after setting the object to " + invalidArgs[i]);\r
+    }\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_cc_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_cc_attribute.html
new file mode 100755 (executable)
index 0000000..0b6681f
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_cc_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: Message_email_cc_attribute\r
+//==== LABEL Check if attribute cc of Message (email) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:cc A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ASG\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("cc" in message, "No 'cc' attribute in message");\r
+        assert_type(message.cc, "array", "'cc' should be an array");\r
+        assert_array_equals(message.cc, [], "'cc' should be [] by default");\r
+\r
+        message.cc = null;\r
+        assert_array_equals(message.cc, [], "'cc' should not accept null as value");\r
+\r
+        message.cc = [TEST_EMAIL_RECIPIENT_1];\r
+        assert_array_equals(message.cc, [TEST_EMAIL_RECIPIENT_1], "'cc' should accept a valid value");\r
+\r
+        check_invalid_array_assignments(message, "cc", false);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor.html
new file mode 100755 (executable)
index 0000000..6219c8a
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_constructor</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_constructor\r
+//==== LABEL Check if Message's constructor works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRA CONSTRM\r
+\r
+test(function () {\r
+    var message, messageInitDict;\r
+\r
+    messageInitDict = {\r
+        subject: generateSubject(),\r
+        to: [TEST_EMAIL_RECIPIENT_2],\r
+        cc: [TEST_EMAIL_RECIPIENT_1, TEST_EMAIL_RECIPIENT_2],\r
+        bcc: [TEST_EMAIL_RECIPIENT_1],\r
+        plainBody: MESSAGE_BODY_PLAIN,\r
+        htmlBody: MESSAGE_BODY_HTML,\r
+        isHighPriority: false\r
+    };\r
+\r
+    message = new tizen.Message("messaging.email", messageInitDict);\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+    assert_array_equals(message.attachments, [], "'attachments' should be []");\r
+    assert_array_equals(message.bcc, messageInitDict.bcc, "wrong 'bcc' value");\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false");\r
+    assert_equals(message.body.plainBody, messageInitDict.plainBody, "'body.plainBody' should be \""+messageInitDict.plainBody+"\"");\r
+    assert_equals(message.body.htmlBody, messageInitDict.htmlBody, "'body.htmlBody' should be \""+messageInitDict.htmlBody+"\"");\r
+    assert_array_equals(message.body.inlineAttachments, [], "'body.inlineAttachments' should be an empty array");\r
+    assert_array_equals(message.cc, messageInitDict.cc, "wrong 'cc' value");\r
+    assert_equals(message.conversationId, null, "message.conversationId value should be null");\r
+    assert_equals(message.folderId, null, "message.folderId value should be null");\r
+    assert_equals(message.from, null, "'from' should be null");\r
+    assert_equals(message.hasAttachment, false, "'hasAttachment' should be false");\r
+    assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null");\r
+    assert_equals(message.isHighPriority, false, "'isHighPriority' value should be false");\r
+    assert_equals(message.isRead, false, "'isRead' value should be false");\r
+    assert_equals(message.messageStatus, "", "value should be an empty value");\r
+    assert_equals(message.subject, messageInitDict.subject, "'subject' value should be \""+messageInitDict.subject+"\"");\r
+    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+    assert_array_equals(message.to, messageInitDict.to, "wrong 'to' value");\r
+    assert_equals(message.type, "messaging.email", "'type' should be 'messaging.email'");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_messageInitDict_function.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_messageInitDict_function.html
new file mode 100755 (executable)
index 0000000..5249772
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>Message_email_constructor_messageInitDict_function</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_constructor_messageInitDict_function\r
+//==== LABEL Check if Message's constructor works properly with function (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM\r
+\r
+test(function () {\r
+\r
+    var message = new tizen.Message("messaging.email", function () {});\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_messageInitDict_object.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_messageInitDict_object.html
new file mode 100755 (executable)
index 0000000..fd02b07
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_constructor_messageInitDict_object</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_constructor_messageInitDict_object\r
+//==== LABEL Check if Message's constructor works properly with empty object (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM\r
+\r
+test(function () {\r
+\r
+    var message = new tizen.Message("messaging.email", {});\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_minargs.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_constructor_minargs.html
new file mode 100755 (executable)
index 0000000..af85d09
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>Message_email_constructor_minargs</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_constructor_minargs\r
+//==== LABEL Check if Message's constructor works properly with minimum arguments (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM CONSTRA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+        assert_array_equals(message.attachments, [], "'attachments' should be [] by default");\r
+        assert_array_equals(message.bcc, [], "'bcc' should be [] by default");\r
+        assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+        assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");\r
+        assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");\r
+        assert_equals(message.body.htmlBody, "", "'body.htmlBody' should be \"\" by default");\r
+        assert_array_equals(message.body.inlineAttachments, [], "'body.inlineAttachments' should be [] by default");\r
+        assert_array_equals(message.cc, [], "'cc' should be [] by default");\r
+        assert_equals(message.conversationId, null, "message.conversationId default value should be null");\r
+        assert_equals(message.folderId, null, "message.folderId default value should be null");\r
+        assert_equals(message.from, null, "'from' should be null");\r
+        assert_equals(message.hasAttachment, false, "'hasAttachment' should be false by default");\r
+        assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+        assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");\r
+        assert_equals(message.isHighPriority, false, "'isHighPriority' default value should be false");\r
+        assert_equals(message.isRead, false, "'isRead' default value should be false");\r
+        assert_equals(message.messageStatus, "", "Default value should be \"\"");\r
+        assert_equals(message.subject, "", "'subject' default value should be \"\" by default");\r
+        assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+        assert_array_equals(message.to, [], "'to' should be [] by default");\r
+        assert_equals(message.type, "messaging.email", "'type' should be 'messaging.email'");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_conversationId_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_conversationId_attribute.html
new file mode 100755 (executable)
index 0000000..9407fb2
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_conversationId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: Message_email_conversationId_attribute\r
+//==== LABEL Check if attribute conversationId of Message (email) exists, has type MessageConvId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:conversationId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceSuccess, serviceError, addDraftSuccess, addDraftError;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_type(message.conversationId, "string", "ConversationId is not a string");\r
+        assert_not_equals(message.conversationId, "", "ConversationId is empty");\r
+        check_readonly(message, "id", message.conversationId, "string", message.conversationId + "1");\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("conversationId" in message, "No 'conversationId' attribute in message");\r
+        assert_equals(message.conversationId, null, "message.conversationId default value should be null");\r
+        check_readonly(message, "conversationId", null, "object", "12345");\r
+\r
+        message.subject = generateSubject();\r
+        message.to = [TEST_EMAIL_RECIPIENT_2];\r
+        message.plainBody = MESSAGE_BODY_PLAIN;\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_extend.html
new file mode 100755 (executable)
index 0000000..8c6e8bd
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: Message_email_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface Message (email) can be extended with new property\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:Message U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        check_extensibility(message);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_folderId_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_folderId_attribute.html
new file mode 100755 (executable)
index 0000000..4e5382e
--- /dev/null
@@ -0,0 +1,82 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_folderId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_folderId_attribute\r
+//==== LABEL Check if attribute folderId of Message (email) exists, has type MessageFolderId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:folderId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceError, serviceSuccess, messageService, addDraftError, addDraftSuccess;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_type(message.folderId, "string", "folderId is not a string");\r
+        assert_not_equals(message.folderId, "", "folderId is empty");\r
+\r
+        check_readonly(message, "folderId", message.folderId, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        messageService = service;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        assert_true("folderId" in message, "No 'folderId' attribute in message");\r
+        check_readonly(message, "folderId", null, "object", "12345");\r
+\r
+        messageService.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_from_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_from_attribute.html
new file mode 100755 (executable)
index 0000000..e76f68c
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_from_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_from_attribute\r
+//==== LABEL Check if attribute from of Message (email) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:from A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, service, serviceSuccess, serviceError, sendSuccess, sendError,\r
+    syncSuccess, syncError, findFoldersError, findFoldersSuccess,\r
+    findMessageError, findMessageSuccess, foundMessage, inboxFolder;\r
+\r
+t.step(function () {\r
+    findMessageSuccess = t.step_func(function (messages) {\r
+        if (messages.length > 0) {\r
+            assert_inbox_message_equals(t, messages, message, inboxFolder);\r
+\r
+            foundMessage = messages[0];\r
+            assert_type(foundMessage.from, "string", "from is not a string");\r
+            check_readonly(foundMessage, "from", TEST_EMAIL_RECIPIENT_1, "string", foundMessage.from + ".kr");\r
+\r
+            t.done();\r
+        } else {\r
+            setTimeout(sendSuccess, 1000);\r
+        }\r
+    });\r
+\r
+    findMessageError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findFoldersSuccess = t.step_func(function (folders) {\r
+        assert_greater_than(folders.length, 0, "Received empty folders array");\r
+        inboxFolder = getInboxFolder(t, folders);\r
+        findMessages(t, service, inboxFolder, message.subject, findMessageSuccess, findMessageError);\r
+    });\r
+\r
+    findFoldersError = t.step_func(function (error) {\r
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    syncSuccess = t.step_func(function () {\r
+        findFolders(t, service, findFoldersSuccess, findFoldersError);\r
+    });\r
+\r
+    syncError = t.step_func(function (error) {\r
+        assert_unreached("sync() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        sync(t, service, syncSuccess, syncError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);\r
+\r
+        assert_true("from" in message, "No 'from' attribute in message");\r
+        assert_equals(message.from, null, "'from' should be null by default");\r
+        check_readonly(message, "from", null, "object", message.from + "dummyValue");\r
+\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_hasAttachment_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_hasAttachment_attribute.html
new file mode 100755 (executable)
index 0000000..87bac5a
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_hasAttachment_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_hasAttachment_attribute\r
+//==== LABEL Check if attribute hasAttachment of Message (email) exists, has type Boolean and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:hasAttachment A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("hasAttachment" in message, "No 'hasAttachment' attribute in message");\r
+        assert_equals(message.hasAttachment, false, "'hasAttachment' should be false by default");\r
+        check_readonly(message, "hasAttachment", message.hasAttachment, "boolean", !message.hasAttachment);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_id_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_id_attribute.html
new file mode 100755 (executable)
index 0000000..1a26d1f
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_id_attribute\r
+//==== LABEL Check if attribute id of Message (email) exists, has type MessageId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    message, serviceError, serviceSuccess, addDraftSuccess, addDraftError;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_type(message.id, "string", "Id is not a string");\r
+        assert_not_equals(message.id, "", "Id is empty");\r
+        check_readonly(message, "id", message.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        assert_own_property(message, "id", "No 'id' attribute in message");\r
+        assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+        check_readonly(message, "id", null, "object", "12345");\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_inResponseTo_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_inResponseTo_attribute.html
new file mode 100755 (executable)
index 0000000..57c1fe2
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_inResponseTo_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_inResponseTo_attribute\r
+//==== LABEL Check if attribute inResponseTo of Message (email) exists, has type MessageId\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:inResponseTo A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ADV ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("inResponseTo" in message, "No 'inResponseTo' attribute in message");\r
+        assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");\r
+\r
+        check_readonly(message, "inResponseTo", message.inResponseTo, "string", message.inResponseTo + "dummyValue");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_isHighPriority_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_isHighPriority_attribute.html
new file mode 100755 (executable)
index 0000000..9e2822b
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_isHighPriority_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_isHighPriority_attribute\r
+//==== LABEL Check if attribute isHighPriority of Message (email) exists, has type Boolean\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:isHighPriority A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("isHighPriority" in message, "No 'isHighPriority' attribute in message");\r
+\r
+        assert_type(message.isHighPriority, "boolean", "'isHighPriority' type should be boolean");\r
+        assert_equals(message.isHighPriority, false, "'isHighPriority' default value should be false");\r
+\r
+        message.isHighPriority = true;\r
+        assert_equals(message.isHighPriority, true, "'isHighPriority' should accept a valid value");\r
+\r
+        message.isHighPriority = null;\r
+        assert_equals(message.isHighPriority, false, "null should be converted to false");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_isRead_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_isRead_attribute.html
new file mode 100755 (executable)
index 0000000..edfff80
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_isRead_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_isRead_attribute\r
+//==== LABEL Check if attribute isRead of Message (email) exists, has type Boolean\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:isRead A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("isRead" in message, "No 'isRead' attribute in message");\r
+        assert_type(message.isRead, "boolean", "'isRead' type should be boolean");\r
+        assert_equals(message.isRead, false, "'isRead' default value should be false");\r
+\r
+        message.isRead = true;\r
+        assert_equals(message.isRead, true, "'isRead' should accept a valid value");\r
+\r
+        message.isRead = null;\r
+        assert_equals(message.isRead, false, "null should be converted to false");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_messageStatus_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_messageStatus_attribute.html
new file mode 100755 (executable)
index 0000000..ab0ffe1
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_messageStatus_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_messageStatus_attribute\r
+//==== LABEL Check if attribute messageStatus of Message (email) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:messageStatus A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ARO ADV AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("messageStatus" in message, "No 'messageStatus' attribute in message");\r
+        check_readonly(message, "messageStatus", message.messageStatus, "string", message.messageStatus + "dummyValue");\r
+        assert_equals(message.messageStatus, "", "Default value should be \"\"");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_subject_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_subject_attribute.html
new file mode 100755 (executable)
index 0000000..a472914
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_subject_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_subject_attribute\r
+//==== LABEL Check if attribute subject of Message (email) exists, has type DOMString\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:subject A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("subject" in message, "No 'subject' attribute in message");\r
+        assert_type(message.subject, "string", "'subject' type should be string");\r
+        assert_equals(message.subject, "", "'subject' default value should be \"\"");\r
+\r
+        message.subject = null;\r
+        assert_equals(message.subject, "null", "null should be converted to string 'null'");\r
+\r
+        message.subject = "sampleValue";\r
+        assert_equals(message.subject, "sampleValue", "'subject' should accept a valid value");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_timestamp_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_timestamp_attribute.html
new file mode 100755 (executable)
index 0000000..9b8867d
--- /dev/null
@@ -0,0 +1,84 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_timestamp_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_timestamp_attribute\r
+//==== LABEL Check if attribute timestamp of Message (email) exists, has type Date and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:timestamp A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, serviceError,\r
+    serviceSuccess, messageService, addDraftError, addDraftSuccess, oldDate;\r
+\r
+t.step(function () {\r
+    addDraftSuccess = t.step_func(function () {\r
+        assert_type(message.timestamp, "date", "timestamp is not a Date");\r
+\r
+        oldDate = message.timestamp;\r
+        message.timestamp = new Date();\r
+        assert_equals(message.timestamp.getTime(), oldDate.getTime(), "timestamp can be modified");\r
+\r
+        t.done();\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (service) {\r
+        messageService = service;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        assert_true("timestamp" in message, "No 'timestamp' attribute in message");\r
+        assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+        check_readonly(message, "timestamp", null, "object", new Date());\r
+\r
+        messageService.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_to_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_to_attribute.html
new file mode 100755 (executable)
index 0000000..6e2934c
--- /dev/null
@@ -0,0 +1,80 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_to_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_to_attribute\r
+//==== LABEL Check if attribute to of Message (email) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:to A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("to" in message, "No 'to' attribute in message");\r
+        assert_type(message.to, "array", "'to' should be an array");\r
+        assert_array_equals(message.to, [], "'to' should be [] by default");\r
+\r
+        message.to = null;\r
+        assert_array_equals(message.to, [], "'to' should not accept null as value");\r
+\r
+        message.to = [TEST_EMAIL_RECIPIENT_1];\r
+        assert_type(message.to, "array", "'to' should be an array");\r
+        assert_array_equals(message.to, [TEST_EMAIL_RECIPIENT_1], "'to' should accept a valid value");\r
+\r
+        message.to = null;\r
+        assert_array_equals(message.to, [TEST_EMAIL_RECIPIENT_1], "'to' should not accept null as value");\r
+\r
+        check_invalid_array_assignments(message, "to", false);\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_type_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_email_type_attribute.html
new file mode 100755 (executable)
index 0000000..d9d8a12
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_email_type_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_email_type_attribute\r
+//==== LABEL Check if attribute type of Message (email) exists, has type MessageServiceTag and is readonly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (service) {\r
+        message = new tizen.Message("messaging.email");\r
+\r
+        assert_true("type" in message, "No 'type' attribute in message");\r
+        assert_equals(message.type, "messaging.email", "'type' should be 'messaging.email'");\r
+        check_readonly(message, "type", message.type, "string", message.type + "dummyValue");\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_exist.html
new file mode 100755 (executable)
index 0000000..ca414f8
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_exist\r
+//==== LABEL Check if Message exists\r
+//==== PRIORITY P0\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRF\r
+\r
+test(function () {\r
+    check_constructor("Message");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_hasAttachment_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_hasAttachment_exist.html
new file mode 100755 (executable)
index 0000000..35062a5
--- /dev/null
@@ -0,0 +1,73 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>Message_hasAttachment_exist</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: Message_hasAttachment_exist\r
+//==== LABEL Check if attribute hasAttachment in Message\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:hasAttachment A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, message;\r
+\r
+t.step(function () {\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        message = new tizen.Message("messaging.email");\r
+        assert_true("hasAttachment" in message, "hasAttachment attribute not found");\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_attachments_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_attachments_attribute.html
new file mode 100755 (executable)
index 0000000..db412aa
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_attachments_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_attachments_attribute\r
+//==== LABEL Check if attribute attachments of Message (MMS) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:attachments A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ADV AN ASG\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms"),\r
+        sampleVal;\r
+\r
+    assert_true("attachments" in message, "No 'attachments' attribute in message");\r
+    assert_type(message.attachments, "array", "'attachments' type should be array");\r
+    assert_array_equals(message.attachments, [], "'attachments' should be [] by default");\r
+\r
+    message.attachments = null;\r
+    assert_array_equals(message.attachments, [], "'attachments' should not accept null as value");\r
+\r
+    sampleVal = new tizen.MessageAttachment(TEST_DIR + "webapi-tizen-messaging-test_image.jpg");\r
+    message.attachments = [sampleVal];\r
+    assert_equals(message.attachments.length, 1, "'attachments' should accept a valid value (array length mismatch)");\r
+    assert_equals(message.attachments[0].filePath, TEST_DIR + "webapi-tizen-messaging-test_image.jpg", "'attachments' should accept a valid value (file path mismatch)");\r
+\r
+    check_invalid_array_assignments(message, "attachments", false);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_body_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_body_attribute.html
new file mode 100755 (executable)
index 0000000..58c5a3b
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_body_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_body_attribute\r
+//==== LABEL Check if attribute body of Message (MMS) exists, has type MessageBody\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:body A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms"),\r
+        samplePlainBody = "sample plainBody",\r
+        invalidArgs, i;\r
+\r
+    assert_true("body" in message, "No 'body' attribute in message");\r
+\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_type(message.body.loaded, "boolean", "message.body.loaded type should be boolean");\r
+    assert_type(message.body.plainBody, "string", "message.body.plainBody type should be string");\r
+\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");\r
+    assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");\r
+\r
+    message.body.plainBody = samplePlainBody;\r
+\r
+    message.body = null;\r
+    assert_not_equals(message.body, null, "'body' should not accept null as value");\r
+\r
+    invalidArgs = [undefined, true, false, NaN, 0, "TIZEN", function () {}];\r
+    for (i = 0 ; i < invalidArgs.length ; i++) {\r
+        message.body = invalidArgs[i];\r
+\r
+        assert_true("messageId" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+        assert_true("loaded" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+        assert_true("plainBody" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+\r
+        assert_equals(message.body.messageId, null, "'messageId' modified after setting the object to " + invalidArgs[i]);\r
+        assert_equals(message.body.loaded, false, "'loaded' modified after setting the object to " + invalidArgs[i]);\r
+        assert_equals(message.body.plainBody, samplePlainBody, "'plainBody' modified after setting the object to " + invalidArgs[i]);\r
+    }\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor.html
new file mode 100755 (executable)
index 0000000..b7736c9
--- /dev/null
@@ -0,0 +1,74 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_constructor</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_constructor\r
+//==== LABEL Check if Message's constructor works properly (email)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRA CONSTRM\r
+\r
+test(function () {\r
+    var message, subject, plainBody;\r
+\r
+    subject = generateSubject();\r
+    plainBody = "sample plainBody";\r
+\r
+    message = new tizen.Message("messaging.mms", {\r
+        subject: subject,\r
+        to: [TEST_SMS_RECIPIENT],\r
+        plainBody: plainBody\r
+    });\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+    assert_array_equals(message.attachments, [], "'attachments' should be []");\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false");\r
+    assert_equals(message.body.plainBody, plainBody, "'body.plainBody' should be \""+plainBody+"\"");\r
+    assert_equals(message.conversationId, null, "message.conversationId value should be null");\r
+    assert_equals(message.folderId, null, "message.folderId value should be null");\r
+    assert_equals(message.from, null, "'from' should be null");\r
+    assert_equals(message.hasAttachment, false, "'hasAttachment' should be false");\r
+    assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null");\r
+    assert_equals(message.isRead, false, "'isRead' value should be false");\r
+    assert_equals(message.messageStatus, "", "value should be \"sample subject\"");\r
+    assert_equals(message.subject, subject, "'subject' value should be \""+subject+"\"");\r
+    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should be ["+TEST_SMS_RECIPIENT+"]");\r
+    assert_equals(message.type, "messaging.mms", "'type' should be 'messaging.mms'");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_messageInitDict_function.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_messageInitDict_function.html
new file mode 100755 (executable)
index 0000000..01cc221
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_constructor_messageInitDict_function</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_constructor_messageInitDict_function\r
+//==== LABEL Check if Message's constructor works properly with function (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM\r
+\r
+test(function () {\r
+\r
+    var message = new tizen.Message("messaging.mms", function () {});\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_messageInitDict_object.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_messageInitDict_object.html
new file mode 100755 (executable)
index 0000000..c9ad597
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_constructor_messageInitDict_object</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_constructor_messageInitDict_object\r
+//==== LABEL Check if Message's constructor works properly with empty object (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM\r
+\r
+test(function () {\r
+\r
+    var message = new tizen.Message("messaging.mms", {});\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_minargs.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_constructor_minargs.html
new file mode 100755 (executable)
index 0000000..45d7f1f
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>Message_mms_constructor_minargs</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_mms_constructor_minargs\r
+//==== LABEL Check if Message's constructor works properly with minimum arguments (mms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRA CONSTRF\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+    assert_array_equals(message.attachments, [], "'attachments' should be [] by default");\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");\r
+    assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");\r
+    assert_equals(message.conversationId, null, "message.conversationId default value should be null");\r
+    assert_equals(message.folderId, null, "message.folderId default value should be null");\r
+    assert_equals(message.from, null, "'from' should be null");\r
+    assert_equals(message.hasAttachment, false, "'hasAttachment' should be false by default");\r
+    assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");\r
+    assert_equals(message.isRead, false, "'isRead' default value should be false");\r
+    assert_equals(message.messageStatus, "", "Default value should be \"\"");\r
+    assert_equals(message.subject, "", "'subject' default value should be \"\" by default");\r
+    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+    assert_array_equals(message.to, [], "'to' should be [] by default");\r
+    assert_equals(message.type, "messaging.mms", "'type' should be 'messaging.mms'");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_conversationId_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_conversationId_attribute.html
new file mode 100755 (executable)
index 0000000..d7339aa
--- /dev/null
@@ -0,0 +1,101 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_conversationId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_conversationId_attribute\r
+//==== LABEL Check if attribute conversationId of Message (MMS) exists, has type MessageConvId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:conversationId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceError, serviceSuccess, service, sendError, sendSuccess, filterForMessage,\r
+    findMessagesError, findMessagesSuccess, foundMessage;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("conversationId" in message, "No 'conversationId' attribute in message");\r
+    assert_equals(message.conversationId, null, "message.conversationId default value should be null");\r
+    check_readonly(message, "conversationId", null, "object", "12345");\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Incorrect number of messages found");\r
+        assert_equals(messages[0].id, message.id, "Found incorrect message");\r
+        foundMessage = messages[0];\r
+\r
+        assert_type(foundMessage.conversationId, "string", "ConversationId is not a string");\r
+        assert_not_equals(foundMessage.conversationId, "", "ConversationId is empty");\r
+\r
+        check_readonly(foundMessage, "conversationId", foundMessage.conversationId, "string", foundMessage.conversationId + "1");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        filterForMessage = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filterForMessage, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, service, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_extend.html
new file mode 100755 (executable)
index 0000000..cc03bee
--- /dev/null
@@ -0,0 +1,47 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface Message (MMS) can be extended with new property\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:Message U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    check_extensibility(message);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_folderId_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_folderId_attribute.html
new file mode 100755 (executable)
index 0000000..9e39c02
--- /dev/null
@@ -0,0 +1,87 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_folderId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_folderId_attribute\r
+//==== LABEL Check if attribute folderId of Message (MMS) exists, has type MessageFolderId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:folderId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceError, serviceSuccess, messageService, sendError,\r
+    sendSuccess;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("folderId" in message, "No 'folderId' attribute in message");\r
+    check_readonly(message, "folderId", null, "object", "12345");\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_type(message.folderId, "string", "folderId is not a string");\r
+        assert_not_equals(message.folderId, "", "folderId is empty");\r
+\r
+        check_readonly(message, "folderId", message.folderId, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        sendMessage(t, messageService, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_from_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_from_attribute.html
new file mode 100755 (executable)
index 0000000..01e44a5
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_from_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_from_attribute\r
+//==== LABEL Check if attribute from of Message (MMS) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:from A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("from" in message, "No 'from' attribute in message");\r
+    assert_equals(message.from, null, "'from' should be null by default");\r
+    check_readonly(message, "from", null, "object", message.from + "dummyValue");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_hasAttachment_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_hasAttachment_attribute.html
new file mode 100755 (executable)
index 0000000..7885bef
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_hasAttachment_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_hasAttachment_attribute\r
+//==== LABEL Check if attribute hasAttachment of Message (MMS) exists, has type Boolean and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:hasAttachment A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("hasAttachment" in message, "No 'hasAttachment' attribute in message");\r
+    assert_equals(message.hasAttachment, false, "'hasAttachment' should be false by default");\r
+    check_readonly(message, "hasAttachment", message.hasAttachment, "boolean", !message.hasAttachment);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_id_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_id_attribute.html
new file mode 100755 (executable)
index 0000000..f323d67
--- /dev/null
@@ -0,0 +1,89 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_id_attribute\r
+//==== LABEL Check if attribute id of Message (MMS) exists, has type MessageId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceError, serviceSuccess, messageService, sendError,\r
+    sendSuccess;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.mms");\r
+\r
+    assert_own_property(message, "id", "No 'id' attribute in message");\r
+    assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+    check_readonly(message, "id", null, "object", "12345");\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_type(message.id, "string", "Id is not a string");\r
+        assert_not_equals(message.id, "", "Id is empty");\r
+\r
+        check_readonly(message, "id", message.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        sendMessage(t, messageService, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_inResponseTo_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_inResponseTo_attribute.html
new file mode 100755 (executable)
index 0000000..f38993c
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_inResponseTo_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_inResponseTo_attribute\r
+//==== LABEL Check if attribute inResponseTo of Message (MMS) exists, has type MessageId\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:inResponseTo A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ADV ARO\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("inResponseTo" in message, "No 'inResponseTo' attribute in message");\r
+    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");\r
+\r
+    check_readonly(message, "inResponseTo", message.inResponseTo, "string", message.inResponseTo + "dummyValue");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_isRead_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_isRead_attribute.html
new file mode 100755 (executable)
index 0000000..bfdef58
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_isRead_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_isRead_attribute\r
+//==== LABEL Check if attribute isRead of Message (MMS) exists, has type Boolean\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:isRead A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("isRead" in message, "No 'isRead' attribute in message");\r
+    assert_type(message.isRead, "boolean", "'isRead' type should be boolean");\r
+    assert_equals(message.isRead, false, "'isRead' default value should be false");\r
+\r
+    message.isRead = true;\r
+    assert_equals(message.isRead, true, "'isRead' should accept a valid value");\r
+\r
+    message.isRead = null;\r
+    assert_equals(message.isRead, false, "'isRead' should not accept null as value");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_messageStatus_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_messageStatus_attribute.html
new file mode 100755 (executable)
index 0000000..c62357f
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_messageStatus_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_messageStatus_attribute\r
+//==== LABEL Check if attribute messageStatus of Message (MMS) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:messageStatus A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO ADV\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("messageStatus" in message, "No 'messageStatus' attribute in message");\r
+    check_readonly(message, "messageStatus", message.messageStatus, "string", message.messageStatus + "dummyValue");\r
+    assert_equals(message.messageStatus, "", "Default value should be \"\"");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_subject_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_subject_attribute.html
new file mode 100755 (executable)
index 0000000..824708c
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_subject_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_subject_attribute\r
+//==== LABEL Check if attribute subject of Message (MMS) exists, has type DOMString\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:subject A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ASG\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("subject" in message, "No 'subject' attribute in message");\r
+    assert_type(message.subject, "string", "'subject' type should be string");\r
+    assert_equals(message.subject, "", "'subject' default value should be \"\"");\r
+\r
+    message.subject = null;\r
+    assert_equals(message.subject, "null", "according to conversion tables 'subject' should be 'null'");\r
+\r
+    message.subject = "sampleValue";\r
+    assert_equals(message.subject, "sampleValue", "'subject' should accept a valid value");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_timestamp_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_timestamp_attribute.html
new file mode 100755 (executable)
index 0000000..a2f326f
--- /dev/null
@@ -0,0 +1,88 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_timestamp_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_timestamp_attribute\r
+//==== LABEL Check if attribute timestamp of Message (MMS) exists, has type Date and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:timestamp A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, serviceError,\r
+    serviceSuccess, messageService, sendError, sendSuccess, oldDate;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("timestamp" in message, "No 'timestamp' attribute in message");\r
+    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+    check_readonly(message, "timestamp", null, "object", new Date());\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_type(message.timestamp, "date", "timestamp is not a Date");\r
+\r
+        oldDate = message.timestamp;\r
+        message.timestamp = new Date();\r
+        assert_equals(message.timestamp.getTime(), oldDate.getTime(), "timestamp can be modified");\r
+\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        sendMessage(t, messageService, message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_to_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_to_attribute.html
new file mode 100755 (executable)
index 0000000..2415465
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_to_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_to_attribute\r
+//==== LABEL Check if attribute to of Message (MMS) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:to A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AN ASG AT\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("to" in message, "No 'to' attribute in message");\r
+    assert_array_equals(message.to, [], "'to' should be [] by default");\r
+    assert_type(message.to, "array", "'to' should be an array");\r
+\r
+    message.to = null;\r
+    assert_array_equals(message.to, [], "'to' should not accept null as value");\r
+\r
+    message.to = [TEST_SMS_RECIPIENT];\r
+    assert_type(message.to, "array", "'to' should be an array");\r
+    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should accept a valid value");\r
+\r
+    message.to = null;\r
+    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should not accept null as value");\r
+\r
+    check_invalid_array_assignments(message, "to", false);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_type_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_mms_type_attribute.html
new file mode 100755 (executable)
index 0000000..6a321a5
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_mms_type_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_mms_type_attribute\r
+//==== LABEL Check if attribute type of Message (MMS) exists, has type MessageServiceTag and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.mms");\r
+\r
+    assert_true("type" in message, "No 'type' attribute in message");\r
+    assert_equals(message.type, "messaging.mms", "'type' should be 'messaging.mms'");\r
+    check_readonly(message, "type", message.type, "string", message.type + "dummyValue");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_body_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_body_attribute.html
new file mode 100755 (executable)
index 0000000..62e0253
--- /dev/null
@@ -0,0 +1,76 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_body_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_body_attribute\r
+//==== LABEL Check if attribute body of Message (SMS) exists, has type MessageBody\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:body A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms"), invalidArgs, samplePlainBody, i;\r
+\r
+    assert_true("body" in message, "No 'body' attribute in message");\r
+\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_type(message.body.loaded, "boolean", "message.body.loaded type should be boolean");\r
+    assert_type(message.body.plainBody, "string", "message.body.plainBody type should be string");\r
+\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");\r
+    assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");\r
+\r
+    samplePlainBody = "sample plainBody";\r
+    // body\r
+    message.body.plainBody = samplePlainBody;\r
+\r
+    message.body = null;\r
+    assert_not_equals(message.body, null, "'body' should not accept null as value");\r
+\r
+    invalidArgs = [undefined, true, false, NaN, 0, "TIZEN", function () {}];\r
+    for (i = 0; i < invalidArgs.length; i++) {\r
+        message.body = invalidArgs[i];\r
+\r
+        assert_true("messageId" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+        assert_true("loaded" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+        assert_true("plainBody" in message.body, "Object was modified after setting to " + invalidArgs[i]);\r
+\r
+        assert_equals(message.body.messageId, null, "'messageId' modified after setting the object to " + invalidArgs[i]);\r
+        assert_equals(message.body.loaded, false, "'loaded' modified after setting the object to " + invalidArgs[i]);\r
+        assert_equals(message.body.plainBody, samplePlainBody, "'plainBody' modified after setting the object to " + invalidArgs[i]);\r
+    }\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor.html
new file mode 100755 (executable)
index 0000000..8214d34
--- /dev/null
@@ -0,0 +1,69 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_constructor</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_constructor\r
+//==== LABEL Check if Message's constructor works properly (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRA CONSTRM\r
+\r
+test(function () {\r
+    var message, plainBody;\r
+\r
+    plainBody = generatePlainBody();\r
+\r
+    message = new tizen.Message("messaging.sms", {\r
+        to: [TEST_SMS_RECIPIENT],\r
+        plainBody: plainBody\r
+    });\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false by");\r
+    assert_equals(message.body.plainBody, plainBody, "'body.plainBody' should be \""+plainBody+"\"");\r
+    assert_equals(message.conversationId, null, "message.conversationId value should be null");\r
+    assert_equals(message.folderId, null, "message.folderId value should be null");\r
+    assert_equals(message.from, null, "'from' should be null");\r
+    assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null");\r
+    assert_equals(message.isRead, false, "'isRead' value should be false");\r
+    assert_equals(message.messageStatus, "", "value should be \"\"");\r
+    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should be ["+TEST_SMS_RECIPIENT+"] ");\r
+    assert_equals(message.type, "messaging.sms", "'type' should be 'messaging.sms'");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_function.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_function.html
new file mode 100755 (executable)
index 0000000..bf80059
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_constructor_messageInitDict_function</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_constructor_messageInitDict_function\r
+//==== LABEL Check if Message's constructor works properly with function (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM\r
+\r
+test(function () {\r
+\r
+    var message = new tizen.Message("messaging.sms", function () {});\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_object.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_messageInitDict_object.html
new file mode 100755 (executable)
index 0000000..6d31999
--- /dev/null
@@ -0,0 +1,49 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_constructor_messageInitDict_object</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_constructor_messageInitDict_object\r
+//==== LABEL Check if Message's constructor works properly with empty object (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM\r
+\r
+test(function () {\r
+\r
+    var message = new tizen.Message("messaging.sms", {});\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_minargs.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_constructor_minargs.html
new file mode 100755 (executable)
index 0000000..ff83b98
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>Message_sms_constructor_minargs</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+\r
+//==== TEST: Message_sms_constructor_minargs\r
+//==== LABEL Check if Message's constructor works properly with minimum arguments (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CONSTRM CONSTRA\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true(message instanceof tizen.Message, "InstanceOf.");\r
+\r
+    assert_equals(message.type, "messaging.sms", "message.type should be: 'messaging.sms'");\r
+\r
+    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");\r
+    assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");\r
+    assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");\r
+    assert_equals(message.conversationId, null, "message.conversationId default value should be null");\r
+    assert_equals(message.folderId, null, "message.folderId default value should be null");\r
+    assert_equals(message.from, null, "'from' should be null");\r
+    assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");\r
+    assert_equals(message.isRead, false, "'isRead' default value should be false");\r
+    assert_equals(message.messageStatus, "", "Default value should be \"\"");\r
+    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+    assert_type(message.to, "array", "'to' should be an array");\r
+    assert_equals(message.type, "messaging.sms", "'type' should be 'messaging.sms'");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_conversationId_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_conversationId_attribute.html
new file mode 100755 (executable)
index 0000000..c2592d6
--- /dev/null
@@ -0,0 +1,104 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_conversationId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_conversationId_attribute\r
+//==== LABEL Check if attribute conversationId of Message (SMS) exists, has type MessageConvId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:conversationId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceError, serviceSuccess, service, sendError, sendSuccess, filterForMessage,\r
+    findMessagesError, findMessagesSuccess, foundMessage;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.sms", {\r
+        to: [TEST_SMS_RECIPIENT],\r
+        plainBody: generatePlainBody()\r
+    });\r
+\r
+    assert_true("conversationId" in message, "No 'conversationId' attribute in message");\r
+    assert_equals(message.conversationId, null, "message.conversationId default value should be null");\r
+    check_readonly(message, "conversationId", null, "object", "12345");\r
+\r
+    findMessagesSuccess = t.step_func(function (messages) {\r
+        assert_equals(messages.length, 1, "Incorrect number of messages found");\r
+        assert_equals(messages[0].id, message.id, "Found incorrect message");\r
+        foundMessage = messages[0];\r
+\r
+        assert_type(foundMessage.conversationId, "string", "ConversationId is not a string");\r
+        assert_not_equals(foundMessage.conversationId, "", "ConversationId is empty");\r
+\r
+        check_readonly(foundMessage, "conversationId", foundMessage.conversationId, "string", foundMessage.conversationId + "1");\r
+\r
+        t.done();\r
+    });\r
+\r
+    findMessagesError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        filterForMessage = new tizen.AttributeFilter("id", "EXACTLY", message.id);\r
+        service.messageStorage.findMessages(filterForMessage, findMessagesSuccess, findMessagesError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        service.sendMessage(message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_extend.html
new file mode 100755 (executable)
index 0000000..8557eb9
--- /dev/null
@@ -0,0 +1,47 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_extend</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_extend\r
+//==== PRIORITY P3\r
+//==== LABEL Check if instance of interface Message (SMS) can be extended with new property\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:Message U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    check_extensibility(message);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_folderId_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_folderId_attribute.html
new file mode 100755 (executable)
index 0000000..3593856
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_folderId_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_folderId_attribute\r
+//==== LABEL Check if attribute folderId of Message (SMS) exists, has type MessageFolderId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:folderId A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceError, serviceSuccess, messageService, sendError,\r
+    sendSuccess;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("folderId" in message, "No 'folderId' attribute in message");\r
+    check_readonly(message, "folderId", null, "object", "12345");\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_type(message.folderId, "string", "folderId is not a string");\r
+        assert_not_equals(message.folderId, "", "folderId is empty");\r
+\r
+        check_readonly(message, "folderId", message.folderId, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageService.sendMessage(message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_from_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_from_attribute.html
new file mode 100755 (executable)
index 0000000..f692164
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_from_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_from_attribute\r
+//==== LABEL Check if attribute from of Message (SMS) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:from A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("from" in message, "No 'from' attribute in message");\r
+    assert_equals(message.from, null, "'from' should be null by default");\r
+    check_readonly(message, "from", null, "object", message.from + "dummyValue");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_id_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_id_attribute.html
new file mode 100755 (executable)
index 0000000..c88a253
--- /dev/null
@@ -0,0 +1,87 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_id_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_id_attribute\r
+//==== LABEL Check if attribute id of Message (SMS) exists, has type MessageId and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:id A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message,\r
+    serviceError, serviceSuccess, messageService, sendError,\r
+    sendSuccess;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.sms");\r
+\r
+    assert_own_property(message, "id", "No 'id' attribute in message");\r
+    assert_equals(message.id, null, "message.id should be null before processing by the platform");\r
+    check_readonly(message, "id", null, "object", "12345");\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_type(message.id, "string", "Id is not a string");\r
+        assert_not_equals(message.id, "", "Id is empty");\r
+\r
+        check_readonly(message, "id", message.id, "string", "54321");\r
+\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageService.sendMessage(message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_inResponseTo_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_inResponseTo_attribute.html
new file mode 100755 (executable)
index 0000000..958e134
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_inResponseTo_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_inResponseTo_attribute\r
+//==== LABEL Check if attribute inResponseTo of Message (SMS) exists, has type MessageId\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:inResponseTo A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE ADV ARO\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("inResponseTo" in message, "No 'inResponseTo' attribute in message");\r
+    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");\r
+\r
+    check_readonly(message, "inResponseTo", message.inResponseTo, "string", message.inResponseTo + "dummyValue");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_isRead_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_isRead_attribute.html
new file mode 100755 (executable)
index 0000000..d894fdb
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_isRead_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_isRead_attribute\r
+//==== LABEL Check if attribute isRead of Message (SMS) exists, has type Boolean\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:isRead A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ASG AN\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("isRead" in message, "No 'isRead' attribute in message");\r
+    assert_type(message.isRead, "boolean", "'isRead' type should be boolean");\r
+    assert_equals(message.isRead, false, "'isRead' default value should be false");\r
+\r
+    message.isRead = true;\r
+    assert_equals(message.isRead, true, "'isRead' should accept a valid value");\r
+\r
+    message.isRead = null;\r
+    assert_equals(message.isRead, false, "'isRead' should not accept null as value");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_messageStatus_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_messageStatus_attribute.html
new file mode 100755 (executable)
index 0000000..3b5938f
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_messageStatus_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_messageStatus_attribute\r
+//==== LABEL Check if attribute messageStatus of Message (SMS) exists, has type DOMString and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:messageStatus A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("messageStatus" in message, "No 'messageStatus' attribute in message");\r
+    check_readonly(message, "messageStatus", message.messageStatus, "string", message.messageStatus + "dummyValue");\r
+    assert_equals(message.messageStatus, "", "Default value should be \"\"");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_timestamp_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_timestamp_attribute.html
new file mode 100755 (executable)
index 0000000..daf14e8
--- /dev/null
@@ -0,0 +1,86 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_timestamp_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_timestamp_attribute\r
+//==== LABEL Check if attribute timestamp of Message (SMS) exists, has type Date and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:timestamp A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA AE ADV ARO AT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), message, serviceError,\r
+    serviceSuccess, messageService, sendError, sendSuccess, oldDate;\r
+t.step(function () {\r
+    message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("timestamp" in message, "No 'timestamp' attribute in message");\r
+    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");\r
+    check_readonly(message, "timestamp", null, "object", new Date());\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        assert_type(message.timestamp, "date", "timestamp is not a Date");\r
+\r
+        oldDate = message.timestamp;\r
+        message.timestamp = new Date();\r
+        assert_equals(message.timestamp.getTime(), oldDate.getTime(), "timestamp can be modified");\r
+\r
+        t.done();\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        messageService = services[0];\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageService.sendMessage(message, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_to_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_to_attribute.html
new file mode 100755 (executable)
index 0000000..616ea4b
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_to_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_to_attribute\r
+//==== LABEL Check if attribute to of Message (SMS) exists, has type Array\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:to A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT AN ASG\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("to" in message, "No 'to' attribute in message");\r
+    assert_array_equals(message.to, [], "'to' should be [] by default");\r
+    assert_type(message.to, "array", "'to' should be an array");\r
+\r
+    message.to = null;\r
+    assert_array_equals(message.to, [], "'to' should not accept null as value");\r
+\r
+    message.to = [TEST_SMS_RECIPIENT];\r
+    assert_type(message.to, "array", "'to' should be an array");\r
+    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should accept a valid value");\r
+\r
+    message.to = null;\r
+    assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should not accept null as value");\r
+\r
+    check_invalid_array_assignments(message, "to", false);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_type_attribute.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Message_sms_type_attribute.html
new file mode 100755 (executable)
index 0000000..ed758e8
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Piotr Szydelko <p.szydelko@samsung.com>\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Message_sms_type_attribute</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Message_sms_type_attribute\r
+//==== LABEL Check if attribute type of Message (SMS) exists, has type MessageServiceTag and is readonly\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Message:type A\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA AE AT ARO\r
+\r
+test(function () {\r
+    var message = new tizen.Message("messaging.sms");\r
+\r
+    assert_true("type" in message, "No 'type' attribute in message");\r
+    assert_equals(message.type, "messaging.sms", "'type' should be 'messaging.sms'");\r
+    check_readonly(message, "type", message.type, "string", message.type + "dummyValue");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesadded_with_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesadded_with_filter.html
new file mode 100755 (executable)
index 0000000..aa9001a
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_email_messagesadded_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_email_messagesadded_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - email, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, watcherId, filter,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);\r
+            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            assert_equals(addedMessages[0].subject, matchMessage.subject, "Incorrect subject.");\r
+            assert_equals(addedMessages[0].id, matchMessage.id, "Incorrect id.");\r
+            t.done();\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        mismatchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        matchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        filter = new tizen.AttributeFilter("subject", "EXACTLY", matchMessage.subject);\r
+        watcherId = service.messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+        service.messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);\r
+        service.messageStorage.addDraftMessage(matchMessage, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesadded_without_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesadded_without_filter.html
new file mode 100755 (executable)
index 0000000..6731a69
--- /dev/null
@@ -0,0 +1,94 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_email_messagesadded_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_email_messagesadded_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - email, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, service, watcherId,\r
+    message, changeCallback, addDraftError, i;\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_greater_than(addedMessages.length, 0, "Received incorrect number of messages");\r
+\r
+            for (i = 0; i < addedMessages.length; i++) {\r
+                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                assert_equals(addedMessages[i].subject, message.subject, "Incorrect subject.");\r
+\r
+                if (addedMessages[i].id === message.id) {\r
+                    t.done();\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        watcherId = service.messageStorage.addMessagesChangeListener(changeCallback);\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesremoved_with_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesremoved_with_filter.html
new file mode 100755 (executable)
index 0000000..21fad13
--- /dev/null
@@ -0,0 +1,111 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_email_messagesremoved_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_email_messagesremoved_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - email, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceSuccess, serviceError, service, watcherId, filter, matchMessage, mismatchMessage,\r
+    changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0, removeError;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_type(removedMessages, "array", "Not an array.");\r
+            assert_greater_than(removedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < removedMessages.length; i++) {\r
+                assert_true(removedMessages[i] instanceof tizen.Message, "Not a message.");\r
+\r
+                if (removedMessages[i].id === matchMessage.id) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            filter = new tizen.AttributeFilter("id", "EXACTLY", matchMessage.id);\r
+\r
+            watcherId = service.messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+            service.messageStorage.removeMessages([mismatchMessage, matchMessage], null, removeError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        mismatchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);\r
+\r
+        matchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        service.messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesremoved_without_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesremoved_without_filter.html
new file mode 100755 (executable)
index 0000000..f2b71ac
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_email_messagesremoved_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_email_messagesremoved_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - email, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    watcherId, message, changeCallback, addDraftSuccess, addDraftError, removeError, i;\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            messageService.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_type(removedMessages, "array", "Not an array.");\r
+            assert_greater_than(removedMessages.length, 0, "Received incorrect number of messages");\r
+\r
+            for (i = 0; i < removedMessages.length; i++) {\r
+                assert_true(removedMessages[i] instanceof tizen.Message, "Not a message.");\r
+\r
+                if (removedMessages[i].id === message.id) {\r
+                    t.done();\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        watcherId = messageStorage.addMessagesChangeListener(changeCallback);\r
+\r
+        messageStorage.removeMessages([message], null, removeError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesupdated_with_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesupdated_with_filter.html
new file mode 100755 (executable)
index 0000000..0e9a890
--- /dev/null
@@ -0,0 +1,115 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_email_messagesupdated_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_email_messagesupdated_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - email, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBOA CBT\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, watcherId, filter,\r
+    matchMessage, mismatchMessage, changeCallback,\r
+    addDraftError, addDraftSuccess, addDraftSuccessCounter = 0, updateError;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("messagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_type(updatedMessages, "array", "Not an array.");\r
+            assert_equals(updatedMessages.length, 1, "Received incorrect number of messages: " + updatedMessages.length);\r
+            assert_true(updatedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            assert_equals(updatedMessages[0].subject, matchMessage.subject, "Incorrect subject.");\r
+            assert_equals(updatedMessages[0].id, matchMessage.id, "Incorrect id.");\r
+            t.done();\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            filter = new tizen.AttributeFilter("id", "EXACTLY", matchMessage.id);\r
+            watcherId = service.messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+            mismatchMessage.subject = generateSubject();\r
+            matchMessage.subject = generateSubject();\r
+\r
+            service.messageStorage.updateMessages([mismatchMessage, matchMessage], null, updateError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        mismatchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+        matchMessage = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);\r
+        service.messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesupdated_without_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_email_messagesupdated_without_filter.html
new file mode 100755 (executable)
index 0000000..91db142
--- /dev/null
@@ -0,0 +1,106 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+        Mariusz Polasinski <m.polasinski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_email_messagesupdated_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_email_messagesupdated_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - email, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, service, watcherId, message,\r
+    changeCallback, addDraftSuccess, addDraftError, updateError, i;\r
+\r
+t.step(function () {\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(watcherId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_type(updatedMessages, "array", "Not an array.");\r
+            assert_greater_than(updatedMessages.length, 0, "Received empty updatedMessages array");\r
+\r
+            for (i = 0; i < updatedMessages.length; i++) {\r
+                assert_true(updatedMessages[i] instanceof tizen.Message, "Not a message.");\r
+\r
+                if (updatedMessages[i].id === message.id) {\r
+                    assert_equals(updatedMessages[i].subject, message.subject, "Incorrect subject.");\r
+                    t.done();\r
+                }\r
+            }\r
+\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        watcherId = service.messageStorage.addMessagesChangeListener(changeCallback);\r
+\r
+        message.subject = generateSubject();\r
+\r
+        service.messageStorage.updateMessages([message], null, updateError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (emailService) {\r
+        service = emailService;\r
+\r
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);\r
+\r
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    getEmailService(t, serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withfilter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withfilter.html
new file mode 100755 (executable)
index 0000000..f7548f9
--- /dev/null
@@ -0,0 +1,104 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_messagesadded_withfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_messagesadded_withfilter\r
+//==== LABEL Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceError, serviceSuccess, sendError, filterForTo, msg, listener, service, listenerId;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesadded: t.step_func(function (msgs) {\r
+            assert_greater_than(msgs.length, 0, "Received empty msgs array");\r
+\r
+            t.done();\r
+        }),\r
+        messagesupdated: t.step_func(function (msgs) {\r
+            assert_unreached("should not in messagesupdated");\r
+        }),\r
+        messagesremoved: t.step_func(function (msgs) {\r
+            assert_unreached("should not in messagesremoved");\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        filterForTo = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT_2);\r
+        listenerId = service.messageStorage.addMessagesChangeListener(listener, filterForTo);\r
+\r
+        msg = new tizen.Message("messaging.sms",\r
+                {plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2 ] });\r
+        sendMessage(t, service, msg, null, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withoutfilter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesadded_withoutfilter.html
new file mode 100755 (executable)
index 0000000..7efa1c0
--- /dev/null
@@ -0,0 +1,102 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_messagesadded_withoutfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_messagesadded_withoutfilter\r
+//==== LABEL Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+    serviceError, serviceSuccess, sendError, message, listener, service, listenerId;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_greater_than(addedMessages.length, 0, "Received empty messages array");\r
+            for (i = 0; i < addedMessages.length; i++) {\r
+                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (addedMessages[i].id === message.id) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        listenerId = service.messageStorage.addMessagesChangeListener(listener);\r
+        message = new tizen.Message("messaging.sms",\r
+                {plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2 ]});\r
+        sendMessage(t, service, message, null, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withfilter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withfilter.html
new file mode 100755 (executable)
index 0000000..5dee234
--- /dev/null
@@ -0,0 +1,124 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_messagesupdated_withfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_messagesupdated_withfilter\r
+//==== LABEL Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+        serviceError, serviceSuccess, sendSuccess, sendError, findfilter, msg, listener, updateError,\r
+        findSuccess, findError, service, listenerfilter, listenerId;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesadded: t.step_func(function (messages) {\r
+            assert_unreached("Should not enter messagesadded: " + messages.length);\r
+        }),\r
+        messagesupdated: t.step_func(function (messages) {\r
+            assert_greater_than(messages.length, 0, "Received empty messages array in messagesupdated");\r
+\r
+            t.done();\r
+        }),\r
+        messagesremoved: t.step_func(function (messages) {\r
+            assert_unreached("Should not enter messagesremoved: " + messages.length);\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "Received empty messages array after findMessages()");\r
+        messages[0].isRead = !messages[0].isRead;\r
+        service.messageStorage.updateMessages(messages, null, updateError);\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        listenerfilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");\r
+        listenerId = service.messageStorage.addMessagesChangeListener(listener, listenerfilter);\r
+        findfilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT_2);\r
+        service.messageStorage.findMessages(findfilter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        msg = new tizen.Message("messaging.sms",\r
+                { plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2 ] });\r
+\r
+        sendMessage(t, service, msg, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withoutfilter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_messagesupdated_withoutfilter.html
new file mode 100755 (executable)
index 0000000..7670535
--- /dev/null
@@ -0,0 +1,123 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_messagesupdated_withoutfilter</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: MessagesChangeCallback_messagesupdated_withoutfilter\r
+//==== LABEL Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), i,\r
+        serviceError, serviceSuccess, sendSuccess, sendError, findfilter, msg, listener, updateError,\r
+        findSuccess, findError, service, listenerId;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function (res) {\r
+        try {\r
+            service.messageStorage.removeChangeListener(listenerId);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    listener = {\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_type(updatedMessages, "array", "Not an array.");\r
+            assert_greater_than(updatedMessages.length, 0, "Received empty messages array");\r
+            for (i = 0; i < updatedMessages.length; i++) {\r
+                assert_true(updatedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (updatedMessages[i].id === msg.id) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    findSuccess = t.step_func(function (messages) {\r
+        assert_greater_than(messages.length, 0, "No messages found.");\r
+        messages[0].isRead = !messages[0].isRead;\r
+        service.messageStorage.updateMessages(messages, null, updateError);\r
+    });\r
+\r
+    findError = t.step_func(function (error) {\r
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    sendSuccess = t.step_func(function () {\r
+        listenerId = service.messageStorage.addMessagesChangeListener(listener);\r
+        findfilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT_2);\r
+        service.messageStorage.findMessages(findfilter, findSuccess, findError);\r
+    });\r
+\r
+    sendError = t.step_func(function (error) {\r
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        service = services[0];\r
+        msg = new tizen.Message("messaging.sms",\r
+                { plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2] });\r
+\r
+        sendMessage(t, service, msg, sendSuccess, sendError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesadded_with_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesadded_with_filter.html
new file mode 100755 (executable)
index 0000000..ecff4d7
--- /dev/null
@@ -0,0 +1,113 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_mms_messagesadded_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_mms_messagesadded_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - mms, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),\r
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),\r
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),\r
+    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },\r
+    matchInitDict = initDict, mismatchInitDict = initDict,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, loadSuccess, loadError;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);\r
+            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+        mismatchInitDict.plainBody = mismatchPlainBodyToSet;\r
+        mismatchMessage = new tizen.Message("messaging.mms", mismatchInitDict);\r
+        messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);\r
+\r
+        matchInitDict.plainBody = matchPlainBodyToSet;\r
+        matchMessage = new tizen.Message("messaging.mms", matchInitDict);\r
+        messageStorage.addDraftMessage(matchMessage, null, addDraftError);\r
+\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesadded_without_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesadded_without_filter.html
new file mode 100755 (executable)
index 0000000..e42f6bf
--- /dev/null
@@ -0,0 +1,115 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_mms_messagesadded_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_mms_messagesadded_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - mms, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), message,\r
+    changeCallback, addDraftError, loadSuccess, loadError, removeAllSuccess, i;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            if (subscriptionIdentifier) {\r
+                messageStorage.removeChangeListener(subscriptionIdentifier);\r
+            }\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    removeAllSuccess = t.step_func(function () {\r
+        t.done();\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, plainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, message.id, "Incorrect id.");\r
+        removeAllMessages(t, messageService, removeAllSuccess);\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_greater_than(addedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < addedMessages.length; i++) {\r
+                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (addedMessages[i].id === message.id) {\r
+                    messageStorage.removeChangeListener(subscriptionIdentifier);\r
+                    subscriptionIdentifier = null;\r
+                    messageService.loadMessageBody(addedMessages[i], loadSuccess, loadError);\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: plainBodyToSet\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesremoved_with_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesremoved_with_filter.html
new file mode 100755 (executable)
index 0000000..14c9541
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_mms_messagesremoved_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_mms_messagesremoved_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - mms, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),\r
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),\r
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),\r
+    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },\r
+    matchInitDict = initDict, mismatchInitDict = initDict,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0,\r
+    updateError;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("messagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("updatedMessages callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_type(removedMessages, "array", "Not an array.");\r
+            assert_equals(removedMessages.length, 1, "Received incorrect number of messages: " + removedMessages.length);\r
+            assert_true(removedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            assert_equals(removedMessages[0].id, matchMessage.id, "Invalid message given to callback");\r
+            t.done();\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            filter = new tizen.AttributeFilter("id", "EXACTLY", matchMessage.id);\r
+            subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+            messageStorage.removeMessages([mismatchMessage, matchMessage], null, updateError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        mismatchInitDict.subject = mismatchPlainBodyToSet;\r
+        mismatchMessage = new tizen.Message("messaging.mms", mismatchInitDict);\r
+        messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);\r
+\r
+        matchInitDict.subject = matchPlainBodyToSet;\r
+        matchMessage = new tizen.Message("messaging.mms", matchInitDict);\r
+        messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesremoved_without_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesremoved_without_filter.html
new file mode 100755 (executable)
index 0000000..b8d0113
--- /dev/null
@@ -0,0 +1,107 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_mms_messagesremoved_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_mms_messagesremoved_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - mms, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, message, changeCallback, addDraftSuccess, addDraftError, removeError, i;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            if (subscriptionIdentifier) {\r
+                messageStorage.removeChangeListener(subscriptionIdentifier);\r
+            }\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_type(removedMessages, "array", "Not an array.");\r
+            assert_greater_than(removedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < removedMessages.length; i++) {\r
+                assert_true(removedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (removedMessages[i].id === message.id) {\r
+                    messageStorage.removeChangeListener(subscriptionIdentifier);\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+\r
+        messageStorage.removeMessages([message], null, removeError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesupdated_with_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesupdated_with_filter.html
new file mode 100755 (executable)
index 0000000..6db586a
--- /dev/null
@@ -0,0 +1,125 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_mms_messagesupdated_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_mms_messagesupdated_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - mms, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),\r
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),\r
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),\r
+    initDict = { subject: generateSubject(), to: [TEST_SMS_RECIPIENT], plainBody: "sample plainBody" },\r
+    matchInitDict = initDict, mismatchInitDict = initDict,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0,\r
+    updateError, loadSuccess, loadError;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("messagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_type(updatedMessages, "array", "Not an array.");\r
+            assert_equals(updatedMessages.length, 1, "Received incorrect number of messages: " + updatedMessages.length);\r
+            assert_true(updatedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            messageService.loadMessageBody(updatedMessages[0], loadSuccess, loadError);\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);\r
+            subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+            mismatchMessage.body.plainBody = mismatchPlainBodyToSet;\r
+            matchMessage.body.plainBody = matchPlainBodyToSet;\r
+\r
+            messageStorage.updateMessages([mismatchMessage, matchMessage], null, updateError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        mismatchMessage = new tizen.Message("messaging.mms", mismatchInitDict);\r
+        messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);\r
+\r
+        matchMessage = new tizen.Message("messaging.mms", matchInitDict);\r
+        messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesupdated_without_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_mms_messagesupdated_without_filter.html
new file mode 100755 (executable)
index 0000000..15560ba
--- /dev/null
@@ -0,0 +1,117 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_mms_messagesupdated_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_mms_messagesupdated_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - mms, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), message,\r
+    changeCallback, addDraftSuccess, addDraftError, updateError, loadSuccess, loadError,\r
+    i;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, plainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, message.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_type(updatedMessages, "array", "Not an array.");\r
+            assert_greater_than(updatedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < updatedMessages.length; i++) {\r
+                assert_true(updatedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (updatedMessages[i].id === message.id) {\r
+                    messageStorage.removeChangeListener(subscriptionIdentifier);\r
+                    messageService.loadMessageBody(updatedMessages[i], loadSuccess, loadError);\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+        message.body.plainBody = plainBodyToSet;\r
+\r
+        messageStorage.updateMessages([message], null, updateError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.mms", {\r
+            subject: generateSubject(),\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: "sample plainBody"\r
+        });\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_notexist.html
new file mode 100755 (executable)
index 0000000..c30c6f0
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface MessagesChangeCallback exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:MessagesChangeCallback U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA CBNIO\r
+\r
+test(function () {\r
+    check_no_interface_object("MessagesChangeCallback");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_with_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_with_filter.html
new file mode 100755 (executable)
index 0000000..7cd3350
--- /dev/null
@@ -0,0 +1,113 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_sms_messagesadded_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_sms_messagesadded_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - sms, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),\r
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),\r
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),\r
+    smsMessageInitDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },\r
+    matchInitDict = smsMessageInitDict, mismatchInitDict = smsMessageInitDict,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, loadSuccess, loadError;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_equals(addedMessages.length, 1, "Received incorrect number of messages: " + addedMessages.length);\r
+            assert_true(addedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            messageService.loadMessageBody(addedMessages[0], loadSuccess, loadError);\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("memssagesupdated callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+        mismatchInitDict.plainBody = mismatchPlainBodyToSet;\r
+        mismatchMessage = new tizen.Message("messaging.sms", mismatchInitDict);\r
+        messageStorage.addDraftMessage(mismatchMessage, null, addDraftError);\r
+\r
+        matchInitDict.plainBody = matchPlainBodyToSet;\r
+        matchMessage = new tizen.Message("messaging.sms", matchInitDict);\r
+        messageStorage.addDraftMessage(matchMessage, null, addDraftError);\r
+\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_without_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesadded_without_filter.html
new file mode 100755 (executable)
index 0000000..64b086b
--- /dev/null
@@ -0,0 +1,106 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_sms_messagesadded_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_sms_messagesadded_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesadded works properly - sms, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, message, changeCallback, addDraftError, loadSuccess, loadError, i, plainBody;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, plainBody, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, message.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_type(addedMessages, "array", "Not an array.");\r
+            assert_greater_than(addedMessages.length, 0, "Received empty messages array");\r
+            for (i = 0; i < addedMessages.length; i++) {\r
+                assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (addedMessages[i].id === message.id) {\r
+                    messageService.loadMessageBody(addedMessages[i], loadSuccess, loadError);\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+\r
+        plainBody = generatePlainBody();\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: plainBody\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, null, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_with_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_with_filter.html
new file mode 100755 (executable)
index 0000000..7113a41
--- /dev/null
@@ -0,0 +1,116 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_sms_messagesremoved_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_sms_messagesremoved_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - sms, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, messageService, messageStorage, subscriptionIdentifier, filter,\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0, updateError;\r
+\r
+t.step(function () {\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("messagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_unreached("updatedMessages callback invoked.");\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_type(removedMessages, "array", "Not an array.");\r
+            assert_equals(removedMessages.length, 1, "Received incorrect number of messages: " + removedMessages.length);\r
+            assert_true(removedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            assert_equals(removedMessages[0].id, matchMessage.id, "Invalid message given to callback");\r
+            t.done();\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            filter = new tizen.AttributeFilter("id", "EXACTLY", matchMessage.id);\r
+            subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+            messageStorage.removeMessages([mismatchMessage, matchMessage], null, updateError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        mismatchMessage = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);\r
+\r
+        matchMessage = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_without_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesremoved_without_filter.html
new file mode 100755 (executable)
index 0000000..d60e5e6
--- /dev/null
@@ -0,0 +1,103 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_sms_messagesremoved_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_sms_messagesremoved_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesremoved works properly - sms, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesremoved M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, message, changeCallback, addDraftSuccess, addDraftError, removeError, i;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_type(removedMessages, "array", "Not an array.");\r
+            assert_greater_than(removedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < removedMessages.length; i++) {\r
+                assert_true(removedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (removedMessages[i].id === message.id) {\r
+                    t.done();\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    removeError = t.step_func(function (error) {\r
+        assert_unreached("removeMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+\r
+        messageStorage.removeMessages([message], null, removeError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_with_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_with_filter.html
new file mode 100755 (executable)
index 0000000..38f600f
--- /dev/null
@@ -0,0 +1,129 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_sms_messagesupdated_with_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_sms_messagesupdated_with_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - sms, filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),\r
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),\r
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),\r
+    matchMessage, mismatchMessage, changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0,\r
+    updateError, loadSuccess, loadError;\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, matchPlainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, matchMessage.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesadded: t.step_func(function (addedMessages) {\r
+            assert_unreached("messagesadded callback invoked.");\r
+        }),\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_type(updatedMessages, "array", "Not an array.");\r
+            assert_equals(updatedMessages.length, 1, "Received incorrect number of messages: " + updatedMessages.length);\r
+            assert_true(updatedMessages[0] instanceof tizen.Message, "Not a message.");\r
+            messageService.loadMessageBody(updatedMessages[0], loadSuccess, loadError);\r
+        }),\r
+        messagesremoved: t.step_func(function (removedMessages) {\r
+            assert_unreached("messagesremoved callback invoked.");\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        addDraftSuccessCounter++;\r
+        if (addDraftSuccessCounter === 2) {\r
+            filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);\r
+            subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);\r
+\r
+            mismatchMessage.body.plainBody = mismatchPlainBodyToSet;\r
+            matchMessage.body.plainBody = matchPlainBodyToSet;\r
+\r
+            messageStorage.updateMessages([mismatchMessage, matchMessage], null, updateError);\r
+        }\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        mismatchMessage = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(mismatchMessage, addDraftSuccess, addDraftError);\r
+\r
+        matchMessage = new tizen.Message("messaging.sms", {\r
+            to: [TEST_SMS_RECIPIENT],\r
+            plainBody: generatePlainBody()\r
+        });\r
+        messageStorage.addDraftMessage(matchMessage, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_without_filter.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/MessagesChangeCallback_sms_messagesupdated_without_filter.html
new file mode 100755 (executable)
index 0000000..baa136a
--- /dev/null
@@ -0,0 +1,114 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>MessagesChangeCallback_sms_messagesupdated_without_filter</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: MessagesChangeCallback_sms_messagesupdated_without_filter\r
+//==== LABEL Check if MessagesChangeCallback.messagesupdated works properly - sms, no filter\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA CBT CBOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,\r
+    subscriptionIdentifier, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), message, i,\r
+    changeCallback, initDict = { to: [TEST_SMS_RECIPIENT], plainBody: generatePlainBody() },\r
+    addDraftSuccess, addDraftError, updateError, loadSuccess, loadError;\r
+\r
+t.step(function () {\r
+\r
+    add_result_callback(function () {\r
+        try {\r
+            messageStorage.removeChangeListener(subscriptionIdentifier);\r
+        } catch (err) {\r
+            // do nothing in case removeChangeListener throw an exception\r
+        }\r
+    });\r
+\r
+    loadSuccess = t.step_func(function (loadedMessage) {\r
+        assert_equals(loadedMessage.body.plainBody, plainBodyToSet, "Incorrect plainBody.");\r
+        assert_equals(loadedMessage.id, message.id, "Incorrect id.");\r
+        t.done();\r
+    });\r
+\r
+    loadError = t.step_func(function (error) {\r
+        assert_unreached("loadMessageBody() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    changeCallback = {\r
+        messagesupdated: t.step_func(function (updatedMessages) {\r
+            assert_type(updatedMessages, "array", "Not an array.");\r
+            assert_greater_than(updatedMessages.length, 0, "Received empty messages array");\r
+\r
+            for (i = 0; i < updatedMessages.length; i++) {\r
+                assert_true(updatedMessages[i] instanceof tizen.Message, "Not a message.");\r
+                if (updatedMessages[i].id === message.id) {\r
+                    messageService.loadMessageBody(updatedMessages[i], loadSuccess, loadError);\r
+                    break;\r
+                }\r
+            }\r
+        })\r
+    };\r
+\r
+    updateError = t.step_func(function (error) {\r
+        assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    addDraftSuccess = t.step_func(function () {\r
+        subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);\r
+        message.body.plainBody = plainBodyToSet;\r
+\r
+        messageStorage.updateMessages([message], null, updateError);\r
+    });\r
+\r
+    addDraftError = t.step_func(function (error) {\r
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_true(services.length > 0, "Received empty services array");\r
+        messageService = services[0];\r
+        messageStorage = messageService.messageStorage;\r
+\r
+        message = new tizen.Message("messaging.sms", initDict);\r
+        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices.html
new file mode 100755 (executable)
index 0000000..8bc153a
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_email_getMessageServices</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_email_getMessageServices\r
+//==== LABEL Check if getMessageServices works properly (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, i, returnedValue = null;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        assert_type(services, "array", "Not an array");\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        for(i = 0; i< services.length; i++){\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.email", "Type is not equal email");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    returnedValue = tizen.messaging.getMessageServices("messaging.email", serviceSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..4aaea7c
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_email_getMessageServices_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_email_getMessageServices_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of Messaging.getMessageServices method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    exceptionName, serviceSuccess, i, incorrectCallback, conversionTable;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function () {\r
+        assert_unreached("getMessageServices() success callback invoked.");\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("functionObject", true);\r
+\r
+    for(i = 0; i < conversionTable.length; i++) {\r
+        incorrectCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.email", serviceSuccess, incorrectCallback);\r
+        }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..8d14939
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_email_getMessageServices_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_email_getMessageServices_errorCallback_invalid_cb\r
+//==== LABEL Check if Messaging.getMessageServices method throws exception when errorCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    exceptionName = "TypeMismatchError", serviceSuccess, incorrectCallback;\r
+\r
+t.step(function () {\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("getMessageServices() error callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function () {\r
+        assert_unreached("getMessageServices() success callback invoked.");\r
+    });\r
+\r
+    assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.email", serviceSuccess, incorrectCallback);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..6d94d05
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_email_getMessageServices_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_email_getMessageServices_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of Messaging.getMessageServices method (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    exceptionName, serviceError, i, incorrectCallback, conversionTable;\r
+\r
+t.step(function () {\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("functionObject", false);\r
+\r
+    for(i = 0; i < conversionTable.length; i++) {\r
+        incorrectCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.email", incorrectCallback, serviceError);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..f487a52
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_email_getMessageServices_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_email_getMessageServices_successCallback_invalid_cb\r
+//==== LABEL Check if Messaging.getMessageServices method throws exception when successCallback is invalid (email)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    exceptionName = "TypeMismatchError", serviceError, incorrectCallback;\r
+\r
+t.step(function () {\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("getMessageServices() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.email", incorrectCallback, serviceError);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_email_getMessageServices_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..fc2b98e
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_email_getMessageServices_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_email_getMessageServices_with_errorCallback\r
+//==== LABEL Check if getMessageServices works properly with all arguments (email)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, i, returnedValue = null;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        assert_type(services, "array", "Not an array");\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+\r
+        for(i = 0; i< services.length; i++){\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.email", "Type is not equal email");\r
+        }\r
+\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    returnedValue = tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_extend.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_extend.html
new file mode 100755 (executable)
index 0000000..d3a5ea5
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>\r
+<!--\r
+\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+\r
+Authors:\r
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>Messaging_extend</title>\r
+<script src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: Messaging_extend\r
+//==== LABEL Check if Messaging is extendable\r
+//==== PRIORITY P3\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:Messaging U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA OBX\r
+\r
+test(function () {\r
+    check_extensibility(tizen.messaging);\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_exist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_exist.html
new file mode 100755 (executable)
index 0000000..d6763c9
--- /dev/null
@@ -0,0 +1,47 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_getMessageServices_exist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_getMessageServices_exist\r
+//==== LABEL Check if method getMessageServices exists\r
+//==== PRIORITY P0\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA ME\r
+\r
+test(function () {\r
+    assert_true("getMessageServices" in tizen.messaging, "No getMessageServices method in messaging");\r
+    check_method_exists(tizen.messaging, "getMessageServices");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_messageServiceType_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_messageServiceType_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..529a6e5
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_getMessageServices_messageServiceType_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_getMessageServices_messageServiceType_TypeMismatch\r
+//==== LABEL Check type conversions for messageServiceType argument of Messaging.getMessageServices method\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 300\r
+//==== TIMEOUT 300\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}),\r
+    serviceSuccess, serviceError, conversionTable, i, invalidType, exceptionName;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("enum", false);\r
+\r
+    for(i = 0; i < conversionTable.length; i++) {\r
+        invalidType = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws ({name: exceptionName},\r
+            function () {\r
+                tizen.messaging.getMessageServices(invalidType, serviceSuccess, serviceError);\r
+            }, "Constructed object with invalid MessageServiceType - " + invalidType);\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_missarg.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_missarg.html
new file mode 100755 (executable)
index 0000000..dbfc933
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_getMessageServices_missarg</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_getMessageServices_missarg\r
+//==== LABEL Check with missing non-optional argument - Messaging.getMessageServices\r
+//==== PRIORITY P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMA\r
+test(function () {\r
+    assert_throws(TYPE_MISMATCH_EXCEPTION,\r
+        function () {\r
+            tizen.messaging.getMessageServices();\r
+        }, TYPE_MISMATCH_ERR + " should be thrown - missing argument");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_without_error_callback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_getMessageServices_without_error_callback.html
new file mode 100755 (executable)
index 0000000..9e45430
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2012 Intel Corporation.\r
+\r
+Redistribution and use in source and binary forms, with or without modification,\r
+are permitted provided that the following conditions are met:\r
+\r
+* Redistributions of works must retain the original copyright notice, this list\r
+  of conditions and the following disclaimer.\r
+* Redistributions in binary form must reproduce the original copyright notice,\r
+  this list of conditions and the following disclaimer in the documentation\r
+  and/or other materials provided with the distribution.\r
+* Neither the name of Intel Corporation nor the names of its contributors\r
+  may be used to endorse or promote products derived from this work without\r
+  specific prior written permission.\r
+\r
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"\r
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,\r
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\r
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\r
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\r
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+Authors:\r
+        Li, Li <li.l.li@intel.com>\r
+        Zoe, Zou <zoex.zou@intel.com>\r
+        Ma, YueX <yuex.ma@intel.com>\r
+\r
+-->\r
+\r
+<html>\r
+<head>\r
+<title>Messaging_getMessageServices_without_error_callback</title>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+<body>\r
+<div id="log"></div>\r
+<script type="text/javascript">\r
+//==== TEST: Messaging_getMessageServices_without_error_callback\r
+//==== LABEL Check if MessageService.getMessageServices method works properly without errorCallback argument (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess;\r
+\r
+t.step(function () {\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_greater_than(services.length, 0, "Received empty services array");\r
+        t.done();\r
+    });\r
+\r
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess);\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices.html
new file mode 100755 (executable)
index 0000000..3e10e96
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_mms_getMessageServices</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_mms_getMessageServices\r
+//==== LABEL Check if type attribute exists in MessageService\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, i, returnedValue = null;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        assert_true(services.length > 0, "Received empty services array");\r
+\r
+        for(i = 0; i< services.length; i++){\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.mms", "Type is not equal mms");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    returnedValue = tizen.messaging.getMessageServices("messaging.mms", serviceSuccess);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..39c19fd
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_mms_getMessageServices_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_mms_getMessageServices_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.getMessageServices method (mms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), conversionTable, exceptionName, serviceSuccess, i, incorrectCallback;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("functionObject", true);\r
+    for(i = 0; i < conversionTable.length; i++) {\r
+        incorrectCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, incorrectCallback);\r
+        }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..742b289
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_mms_getMessageServices_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_mms_getMessageServices_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", serviceSuccess,\r
+    incorrectCallback;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("getMessageServices() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, incorrectCallback);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..197e1bc
--- /dev/null
@@ -0,0 +1,65 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_mms_getMessageServices_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_mms_getMessageServices_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.getMessageServices method (mms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), exceptionName, serviceError, i, incorrectCallback, conversionTable;\r
+t.step(function () {\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("functionObject", false);\r
+    for(i = 0; i < conversionTable.length; i++) {\r
+        incorrectCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.mms", incorrectCallback, serviceError);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..04481ac
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_mms_getMessageServices_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_mms_getMessageServices_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.getMessageServices method throws exception when successCallback is invalid (mms)\r
+//==== PRIORITY: P2\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", serviceError, incorrectCallback;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("addDraftMessage() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.mms", incorrectCallback, serviceError);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_mms_getMessageServices_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..9abc01b
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_mms_getMessageServices_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_mms_getMessageServices_with_errorCallback\r
+//==== LABEL Check if MessageService.getMessageServices method works properly with errorCallback argument (mms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MOA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, i, returnedValue = null;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        assert_true(services.length > 0, "Received empty services array");\r
+\r
+        for(i = 0; i< services.length; i++){\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.mms", "Type is not equal mms");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    returnedValue = tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_notexist.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_notexist.html
new file mode 100755 (executable)
index 0000000..a38328b
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Jakub Siewierski <j.siewierski@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_notexist</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_notexist\r
+//==== PRIORITY P3\r
+//==== LABEL Check if interface Messaging exists, it should not.\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:Messaging U\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA NIO\r
+\r
+test(function () {\r
+    check_no_interface_object("Messaging");\r
+}, document.title);\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices.html
new file mode 100755 (executable)
index 0000000..1057ad9
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_sms_getMessageServices</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_sms_getMessageServices\r
+//==== LABEL Check if MessageService.getMessageServices method works properly (sms)\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MMINA\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, i, returnedValue = null;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        assert_true(services.length > 0, "Received empty services array");\r
+\r
+        for(i = 0; i< services.length; i++) {\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.sms", "Type is not equal sms");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    returnedValue = tizen.messaging.getMessageServices("messaging.sms", serviceSuccess);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..689f242
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_sms_getMessageServices_errorCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_sms_getMessageServices_errorCallback_TypeMismatch\r
+//==== LABEL Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), conversionTable, exceptionName, serviceSuccess, i, incorrectCallback;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("functionObject", true);\r
+    for(i = 0; i < conversionTable.length; i++) {\r
+        incorrectCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, incorrectCallback);\r
+        }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..df4a5f7
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_sms_getMessageServices_errorCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_sms_getMessageServices_errorCallback_invalid_cb\r
+//==== LABEL Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", serviceSuccess,\r
+    incorrectCallback;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onerror: t.step_func(function () {\r
+            assert_unreached("getMessageServices() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceSuccess = t.step_func(function () {\r
+        assert_unreached("Shouldn't be here");\r
+    });\r
+\r
+    assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, incorrectCallback);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html
new file mode 100755 (executable)
index 0000000..1ac0b21
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_sms_getMessageServices_successCallback_TypeMismatch</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_sms_getMessageServices_successCallback_TypeMismatch\r
+//==== LABEL Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MC\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), exceptionName, serviceError, i, incorrectCallback, conversionTable;\r
+t.step(function () {\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    conversionTable = getTypeConversionExceptions("functionObject", false);\r
+    for(i = 0; i < conversionTable.length; i++) {\r
+        incorrectCallback = conversionTable[i][0];\r
+        exceptionName = conversionTable[i][1];\r
+\r
+        assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.sms", incorrectCallback, serviceError);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    }\r
+\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_invalid_cb.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_successCallback_invalid_cb.html
new file mode 100755 (executable)
index 0000000..26652e0
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_sms_getMessageServices_successCallback_invalid_cb</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_sms_getMessageServices_successCallback_invalid_cb\r
+//==== LABEL Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)\r
+//==== PRIORITY: P2\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== ONLOAD_DELAY 90\r
+//==== TEST_CRITERIA MTCB\r
+setup({timeout: 90000});\r
+var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", serviceError, incorrectCallback;\r
+t.step(function () {\r
+\r
+    incorrectCallback = {\r
+        onsuccess: t.step_func(function () {\r
+            assert_unreached("getMessageServices() success callback invoked.");\r
+        })\r
+    };\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    assert_throws({name: exceptionName},\r
+        function () {\r
+            tizen.messaging.getMessageServices("messaging.sms", incorrectCallback, serviceError);\r
+        }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);\r
+    t.done();\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
diff --git a/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_with_errorCallback.html b/mobile/tct-deprecatedapi-tizen-tests/deprecatedapi/Messaging_sms_getMessageServices_with_errorCallback.html
new file mode 100755 (executable)
index 0000000..e2d6f06
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2013 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+\r
+Authors:\r
+        Lukasz Bardeli <l.bardeli@samsung.com>\r
+\r
+-->\r
+<html>\r
+<head>\r
+<title>Messaging_sms_getMessageServices_with_errorCallback</title>\r
+<meta charset="utf-8"/>\r
+<script type="text/javascript" src="support/unitcommon.js"></script>\r
+<script type="text/javascript" src="support/messaging_common.js"></script>\r
+</head>\r
+\r
+<body>\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: Messaging_sms_getMessageServices_with_errorCallback\r
+//==== LABEL Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)\r
+//==== PRIORITY P1\r
+//==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M\r
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html\r
+//==== TEST_CRITERIA MR MOA\r
+//==== ONLOAD_DELAY 90\r
+setup({timeout: 90000});\r
+\r
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, i, returnedValue = null;\r
+t.step(function () {\r
+\r
+    serviceSuccess = t.step_func(function (services) {\r
+        assert_equals(returnedValue, undefined, "Incorrect returned value.");\r
+\r
+        assert_true(services.length > 0, "Received empty services array");\r
+\r
+        for(i = 0; i< services.length; i++) {\r
+            assert_true("type" in services[i], "Name type doesn't exist in provided object.");\r
+            assert_equals(services[i].type, "messaging.sms", "Type is not equal sms");\r
+        }\r
+        t.done();\r
+    });\r
+\r
+    serviceError = t.step_func(function (error) {\r
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);\r
+    });\r
+\r
+    returnedValue = tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);\r
+\r
+});\r
+\r
+</script>\r
+</body>\r
+</html>\r
index aa4c2227b21e9204e65a0b88195d7330e6e4bbc7..e3820d98614bd5363994fd0e2796d3dd75a7dd7c 100755 (executable)
         </specs>
       </testcase>
     </set>
+    <set name="Messaging-EMAIL-1st_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if interface MessageArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method onsuccess of MessageArraySuccessCallback works" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageAttachmentSuccessCallback, onsuccess, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachmentSuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachmentSuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageAttachmentSuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachmentSuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachmentSuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageAttachment's constructor works" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageAttachment's constructor works with minimum arguments" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor_minargs">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor_minargs.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageAttachment exists" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageAttachment_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageAttachment can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachment_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute filePath of MessageAttachment exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_filePath_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_filePath_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="filePath" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id of MessageAttachment exists, has type MessageAttachmentId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_id_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageAttachment exists, has type MessageId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_messageId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_messageId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute mimeType of MessageAttachment exists, has type DOMString and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_mimeType_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_mimeType_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageAttachment" element_type="attribute" element_name="mimeType" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type (email message)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBodySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageBodySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBodySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBodySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBodySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageBody (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute htmlBody of MessageBody (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_htmlBody_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_htmlBody_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="htmlBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute inlineAttachments of MessageBody (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_inlineAttachments_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_inlineAttachments_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="inlineAttachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute loaded of MessageBody (email) exists, has type Boolean and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_loaded_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_loaded_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="loaded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageBody (email) exists, has type MessageId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_messageId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_messageId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute plainBody of MessageBody (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_plainBody_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_plainBody_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="plainBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageBody exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageConversationArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method onsuccess of MessageConversationArraySuccessCallback works" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute bcc of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_bcc_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_bcc_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="bcc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute cc of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_cc_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_cc_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="cc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageConversation can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute from of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_from_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_from_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute id of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_id_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute isRead of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_isRead_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_isRead_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute lastMessageId of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_lastMessageId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_lastMessageId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="lastMessageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute messageCount of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_messageCount_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_messageCount_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="messageCount" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageConversation exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute preview of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_preview_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_preview_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="preview" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute subject of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_subject_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_subject_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="subject" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute timestamp of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_timestamp_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_timestamp_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute to of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_to_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_to_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute type of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check attribute unreadMessages of MessageConversation" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_unreadMessages_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_unreadMessages_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversation" element_type="attribute" element_name="unreadMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if conversationsadded callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsremoved">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsremoved.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsupdated">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsupdated.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageConversationsChangeCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationsChangeCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageFolderArraySuccessCallback, email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolderArraySuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolderArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageFolderArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolderArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolderArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the attribute contentType in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_contentType_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_contentType_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="contentType" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute contentType of MessageFolder (email) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_contentType_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_contentType_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="contentType" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageFolder (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id of MessageFolder (email) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_id_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute name of MessageFolder (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_name_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_name_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="name" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute parentId of MessageFolder (email) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_parentId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_parentId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="parentId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute path of MessageFolder (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_path_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_path_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="path" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute serviceId of MessageFolder (email) exists, has appropriate type and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_serviceId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_serviceId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="serviceId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute synchronizable of MessageFolder (email) exists, has type Boolean" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_synchronizable_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_synchronizable_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="synchronizable" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageFolder (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the attribute id in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_id_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_id_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageFolder exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the attribute path in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_path_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_path_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="path" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the attribute type in MessageFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_type_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_type_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolder" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if foldersadded callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersadded">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersadded.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFoldersChangeCallback" element_type="method" element_name="foldersadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if foldersremoved callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersremoved">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersremoved.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFoldersChangeCallback" element_type="method" element_name="foldersremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if foldersupdated callback was invoked with proper argument type." type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersupdated">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersupdated.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFoldersChangeCallback" element_type="method" element_name="foldersupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageFoldersChangeCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFoldersChangeCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFoldersChangeCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Checks various message attributes upon message (email) creation" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_email">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_email.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the attribute messaging in MessageManagerObject" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageManagerObject_messaging">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_messaging.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageManagerObject exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageManagerObject_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageManagerObject" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type, check argument recipients type - DOMString[]" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageRecipientsCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_email_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageRecipientsCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageRecipientsCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageRecipientsCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageRecipientsCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for email" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageServiceArraySuccessCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageServiceArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageServiceArraySuccessCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check the function onsuccess in MessageServiceArraySuccessCallback" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageService (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id of MessageService (email) exists, has appropriate type and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_id_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for attachment argument of MessageService.loadMessageAttachment method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when attachment is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageAttachment method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method loadMessageAttachment of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageAttachment_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageAttachment (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageAttachment method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageBody method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method loadMessageBody of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageBody_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if message argument of MessageService::loadMessageBody will throw exception when given invalid type argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check invalid object for message argument of MessageService::loadMessageBody method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_invalid_obj">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg_message">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg_message.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageBody method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method works properly with errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageStorage of MessageService (email) exists, has type MessageStorage and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_messageStorage_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_messageStorage_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="messageStorage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute name of MessageService (email) exists, has appropriate type and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_name_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_name_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="name" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-2nd_mobile">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if MessageService.sendMessage method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method sendMessage of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sendMessage_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_invalid_obj">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method stopSync of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_stopSync_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService::stopSync (for sync) method silently fails without argument" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_stopSync_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method syncFolder of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_syncFolder_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_syncFolder_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method sync of MessageService (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sync_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sync_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageService (email) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageService exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageService_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly with bcc (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithBcc">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithBcc.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly with highPriority (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithPriority">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithPriority.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_email_without_callbacks">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.stopSync (for sync) method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_sync">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_sync.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.stopSync (for syncFolder) method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_syncFolder">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_syncFolder.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="stopSync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.syncFolder method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for folder argument of MessageService.syncFolder method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_folder_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_folder_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.syncFolder" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.syncFolder method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method throws exception when successCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method works properly with limit" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_limit">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if syncFolder method with successCallback optional argument works" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="syncFolder" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly without param" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_emailwithoutparam">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_emailwithoutparam.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sync method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly without arguments" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_foremail">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_foremail.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sync method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method throws exception when successCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly with limit argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_limit">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_limit.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly with successCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sync" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addConversationsChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing mandatory argument - MessageStorage.addConversationsChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly with filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addConversationsChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_withoutcb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutcb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addConversationsChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-3rd_mobile">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addDraftMessage of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addDraftMessage_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_invalid_obj">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addFoldersChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addFoldersChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for foldersChangeCallback argument of MessageStorage.addFoldersChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addFoldersChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method works properly when update data" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="manual" priority="P1" id="MessageStorage_email_addFoldersChangeListener_updatedata">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_updatedata.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly with filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addMessagesChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageStorage (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check errorCallback argument of findConversations will be throw exception with invalid argument type" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method findConversations of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findConversations_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage::findConversations method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_from">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_from.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when filter is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_to">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_to.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_type">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_type.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage::findConversations (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage::findConversations method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when sort is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findConversations method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with all optional argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_offset">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_offset.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort by time descending (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort_time_desc">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort_time_desc.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method findFolders of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findFolders_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findFolders_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages and MessageStorage.loadMessageBody methods work properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_and_loadMessageBody">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_and_loadMessageBody.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by bcc (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_bcc_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_bcc_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by cc (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_cc_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_cc_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-4th_mobile">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if method findMessages of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findMessages_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when filter is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by folderId (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_folderId_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_folderId_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by from (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_from_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by hasAttachment (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_hasAttachment_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by id (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_id_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_id_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isHighPriority (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isHighPriority_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isRead (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isRead_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isRead_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check without arguments - MessageStorage::findMessages" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by plainBody (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_plainBody_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by serviceId (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_serviceId_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_serviceId_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when sort is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findMessages method (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by timestamp (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_timestamp_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by to (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_to_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_to_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by type (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_type_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_type_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method works properly with all optional argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_with_offset">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_with_offset.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeChangeListener of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeConversations of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeConversations_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeConversations_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeMessages of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeMessages_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method updateMessages of MessageStorage (email) exists" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_updateMessages_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_messages_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_messages_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing message argument -  MessageStorage.updateMessages (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findFolders method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findFolders method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders works properly for filter by serviceId" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_filter_serviceId">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_serviceId.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findFolders" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findFolders method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly without errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessage_emailFilterWithoutErrorCb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessageStorage exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::removeChangeListener method works properly - for conversation listener (email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations_email">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations_email.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method(email)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder_email">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder_email.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for conversations argument of MessageStorage.removeConversations method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_conversations_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeConversations method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when errorCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_foremail">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_foremail.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeConversations method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when successCallback is invalid" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly with errorCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly with successCallback argument" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly without errorCallback" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessage_emailwithouterrcb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessage_emailwithouterrcb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly without non-optional arguments (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.removeMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_messages_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_messages_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeMessages (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeMessages method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly with errorCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly with successCallback argument (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-5th_mobile">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check: Add a draft message and update it, and then remove it" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_addUpdateRemove">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_addUpdateRemove.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the attribute attachments in Message" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_attachments_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_attachments_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="attachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute attachments of Message (email) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_attachments_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_attachments_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="attachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute bcc of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_bcc_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_bcc_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="bcc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute body of Message (email) exists, has type MessageBody" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_body_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_body_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="body" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute cc of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_cc_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_cc_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="cc" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with function (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_function">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_function.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with empty object (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_object">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_object.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_minargs">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_minargs.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute conversationId of Message (email) exists, has type MessageConvId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_conversationId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_conversationId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="conversationId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface Message (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute folderId of Message (email) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_folderId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_folderId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="folderId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute from of Message (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_from_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_from_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute hasAttachment of Message (email) exists, has type Boolean and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_hasAttachment_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_hasAttachment_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="hasAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id of Message (email) exists, has type MessageId and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_id_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute inResponseTo of Message (email) exists, has type MessageId" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_inResponseTo_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_inResponseTo_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="inResponseTo" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute isHighPriority of Message (email) exists, has type Boolean" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isHighPriority_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isHighPriority_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="isHighPriority" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute isRead of Message (email) exists, has type Boolean" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isRead_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isRead_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageStatus of Message (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_messageStatus_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_messageStatus_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="messageStatus" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute subject of Message (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_subject_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_subject_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="subject" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute timestamp of Message (email) exists, has type Date and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_timestamp_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_timestamp_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute to of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_to_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_to_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type of Message (email) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message exists" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute hasAttachment in Message" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_hasAttachment_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_hasAttachment_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="hasAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, no filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, no filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, no filter" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface MessagesChangeCallback exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessagesChangeCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if getMessageServices works properly (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of Messaging.getMessageServices method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Messaging.getMessageServices method throws exception when errorCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of Messaging.getMessageServices method (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Messaging.getMessageServices method throws exception when successCallback is invalid (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if getMessageServices works properly with all arguments (email)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Messaging is extendable" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method getMessageServices exists" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Messaging_getMessageServices_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messageServiceType argument of Messaging.getMessageServices method" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_messageServiceType_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_messageServiceType_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - Messaging.getMessageServices" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface Messaging exists, it should not." type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-mms_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if instance of interface MessageBody (MMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute loaded of MessageBody (MMS) exists, has type Boolean and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_loaded_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_loaded_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="loaded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageBody (MMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_messageId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_messageId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute plainBody of MessageBody (MMS) exists, has type DOMString" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_plainBody_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_plainBody_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="plainBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsremoved">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsremoved.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsupdated">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsupdated.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Checks various message attributes upon message (mms) creation" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_mms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_mms.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_mms_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageServiceArraySuccessCallback_mms_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageService (MMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method loadMessageAttachment of MessageService (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageAttachment_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageAttachment_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method loadMessageBody of MessageService (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageBody_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_loadMessageBody_missarg_message">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_missarg_message.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageStorage of MessageService (MMS) exists, has type MessageStorage and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_messageStorage_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_messageStorage_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="messageStorage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method sendMessage of MessageService (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_sendMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageService (MMS) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_mms_without_callbacks">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_sendMessage_mms_without_callbacks.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_body_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_body_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId equal to 3" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_folderId_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_folderId_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_from_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_from_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment equal to false" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_hasAttachment_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_hasAttachment_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead equal to true" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_isRead_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_isRead_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_mms_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_mms_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by subject (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_subject_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_subject_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_timestamp_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_timestamp_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_to_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_to_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationChangeListener method throws exception when conversationsChangeCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addConversationsChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addDraftMessage of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addDraftMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addFoldersChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (mms)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="300">/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addMessagesChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageStorage (MMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-MMS-2_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if method findConversations of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_from">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_from.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_id">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_id.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by messageCount (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_messageCount">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_messageCount.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by preview (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_preview">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_preview.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by timestamp (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_timestamp">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_to">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_type">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_type.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by unreadMessages (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_unreadMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_unreadMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method findFolders of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findFolders_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findFolders_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method findMessages of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_folderId_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_folderId_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_from_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_from_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_hasAttachment_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_id_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_id_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_isRead_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_isRead_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_plainBody_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_timestamp_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_to_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_to_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_type_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_type_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-MMS-3_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if method removeChangeListener of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeConversations of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeConversations_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeMessages of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method updateMessages of MessageStorage (MMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_updateMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_messages_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_messages_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations works properly for mms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_formms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_removeConversations_formms.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute attachments of Message (MMS) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_attachments_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_attachments_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="attachments" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute body of Message (MMS) exists, has type MessageBody" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_body_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_body_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="body" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly (email)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with function (mms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_function">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_function.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with empty object (mms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_object">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_object.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (mms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_minargs">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_minargs.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute conversationId of Message (MMS) exists, has type MessageConvId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_conversationId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_conversationId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="conversationId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface Message (MMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute folderId of Message (MMS) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_folderId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_folderId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="folderId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute from of Message (MMS) exists, has type DOMString and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_from_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_from_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute hasAttachment of Message (MMS) exists, has type Boolean and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_hasAttachment_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_hasAttachment_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="hasAttachment" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id of Message (MMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_id_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_id_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute inResponseTo of Message (MMS) exists, has type MessageId" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_inResponseTo_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_inResponseTo_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="inResponseTo" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute isRead of Message (MMS) exists, has type Boolean" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_isRead_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_isRead_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageStatus of Message (MMS) exists, has type DOMString and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_messageStatus_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_messageStatus_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="messageStatus" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute subject of Message (MMS) exists, has type DOMString" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_subject_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_subject_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="subject" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute timestamp of Message (MMS) exists, has type Date and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_timestamp_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_timestamp_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute to of Message (MMS) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_to_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_to_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type of Message (MMS) exists, has type MessageServiceTag and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly without errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_getMessageServices_without_error_callback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_getMessageServices_without_error_callback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if type attribute exists in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (mms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-1_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check ConversationArraySuccessCallback callback for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="ConversationArraySuccessCallback_onsuccess_checking">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/ConversationArraySuccessCallback_onsuccess_checking.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if FolderArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="FolderArraySuccessCallback_onsuccess_checking">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/FolderArraySuccessCallback_onsuccess_checking.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageFolderArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess_checking">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess_checking.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageBody (SMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute loaded of MessageBody (SMS) exists, has type Boolean and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_loaded_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_loaded_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="loaded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageBody (SMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_messageId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_messageId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="messageId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute plainBody of MessageBody (SMS) exists, has type DOMString" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_plainBody_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_plainBody_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageBody" element_type="attribute" element_name="plainBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageConversationArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageConversationArraySuccessCallback_onsuccess_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check scenario: send a message(sms), find conversation and then remove it" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_sendFindRemove">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversation_sendFindRemove.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Checks various message attributes upon message (sms) creation" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_sms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_sms.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_sms_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageServiceArraySuccessCallback_sms_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageServiceArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_id_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_id_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method works for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_loadBodySMS">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_loadBodySMS.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if name attribute exists in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_name_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_name_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="name" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if sendMessage exist in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sendMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check whether invoking sendMessage method with improper argument throws exception properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_invalid_argument">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_invalid_argument.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly with valid argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_valid_argument">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_valid_argument.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageService (SMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method loadMessageBody of MessageService (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_loadMessageBody_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.loadMessageBody method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_missarg_message">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_missarg_message.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="loadMessageBody" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageStorage of MessageService (SMS) exists, has type MessageStorage and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_messageStorage_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_messageStorage_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="messageStorage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method sendMessage of MessageService (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_sendMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="method" element_name="sendMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageService (SMS) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type in MessageService" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_type_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_type_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageService" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addCCLAddMRemoveCRemoveCCL">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addCCLAddMRemoveCRemoveCCL.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMCLaddM">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMCLaddM.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check MessageStorage.findMessages method when errorCallback is a number (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_errorCallback_TypeMismatch_1">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_errorCallback_null">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_null.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method findMessages in MessageStorage" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_findMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_sms_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_filter_sms_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_limit_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_limit_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findMessages (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check without arguments - MessageStorage.findMessages (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_noarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_noarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with valid offset" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_offset_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_offset_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_sort_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-2_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check if method removeChangeListener in MessageStorage" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_removeChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if removeChangeListener method removes listener added by addMessagesChangeListener method" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_formessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_formessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_valid_argument">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_valid_argument.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_with_watchId">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_with_watchId.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is null (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_null">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_null.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is undefined (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_undefined">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_undefined.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is a number (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_number">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_conversations_number.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly with all callbacks (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_forsms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_forsms.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_invalid_arg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_invalid_arg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_missarg_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_sms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_sms.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when successCallback is a number (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_number">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_number.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addConversationsChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addDraftMessage of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addDraftMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addDraftMessage" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addFoldersChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (sms)" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addFoldersChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addMessagesChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addMessagesChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageStorage (SMS) can be extended with new property" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-3_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check if method findConversations of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_id">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_id.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to endswith." type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_endswith">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_endswith.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to exist." type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to startswith." type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_startswith">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_startswith.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_type">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_type.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findConversations (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with limit (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_limit">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_limit.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with offset (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_offset">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_offset.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_sort_to">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_sort_to.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findFolders method works properly with successCallback" type="compliance" onload_delay="300" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findFolders">
+        <description>
+          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method findFolders of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findFolders_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findFolders" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method findMessages of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_folderId_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_folderId_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_from_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_from_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_id_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_id_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_isRead_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_isRead_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check without arguments - MessageStorage.findMessages" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_timestamp_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_to_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_to_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_type_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_type_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_limit">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_limit.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with offset (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_offset">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_offset.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_sort">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_sort.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="findMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeChangeListener of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeConversations of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeConversations_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeConversations" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeMessages of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="removeMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-4_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method updateMessages of MessageStorage (SMS) exists" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_updateMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_messages_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_messages_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_missarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_successCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works correctly wihtout error callback" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_updateMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_updateMessages.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="updateMessages" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute body of Message (SMS) exists, has type MessageBody" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_body_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_body_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="body" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with function (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_function">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_function.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with empty object (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_object">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_object.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (sms)" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_minargs">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_minargs.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="constructor" element_name="constructor" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute conversationId of Message (SMS) exists, has type MessageConvId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_conversationId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_conversationId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="conversationId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if instance of interface Message (SMS) can be extended with new property" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" usage="true" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute folderId of Message (SMS) exists, has type MessageFolderId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_folderId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_folderId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="folderId" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute from of Message (SMS) exists, has type DOMString and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_from_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_from_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="from" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute id of Message (SMS) exists, has type MessageId and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_id_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_id_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="id" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute inResponseTo of Message (SMS) exists, has type MessageId" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_inResponseTo_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_inResponseTo_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="inResponseTo" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute isRead of Message (SMS) exists, has type Boolean" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_isRead_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_isRead_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="isRead" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute messageStatus of Message (SMS) exists, has type DOMString and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_messageStatus_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_messageStatus_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="messageStatus" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute timestamp of Message (SMS) exists, has type Date and is readonly" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_timestamp_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_timestamp_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="timestamp" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute to of Message (SMS) exists, has type Array" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_to_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_to_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="to" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if attribute type of Message (SMS) exists, has type MessageServiceTag and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_type_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Message" element_type="attribute" element_name="type" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withoutfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withoutfilter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesadded" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_with_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, no filter" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_without_filter.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessagesChangeCallback" element_type="method" element_name="messagesupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_with_errorCallback.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="Messaging" element_type="method" element_name="getMessageServices" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+    </set>
   </suite>
 </test_definition>
index deed162ea712a5f3c55812db140262126842206c..3d63cc570d55f603a5ca65038471c36295e220db 100755 (executable)
         </description>
       </testcase>
     </set>
+    <set name="Messaging-EMAIL-1st_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if interface MessageArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method onsuccess of MessageArraySuccessCallback works" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageAttachmentSuccessCallback, onsuccess, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachmentSuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageAttachmentSuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachmentSuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachmentSuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageAttachment's constructor works" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageAttachment's constructor works with minimum arguments" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_constructor_minargs">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_constructor_minargs.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageAttachment exists" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageAttachment_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageAttachment can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageAttachment_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute filePath of MessageAttachment exists, has type DOMString and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_filePath_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_filePath_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute id of MessageAttachment exists, has type MessageAttachmentId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_id_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageAttachment exists, has type MessageId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_messageId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_messageId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute mimeType of MessageAttachment exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageAttachment_mimeType_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageAttachment_mimeType_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type (email message)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageBodySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBodySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBodySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_email_extend">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_htmlBody_attribute">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_inlineAttachments_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_loaded_attribute">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_messageId_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_plainBody_attribute">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageConversationArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method onsuccess of MessageConversationArraySuccessCallback works" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute bcc of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_bcc_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_bcc_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute cc of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_cc_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_cc_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageConversation can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute from of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_from_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_from_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute id of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_id_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute isRead of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_isRead_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_isRead_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute lastMessageId of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_lastMessageId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_lastMessageId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute messageCount of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_messageCount_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_messageCount_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageConversation exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversation_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute preview of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_preview_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_preview_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute subject of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_subject_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_subject_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute timestamp of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_timestamp_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_timestamp_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute to of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_to_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_to_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute type of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check attribute unreadMessages of MessageConversation" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_unreadMessages_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversation_unreadMessages_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if conversationsadded callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsremoved">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsremoved.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_email_conversationsupdated">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_email_conversationsupdated.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageConversationsChangeCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageConversationsChangeCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageConversationsChangeCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageFolderArraySuccessCallback, email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolderArraySuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageFolderArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolderArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolderArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if the attribute contentType in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_contentType_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_contentType_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute contentType of MessageFolder (email) exists, has type MessageServiceTag and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_contentType_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_contentType_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageFolder (email) can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute id of MessageFolder (email) exists, has type MessageFolderId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_id_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute name of MessageFolder (email) exists, has type DOMString" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_name_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_name_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute parentId of MessageFolder (email) exists, has type MessageFolderId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_parentId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_parentId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute path of MessageFolder (email) exists, has type DOMString and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_path_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_path_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute serviceId of MessageFolder (email) exists, has appropriate type and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_serviceId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_serviceId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute synchronizable of MessageFolder (email) exists, has type Boolean" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_synchronizable_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_synchronizable_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageFolder (email) exists, has type DOMString and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFolder_email_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_email_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if the attribute id in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_id_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_id_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageFolder exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFolder_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if the attribute path in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_path_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_path_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if the attribute type in MessageFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageFolder_type_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFolder_type_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if foldersadded callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersadded">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersadded.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if foldersremoved callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersremoved">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersremoved.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if foldersupdated callback was invoked with proper argument type." onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageFoldersChangeCallback_foldersupdated">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_foldersupdated.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageFoldersChangeCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageFoldersChangeCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageFoldersChangeCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Checks various message attributes upon message (email) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_email">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_email.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check the attribute messaging in MessageManagerObject" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageManagerObject_messaging">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_messaging.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageManagerObject exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageManagerObject_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageManagerObject_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type, check argument recipients type - DOMString[]" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageRecipientsCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_email_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageRecipientsCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageRecipientsCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageRecipientsCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for email" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_email_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_email_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageServiceArraySuccessCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageServiceArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check the function onsuccess in MessageServiceArraySuccessCallback" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageServiceArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageService (email) can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute id of MessageService (email) exists, has appropriate type and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_id_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for attachment argument of MessageService.loadMessageAttachment method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when attachment is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_attachment_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_attachment_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageAttachment method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method loadMessageAttachment of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageAttachment_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageAttachment (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageAttachment method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageAttachment_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageAttachment method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageAttachment_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageAttachment_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.loadMessageBody method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method loadMessageBody of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_loadMessageBody_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if message argument of MessageService::loadMessageBody will throw exception when given invalid type argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check invalid object for message argument of MessageService::loadMessageBody method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_message_invalid_obj">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_missarg_message">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_missarg_message.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.loadMessageBody method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_loadMessageBody_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method works properly with errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_loadMessageBody_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_loadMessageBody_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageStorage of MessageService (email) exists, has type MessageStorage and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_messageStorage_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_messageStorage_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute name of MessageService (email) exists, has appropriate type and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_name_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_name_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-2nd_mobile">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if MessageService.sendMessage method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method sendMessage of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sendMessage_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_message_invalid_obj">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_sendMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_sendMessage_without_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sendMessage_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method stopSync of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_stopSync_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService::stopSync (for sync) method silently fails without argument" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_stopSync_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+     <!-- <testcase purpose="Check if MessageService::stopSync (for sync) method should silently fail with invalid argument types" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_email_stopSync_opId_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_stopSync_opId_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase> -->
+      <testcase purpose="Check if method syncFolder of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_syncFolder_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_syncFolder_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method sync of MessageService (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_email_sync_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_sync_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageService (email) exists, has type MessageServiceTag and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_email_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_email_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageService exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageService_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly with bcc (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithBcc">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithBcc.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly with highPriority (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_emailWithPriority">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_emailWithPriority.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_email_without_callbacks">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sendMessage_email_without_callbacks.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.stopSync (for sync) method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_sync">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_sync.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.stopSync (for syncFolder) method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_stopSync_syncFolder">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_stopSync_syncFolder.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.syncFolder method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for folder argument of MessageService.syncFolder method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_folder_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_folder_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.syncFolder" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.syncFolder method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method throws exception when successCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_syncFolder_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.syncFolder method works properly with limit" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_limit">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_limit.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if syncFolder method with successCallback optional argument works" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_syncFolder_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_syncFolder_with_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly without param" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_emailwithoutparam">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_emailwithoutparam.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sync method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly without arguments" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_foremail">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_foremail.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sync method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method throws exception when successCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sync_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly with limit argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_limit">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_limit.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sync method works properly with successCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sync_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageService_sync_with_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addConversationsChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing mandatory argument - MessageStorage.addConversationsChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly with filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addConversationsChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_withoutcb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutcb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addConversationsChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-3rd_mobile">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addDraftMessage of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addDraftMessage_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_message_invalid_obj">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addDraftMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addDraftMessage_without_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addDraftMessage_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addFoldersChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addFoldersChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for foldersChangeCallback argument of MessageStorage.addFoldersChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_foldersChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addFoldersChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addFoldersChangeListener_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method works properly when update data" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="manual" priority="P1" id="MessageStorage_email_addFoldersChangeListener_updatedata">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_updatedata.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addFoldersChangeListener method works properly with filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addFoldersChangeListener_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addFoldersChangeListener_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_addMessagesChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addMessagesChangeListener_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_addMessagesChangeListener_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addMessagesChangeListener_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageStorage (email) can be extended with new property" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check errorCallback argument of findConversations will be throw exception with invalid argument type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when errorCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findConversations of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findConversations_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage::findConversations method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_from">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_from.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when filter is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_to">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_to.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_filter_type">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_filter_type.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage::findConversations (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage::findConversations method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when sort is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_sort_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findConversations method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method throws exception when successCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findConversations_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with all optional argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_offset">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_offset.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with sort by time descending (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_with_sort_time_desc">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_with_sort_time_desc.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findConversations_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findConversations_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findFolders of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findFolders_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findFolders_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages and MessageStorage.loadMessageBody methods work properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_and_loadMessageBody">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_and_loadMessageBody.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by bcc (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_bcc_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_bcc_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by cc (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_cc_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_cc_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when errorCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-4th_mobile">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check if method findMessages of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_findMessages_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when filter is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_filter_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by folderId (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_folderId_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_folderId_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by from (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_from_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_from_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by hasAttachment (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_hasAttachment_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by id (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_id_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_id_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isHighPriority (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isHighPriority_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isHighPriority_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by isRead (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_isRead_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_isRead_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check without arguments - MessageStorage::findMessages" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by plainBody (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_plainBody_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by serviceId (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_serviceId_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_serviceId_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when sort is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_sort_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage::findMessages method (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method throws exception when successCallback is invalid (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_findMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by timestamp (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_timestamp_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by to (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_to_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_to_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly for filter by type (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_type_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_type_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findMessages method works properly with all optional argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_findMessages_with_offset">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_findMessages_with_offset.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeChangeListener of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeChangeListener_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeConversations of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeConversations_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeConversations_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeMessages of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_removeMessages_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_removeMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method updateMessages of MessageStorage (email) exists" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_email_updateMessages_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_messages_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_messages_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing message argument -  MessageStorage.updateMessages (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_updateMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_email_updateMessages_without_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_updateMessages_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findFolders method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findFolders method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_filter_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders works properly for filter by serviceId" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_filter_serviceId">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_filter_serviceId.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findFolders" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findFolders method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findFolders_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findFolders method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findFolders_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findFolders_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly without errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessage_emailFilterWithoutErrorCb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_findMessage_emailFilterWithoutErrorCb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessageStorage exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::removeChangeListener method works properly - for conversation listener (email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations_email">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations_email.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method(email)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder_email">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder_email.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for conversations argument of MessageStorage.removeConversations method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_conversations_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeConversations method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when errorCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_foremail">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_foremail.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeConversations method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method throws exception when successCallback is invalid" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly with errorCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly with successCallback argument" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeConversations_with_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly without errorCallback" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessage_emailwithouterrcb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessage_emailwithouterrcb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly without non-optional arguments (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.removeMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.removeMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_messages_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_messages_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeMessages (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_missarg">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.removeMessages method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeMessages_email_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly with errorCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeMessages method works properly with successCallback argument (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeMessages_email_with_successCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_removeMessages_email_with_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-EMAIL-5th_mobile">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/email"/>
+      </capabilities>
+      <testcase purpose="Check: Add a draft message and update it, and then remove it" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_addUpdateRemove">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_addUpdateRemove.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if the attribute attachments in Message" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_attachments_exist">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_attachments_attribute">
+        <description>
+          <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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_bcc_attribute">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_body_attribute">
+        <description>
+          <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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_cc_attribute">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with function (email)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_function">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_function.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with empty object (email)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_messageInitDict_object">
+        <description>
+          <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)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_minargs">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_conversationId_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_email_extend">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute folderId of Message (email) exists, has type MessageFolderId and is readonly" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_folderId_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_folderId_attribute.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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_from_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_hasAttachment_attribute">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_id_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_inResponseTo_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isHighPriority_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isRead_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_messageStatus_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_subject_attribute">
+        <description>
+          <test_script_entry timeout="90">/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="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_timestamp_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_to_attribute">
+        <description>
+          <test_script_entry timeout="90">/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" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_type_attribute">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message exists" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Message_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute hasAttachment in Message" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_hasAttachment_exist">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Message_hasAttachment_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - email, no filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesadded_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesadded_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - email, no filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesremoved_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesremoved_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_with_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - email, no filter" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_email_messagesupdated_without_filter">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_email_messagesupdated_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface MessagesChangeCallback exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessagesChangeCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessagesChangeCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getMessageServices works properly (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of Messaging.getMessageServices method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Messaging.getMessageServices method throws exception when errorCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of Messaging.getMessageServices method (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Messaging.getMessageServices method throws exception when successCallback is invalid (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_email_getMessageServices_successCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getMessageServices works properly with all arguments (email)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_email_getMessageServices_with_errorCallback">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_email_getMessageServices_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Messaging is extendable" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getMessageServices exists" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="Messaging_getMessageServices_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messageServiceType argument of Messaging.getMessageServices method" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_messageServiceType_TypeMismatch">
+        <description>
+          <test_script_entry timeout="90">/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_messageServiceType_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - Messaging.getMessageServices" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_getMessageServices_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_getMessageServices_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface Messaging exists, it should not." component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Messaging_notexist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Messaging_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-mms_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if instance of interface MessageBody (MMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute loaded of MessageBody (MMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_loaded_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_loaded_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageBody (MMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_messageId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_messageId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute plainBody of MessageBody (MMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_mms_plainBody_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageBody_mms_plainBody_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsremoved">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsremoved.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsupdated, mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_mms_conversationsupdated">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageConversationsChangeCallback_mms_conversationsupdated.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Checks various message attributes upon message (mms) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_mms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_mms.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_mms_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageServiceArraySuccessCallback_mms_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageService (MMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method loadMessageAttachment of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageAttachment_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageAttachment_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method loadMessageBody of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_loadMessageBody_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing message argument - MessageService.loadMessageBody (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_loadMessageBody_missarg_message">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_loadMessageBody_missarg_message.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageStorage of MessageService (MMS) exists, has type MessageStorage and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_messageStorage_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_messageStorage_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method sendMessage of MessageService (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_mms_sendMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_mms_sendMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageService (MMS) exists, has type MessageServiceTag and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_mms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without callbacks (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_mms_without_callbacks">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_sendMessage_mms_without_callbacks.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_body_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_body_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId equal to 3" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_folderId_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_folderId_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_from_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_from_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment equal to false" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_hasAttachment_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_hasAttachment_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead equal to true" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_isRead_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_isRead_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_mms_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_mms_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by subject (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_subject_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_subject_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_timestamp_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_timestamp_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_to_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_findMessages_filter_to_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationChangeListener method throws exception when conversationsChangeCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addConversationsChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addDraftMessage of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addDraftMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addDraftMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addDraftMessage_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addDraftMessage_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addFoldersChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (mms)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="300">/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_addMessagesChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addMessagesChangeListener_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_addMessagesChangeListener_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addMessagesChangeListener_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageStorage (MMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-MMS-2_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if method findConversations of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by from (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_from">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_from.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_id">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_id.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by messageCount (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_messageCount">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_messageCount.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by preview (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_preview">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_preview.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by timestamp (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_timestamp">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_timestamp.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_to">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_to.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_type">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_type.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by unreadMessages (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findConversations_filter_unreadMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findConversations_filter_unreadMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findFolders of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findFolders_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findFolders_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_findMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_folderId_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_folderId_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_from_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_from_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by hasAttachment (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_hasAttachment_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_hasAttachment_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_id_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_id_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_isRead_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_isRead_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_plainBody_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_timestamp_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_to_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_to_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_findMessages_type_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_findMessages_type_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-MMS-3_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony.mms"/>
+      </capabilities>
+      <testcase purpose="Check if method removeChangeListener of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeConversations of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeConversations_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_removeMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_removeMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method updateMessages of MessageStorage (MMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_mms_updateMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_messages_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_messages_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_updateMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_mms_updateMessages_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_updateMessages_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations works properly for mms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_formms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_removeConversations_formms.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute attachments of Message (MMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_attachments_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_attachments_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute body of Message (MMS) exists, has type MessageBody" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_body_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_body_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly (email)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with function (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_function">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_function.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with empty object (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_messageInitDict_object">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_messageInitDict_object.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (mms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_constructor_minargs">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_constructor_minargs.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute conversationId of Message (MMS) exists, has type MessageConvId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_conversationId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_conversationId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface Message (MMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_mms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute folderId of Message (MMS) exists, has type MessageFolderId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_folderId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_folderId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute from of Message (MMS) exists, has type DOMString and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_from_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_from_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute hasAttachment of Message (MMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_hasAttachment_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_hasAttachment_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute id of Message (MMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_id_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_id_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute inResponseTo of Message (MMS) exists, has type MessageId" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_inResponseTo_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_inResponseTo_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute isRead of Message (MMS) exists, has type Boolean" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_isRead_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_isRead_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageStatus of Message (MMS) exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_messageStatus_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_messageStatus_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute subject of Message (MMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_subject_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_subject_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute timestamp of Message (MMS) exists, has type Date and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_timestamp_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_timestamp_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute to of Message (MMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_to_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_to_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type of Message (MMS) exists, has type MessageServiceTag and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_mms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Message_mms_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesadded_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesadded_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesremoved_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesremoved_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - mms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_mms_messagesupdated_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessagesChangeCallback_mms_messagesupdated_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly without errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_getMessageServices_without_error_callback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_getMessageServices_without_error_callback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if type attribute exists in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_mms_getMessageServices_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (mms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_mms_getMessageServices_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/Messaging_mms_getMessageServices_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-1_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check ConversationArraySuccessCallback callback for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="ConversationArraySuccessCallback_onsuccess_checking">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/ConversationArraySuccessCallback_onsuccess_checking.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if FolderArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="FolderArraySuccessCallback_onsuccess_checking">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/FolderArraySuccessCallback_onsuccess_checking.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageArraySuccessCallback_onsuccess_checking">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess_checking.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageBody (SMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute loaded of MessageBody (SMS) exists, has type Boolean and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_loaded_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_loaded_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageId of MessageBody (SMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_messageId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_messageId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute plainBody of MessageBody (SMS) exists, has type DOMString" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_sms_plainBody_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_plainBody_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageConversationArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageConversationArraySuccessCallback_onsuccess_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check scenario: send a message(sms), find conversation and then remove it" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversation_sendFindRemove">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversation_sendFindRemove.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsadded_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsupdated_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Checks various message attributes upon message (sms) creation" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_sms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_sms.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageServiceArraySuccessCallback is called and if its arguments have proper type for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageServiceArraySuccessCallback_sms_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageServiceArraySuccessCallback_sms_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute id in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_id_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_id_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method works for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_loadBodySMS">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_loadBodySMS.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if name attribute exists in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_name_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_name_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if sendMessage exist in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sendMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check whether invoking sendMessage method with improper argument throws exception properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_invalid_argument">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_invalid_argument.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly with valid argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sendMessage_valid_argument">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_valid_argument.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageService (SMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageService_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method loadMessageBody of MessageService (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_loadMessageBody_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.loadMessageBody method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_missarg_message">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_missarg_message.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageStorage of MessageService (SMS) exists, has type MessageStorage and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_messageStorage_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_messageStorage_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method sendMessage of MessageService (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_sms_sendMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type of MessageService (SMS) exists, has type MessageServiceTag and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type in MessageService" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageService_type_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_type_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addCCLAddMRemoveCRemoveCCL">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addCCLAddMRemoveCRemoveCCL.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addConversationsChangeListener_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMCLaddM">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMCLaddM.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_addMessagesChangeListener_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check MessageStorage.findMessages method when errorCallback is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_errorCallback_TypeMismatch_1">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_errorCallback_null">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_null.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findMessages in MessageStorage" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_findMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_filter_sms_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_filter_sms_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_limit_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_limit_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check without arguments - MessageStorage.findMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_noarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_noarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with valid offset" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_offset_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_offset_valid.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_sort_valid">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-2_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check if method removeChangeListener in MessageStorage" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_removeChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forconversations">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_forfolder">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if removeChangeListener method removes listener added by addMessagesChangeListener method" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_formessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_formessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_valid_argument">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_valid_argument.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_with_watchId">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_with_watchId.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is null (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_null">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_null.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is undefined (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_undefined">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_undefined.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_number">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_conversations_number.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly with all callbacks (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_forsms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_forsms.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_invalid_arg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_invalid_arg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_missarg_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeConversations_sms">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_sms.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check MessageStorage.removeConversations method when successCallback is a number (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_number">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_number.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addConversationsChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addConversationsChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addDraftMessage of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addDraftMessage_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addFoldersChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addFoldersChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::addFoldersChangeListener method throws exception when foldersChangeCallback is invalid (sms)" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_foldersChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_addMessagesChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface MessageStorage (SMS) can be extended with new property" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-3_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check if method findConversations of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_id">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_id.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to endswith." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_endswith">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_endswith.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to exist." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findConversations method works properly with filter: to startswith." onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to_startswith">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to_startswith.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_type">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_type.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findConversations (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with limit (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_limit">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_limit.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with offset (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_offset">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_offset.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_with_sort_to">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_sort_to.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage::findFolders method works properly with successCallback" onload_delay="300" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findFolders">
+        <description>
+          <test_script_entry timeout="300">/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findFolders of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findFolders_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method findMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_findMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_folderId_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_folderId_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_from_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_from_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_id_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_id_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_isRead_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_isRead_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check without arguments - MessageStorage.findMessages" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for sort argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_timestamp_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_to_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_to_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_type_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_type_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_limit">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_limit.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with offset (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_offset">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_offset.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_sort">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_sort.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeChangeListener of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeConversations of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeConversations_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeConversations_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_removeMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
+    <set name="Messaging-SMS-4_mobile" type="js">
+      <capabilities>
+        <capability name="http://tizen.org/feature/profile"><value>MOBILE</value></capability>
+        <capability name="http://tizen.org/feature/network.telephony"/>
+      </capabilities>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method updateMessages of MessageStorage (SMS) exists" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P0" id="MessageStorage_sms_updateMessages_exist">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_messages_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_messages_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_missarg">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_missarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_successCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_successCallback.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageStorage.updateMessages method works correctly wihtout error callback" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_updateMessages">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_updateMessages.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute body of Message (SMS) exists, has type MessageBody" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_body_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_body_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with function (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_function">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_function.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with empty object (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_object">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_object.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (sms)" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_minargs">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_minargs.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute conversationId of Message (SMS) exists, has type MessageConvId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_conversationId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_conversationId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if instance of interface Message (SMS) can be extended with new property" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P3" id="Message_sms_extend">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute folderId of Message (SMS) exists, has type MessageFolderId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_folderId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_folderId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute from of Message (SMS) exists, has type DOMString and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_from_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_from_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute id of Message (SMS) exists, has type MessageId and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_id_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_id_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute inResponseTo of Message (SMS) exists, has type MessageId" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_inResponseTo_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_inResponseTo_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute isRead of Message (SMS) exists, has type Boolean" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_isRead_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_isRead_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute messageStatus of Message (SMS) exists, has type DOMString and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_messageStatus_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_messageStatus_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute timestamp of Message (SMS) exists, has type Date and is readonly" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_timestamp_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_timestamp_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute to of Message (SMS) exists, has type Array" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_to_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_to_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if attribute type of Message (SMS) exists, has type MessageServiceTag and is readonly" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_type_attribute">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_type_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesadded_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withoutfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_messagesupdated_withoutfilter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withoutfilter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesadded works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesadded_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesremoved works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesremoved_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_with_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_with_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessagesChangeCallback.messagesupdated works properly - sms, no filter" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="MessagesChangeCallback_sms_messagesupdated_without_filter">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_without_filter.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)" onload_delay="90" component="Tizen Device APIs/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices_with_errorCallback">
+        <description>
+          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_with_errorCallback.html</test_script_entry>
+        </description>
+      </testcase>
+    </set>
   </suite>
 </test_definition>